Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Dynamic allocation!! How to make the pgm wait for DS in use

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER
Author Message
dinesh_mf

New User


Joined: 26 May 2005
Posts: 15
Location: maharashtra

PostPosted: Fri Jun 23, 2006 2:34 pm    Post subject: Dynamic allocation!! How to make the pgm wait for DS in use
Reply with quote

Hello folks,
I am working on a dynamic allocation routine. i have a requirement wherein my program has to allocate a dataset dynamically for deletion. For this I am allocating it with DISP=(OLD,DELETE).
This works if the data set to be allocated is not in use otherwise it fails.
i have a requirement wherein I dont want my pgm to fail. i want it to wait for DSN until it gets free.

For this i have updated macro IEFZB4D0 to set a few ALLOC bits. The change I made is
" S99FLG21 DC B'11011111' " instead of
" S99FLG21 DS CL1" so that I can get the following bits set i.e S99WTVOL, S99WTDSN , S99NORES , S99WTUNT , S99OFFLN , S99TIONQ, S99CATLG and S99MOUNT.
I have linked-edited my pgm with AC=1 and the LMOD resides in APF authorized library as well.
My pgm is not waiting for dataset nor it is getting serialized to SYSDSN.
Pls help. pls let me have alternate solution to this.

Thanks,
Dinesh
Back to top
View user's profile Send private message
References
dinesh_mf

New User


Joined: 26 May 2005
Posts: 15
Location: maharashtra

PostPosted: Fri Jun 23, 2006 5:15 pm    Post subject: Re: Dynamic allocation!! How to make the pgm wait for DS in
Reply with quote

Job well done. icon_smile.gif))
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER All times are GMT + 6 Hours
Page 1 of 1