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

condition variable


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
No new posts parsing variable length/position data... DFSORT/ICETOOL 5
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top