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
 

 

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
View previous topic :: :: View next topic  
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

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am


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