how to display 88 level



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

how to display 88 level

Postby pavankumar325 » Wed Nov 14, 2007 2:05 pm

Hi ,

Please let me know how can i display 88 level condition item.

Regards,
Pavan
pavankumar325
 
Posts: 2
Joined: Tue Jul 31, 2007 11:24 am
Has thanked: 0 time
Been thanked: 0 time

Re: how to display 88 level

Postby CICS Guy » Wed Nov 14, 2007 3:47 pm

This is the way I usually do it....
01 filler pic x value space.
   88 eof value '1'.

set eof to true.

if eof
   display 'eof'
else
   display 'not eof'
end-if
or
if eof display '1'.
CICS Guy
 
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: how to display 88 level

Postby Tzadik Vanderhoof » Fri Nov 16, 2007 3:23 am

I would just give a name to the higher level and display it

01 eof-flag pic x value space.
88 eof value '1'.

display eof-flag
Tzadik Vanderhoof
 
Posts: 21
Joined: Tue Nov 13, 2007 11:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: how to display 88 level

Postby dick scherrer » Sat Nov 17, 2007 6:18 am

Hello Pavan,

88 level entries are used for comparison - not for "moves" or "displays" or other data manipulation instructions.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: how to display 88 level

Postby pavankumar325 » Wed Nov 21, 2007 11:12 am

Hi,

Both the codes did not work which were given in the above.
I just wanted to know out of curiosity whether there is a chance to display an 88 level item.
pavankumar325
 
Posts: 2
Joined: Tue Jul 31, 2007 11:24 am
Has thanked: 0 time
Been thanked: 0 time

Re: how to display 88 level

Postby CICS Guy » Wed Nov 21, 2007 6:59 pm

pavankumar325 wrote:Both the codes did not work which were given in the above.
I find that hard to believe..... :roll:
I just wanted to know out of curiosity whether there is a chance to display an 88 level item.

Not directly, it is not a data item, but a condition......
CICS Guy
 
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: how to display 88 level

Postby dick scherrer » Sat Nov 24, 2007 9:28 am

Hello,

Both the codes did not work which were given in the above
I strongly suggest you review what you usd and determine just why you had problems. The learning will be most helpful to you.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: how to display 88 level

Postby kiran_ragam » Sun Dec 09, 2007 3:57 pm

hi, :idea:
if u want to display eof-flag then u can give like this....
IF EOF=1 THEN
DISPLAY EOF-FLAG
END-IF.
result is one space.
:D
kiran_ragam
 
Posts: 5
Joined: Sun Dec 09, 2007 3:27 pm
Has thanked: 0 time
Been thanked: 0 time

Re: how to display 88 level

Postby vasanthamugi » Sat Dec 22, 2007 2:57 pm

88 is the level number used for conditional clause . we can check the conditions but conditional codes doesn't return any codes so we cannot display they conditional code .and still it is used to display the values what we provide according to the given condition it will not display any conditional codes .

i am sorry if i am wrong any where .please correct me if i am wrong.
vasanthamugi
vasanthamugi
 
Posts: 14
Joined: Thu Dec 20, 2007 2:38 pm
Has thanked: 0 time
Been thanked: 0 time

Re: how to display 88 level

Postby nikhilgalgate » Tue Dec 25, 2007 2:29 pm

Hi Pavan/All,

Who need the answer of the above posting please refer to the following snapshots. According to me practically we can display and move the data in flag to another variable. Don't know it is correct or not therotically but it is possible.
Please have a look of the following and let me correct if I was wrong . :D


display1.JPG
You do not have the required permissions to view the files attached to this post.
nikhilgalgate
 
Posts: 9
Joined: Tue Dec 25, 2007 1:12 pm
Has thanked: 0 time
Been thanked: 0 time

Next

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post