I've got some old code here that is doing a strange
thing trying to rename a non-VSAM file.

After invoking the DFSMS RENAME service; which
has met with success (return-code is 0) to rename
a file in the VTOC from the "old" name to the "new"name;
it then goes on to un-CATALOG the "old" name.

What is surprising is that the un-CATALOG mysteriously
succeeds... but only sometimes.

Trying to track down two questions with this:

  1) Is the un-CATALOG of the "old" name (which presumbly
       is no longer there since RENAME has succeeded) necessary?

  2) Why would this un-CATALOG succeed if the RENAME
       has worked?  Shouldn't it always fail??? (Presumably
       with a return-code of 8?)


  - Thanks -
   - Dave Rivers -

--
[email protected]                        Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to