IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Difference betweem LEVEL and BREAK-LEVEL field in easytrieve


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abhay pratap singh

New User


Joined: 22 Nov 2007
Posts: 77
Location: noida

PostPosted: Wed Feb 10, 2010 1:13 pm
Reply with quote

Can anyone explain me difference between LEVEL and BREAK-LEVEL field in easytrieve.

I have gone thru some manuals but still its not clear.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Wed Feb 10, 2010 3:26 pm
Reply with quote

To get better help, you need to tell us, what is not clear from the manuals.

Was just reading the Advantage CA-Easytrieve Plus Report Generator, which says,
Quote:
BREAK-LEVEL
BREAK-LEVEL is a system-defined field whose value indicates the highest
control break level. The following example illustrates using BREAK-LEVEL to
display an appropriate message in a BEFORE-BREAK procedure:
Code:
REPORT RPT
SEQUENCE REGION BRANCH
CONTROL REGION BRANCH
LINE REGION BRANCH NAME PAY-GROSS
BEFORE-BREAK. PROC
IF LEVEL = 1 . * processing lowest break
IF BREAK-LEVEL = 1 . * only branch is breaking
DISPLAY '*** BRANCH TOTALS'
ELSE-IF BREAK-LEVEL = 2. * region is breaking too
DISPLAY '*** BRANCH AND REGION TOTALS'
ELSE-IF BREAK-LEVEL = 3. * final report totals
DISPLAY '*** BRANCH, REGION, AND FINAL TOTALS'
END-IF
END-IF
END-PROC


Quote:
LEVEL is a system-defined field provided for control reports. The field is
defined as a two-byte binary field. The value in LEVEL indicates the control
break level and varies from 0 to 'n + 1' where:
LEVEL = 0 when processing detail lines
LEVEL = n for total line processing at each control level
LEVEL = n + 1, when processing FINAL totals.


Hope this helps...
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
No new posts To Unstring spaces in a field COBOL Programming 3
No new posts Help required to reset decimal points... DFSORT/ICETOOL 10
No new posts Overwriting SSN Digits in Easytrieve ... CA Products 0
No new posts Difference between joblib and steplib JCL & VSAM 2
Search our Forums:


Back to Top