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
 

 

88 level variables

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Abhilasha

New User


Joined: 09 Mar 2006
Posts: 7
Location: India

PostPosted: Tue May 16, 2006 8:59 pm    Post subject: 88 level variables
Reply with quote

suppose
05 tom-set-switch
88 tom-set-now picX 'Y'
88 tom-set-b4 picX 'Z'
{some code}
if who-set-sw = tom-set-sw
(do something)


i wanna know that - will this code will check against both values of 05 level?
and suppose if a 10 level variable is inserted in between 05 and 88 to group various switches- wud the same condition check for all values of each 10 level variables(Y/Z/A/B)?

e.g--
05 set-switch
10 tom-sw
88 tom-set-now picX 'Y'
88 tom-set-b4 picX 'Z'
10 harry-sw
88 harry-set-now picX 'A'
88 harry-set-b4 picX 'B'

{some code}
if who-set-sw = set-sw
(do something)
Back to top
View user's profile Send private message

DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Wed May 17, 2006 3:16 am    Post subject: Re: 88-level variables
Reply with quote

Abhilasha,

The 88 levels do not have ?PIC? associated with them, only values.

It doesn?t matter if it?s on 05 or 10 levels. The 88 level only applies to the item prior.



Code:


    05  TOM-SET-SWITCH        PIC X(1).
        88  TOM-SET-NOW                  VALUE ?Y?.
        88  TOM-SET-B4                   VALUE ?Z?.


    SET TOM-SET-NOW           TO TRUE.

(IS THE SAME AS)

    MOVE ?Y?                  TO TOM-SET-SWITCH.


(AND)

    IF TOM-SET-NOW
    THEN
        (DO SOMETHING)

(IS THE SAME AS)

    IF TOM-SET-SWITCH = ?Y?
    THEN
        (DO SOMETHING)



If you?re still confused, and many people are on 88 levels, please come back.

Dave
Back to top
View user's profile Send private message
Abhilasha

New User


Joined: 09 Mar 2006
Posts: 7
Location: India

PostPosted: Wed May 17, 2006 4:04 pm    Post subject: Re: 88-level variables
Reply with quote

Thanks!! i am abs clear
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:21 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts Is it possible to pass variables of s... Csongor CLIST & REXX 2 Fri Jun 10, 2016 7:33 pm


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