Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

What is the use of level number 88

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
parul rana

New User


Joined: 01 Aug 2006
Posts: 4
Location: india

PostPosted: Tue Aug 29, 2006 11:42 am    Post subject: What is the use of level number 88
Reply with quote

what is the use of level number 88. how to use in program and how can we use it differently in diff programs. please explain with examples.
Back to top
View user's profile Send private message

parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Tue Aug 29, 2006 11:54 am    Post subject:
Reply with quote

Hi Parul,

Level 88 variables are "condition names". They are used mostly to test conditions.

One frequent use of 88 variables is in file status codes.

For example,

01 INFILE-STATUS PIC 99.
88 INFILE-SUCCESSFUL VALUE 00.
88 INFILE-END-OF-FILE VALUE 10.
...
..

Now, after each operation, you can check for file status by following code...

IF INFILE-SUCCESSFUL
...
ELSE
...
END-IF.

If you would have not used 88 variables,

Your code could be something like this...

IF INFILE-STATUS = 0
...
ELSE
...
END-IF.

You can see that, the 88 variables makes code more readable and structured. Isn't it?

You can find more information about this in manuals.icon_smile.gif

Thanks,
Parikshit.
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 128
Location: kerala,india

PostPosted: Tue Aug 29, 2006 1:28 pm    Post subject: Re: level no. 88
Reply with quote

Level no 88 is for condition names . any level number variable exept 66
and 88 can be CONDITION VARIABLE. When ever the value of condition variable is that contained in condition name condition becomes true

eg
01 CHAR PIC A.
88 VOV VALUES ARE 'A', 'E', 'I', 'O', 'U'.

ACCEPT CHAR
IF VOV
DISPLAY 'CHAR ENTERED IS VOVEL'.

Also if we set VOV to TRUE The value will be automatically inserted in to variable CHAR and the value in CHAR will be the first value of VOV ie A
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sequence number add in SORT pshongal SYNCSORT 3 Fri Sep 02, 2016 3:32 pm
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm
No new posts GDG vsersion number change Raghu navaikulam JCL & VSAM 5 Fri May 27, 2016 4:49 pm
No new posts CPU time Vs Number of records Nileshkul JCL & VSAM 5 Mon May 09, 2016 4:05 pm
No new posts Syntax to check the first 4 digits of... kshirabdhi DFSORT/ICETOOL 10 Tue May 03, 2016 12:21 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us