On 7/14/2011 08:40, Hilario G. wrote:
Hello folks,
I have several batch processes that contain empty files or files that do not
exist.
I need to control the execution of certain programs based on the existence of
these files (including files created empty).
I try to used IDCAMS but didn't work in my tests.
Thank you very much everyone.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
If the file exists, IDCAMS print with count of one will tell if it is
empty or not.
IDCAMS listc for when the file might or might not be present.
Use IF LASTCC and MAXCC as needed to control the flow.
Doug
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html