View previous topic :: View next topic |
Author |
Message |
amit4u79 Beginner
Joined: 24 Oct 2005 Posts: 109 Topics: 36 Location: India
|
Posted: Wed Nov 23, 2005 8:53 pm Post subject: Check for ISRDDN Allocation before issuing "FREE DD(DDN |
|
|
Hi Techfundoos,
Can you kindly let me know if I am allocating some DSNs to a DDName using "ALLOC DD(AAAA) DSN(ZZZZ.AAAA.EEEE)" and before this I am issuing a "FREE DD(AAAA)" command through my REXX. But for the first time it gives me informational message that DD name not allocated..not freed.
Is there any way I can check if a particular DDname is allocated in the TSO ISRDDN list ?? If yes only then I need to issue the FREE DD command.
Please let me know.
Regards,
Amit Joshi
Singapore. |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed Nov 23, 2005 9:09 pm Post subject: |
|
|
You don't need to isuse the FREE command because you can add REUSE to the ALLOC command. That will free the ddname if it is allocated before it does the new allocation. |
|
Back to top |
|
 |
amit4u79 Beginner
Joined: 24 Oct 2005 Posts: 109 Topics: 36 Location: India
|
Posted: Wed Nov 23, 2005 11:45 pm Post subject: |
|
|
Hey thanks a lot for the information. My code is working fine now.
Thanks again.
Regards,
Amit Joshi. _________________ I did not fail; I have found 10,000 ways that would not work - Albert Einstein. |
|
Back to top |
|
 |
|
|