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
 

 

condition variable

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

New User


Joined: 07 Jul 2005
Posts: 10

PostPosted: Fri Apr 21, 2006 9:27 am    Post subject: condition variable
Reply with quote

Hello friends,

pls let me know the answer for these questions.

1) does condition variables take storage space?

eg: 05 ws-flag pic x.
88 are-there-more-recs value 'y'.
88 no-more-recs value 'n'.

2.what happens when an empty data-set is read?


Regards,
Rajaeswari.
Back to top
View user's profile Send private message

prakash271082

New User


Joined: 09 Sep 2005
Posts: 53

PostPosted: Fri Apr 21, 2006 9:40 am    Post subject:
Reply with quote

Hi,
1. Yes, it does occupy certain storage space. Wherever you have PIC clause, it occupies some space.

2. FILE-STATUS code would be 10 in he very beginning, if you come to trap it and accordingly your messsage would be displayed.

Hope this helps.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Apr 22, 2006 7:53 am    Post subject:
Reply with quote

Hi Rajaeswari,

1) The 88s don't occupy space; the 05 does.

2) It depends on what kind of "empty" the file assumes. If the file was open and closed successfully for output even if no recs were written, the file will return a "10" status.

If the file was never successfully opened and closed for output, no EOF marker was generated for the file. This will cause any future opens for input to fail.
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 Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm


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