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 DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
This topic is locked: you cannot edit posts or make replies. Job to wait and continue based on reply yugendran COBOL Programming 5 Wed Oct 05, 2016 1:46 pm
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts Need help on SQL Dynamic WHERE Clause subratarec DB2 12 Sat Jul 16, 2016 3:11 pm


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