I would suggest a small PROC which invokes IDCAMS to COPY COUNT(1). The return code will tell you that there either was or wasn't one record to copy. Step 2 can then delete the dataset based on the return code.
Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.