I need to schedule some job under TWS vel IWS vel ZWS.

The job contain full month concatenation of daily datasets.
//INPUT  DD DISP=SHR,DSN=HLQ.Y2022.D0101
//             DD DISP=SHR,DSN=HLQ.Y2022.D0102
//             DD DISP=SHR,DSN=HLQ.Y2022.D0103
...
//             DD DISP=SHR,DSN=HLQ.Y2022.D0131


The problem is number of days in a month.
Sometimes it is 31, 30 or 28 (and 29) days.
I would comment out last DD using some variable.
Something like the following:
//*%OPC IF month =02 then MYVAR=** ELSE MYVAR=''
the DD:
//%MYVAR             DD DISP=SHR,DSN=HLQ.Y2022.D0131
will be commented or not.
It can be IF or CASE or anything.

Or maybe there is other way to do that?


(No, I it has to be full month, I cannot change naming convention, etc.)

--
Radoslaw Skorupka
Lodz, Poland

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to