You could do it with a Rexx script that built the JCL and then submitted it.
You could do it with a front-end written in assembler, or probably Rexx or COBOL, that created the file name in program logic, dynamically allocated it, and then called your existing processing program. But no, there is almost no arithmetic or string "manipulation" capability in JCL itself. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of ??? ?? ??? Sent: Tuesday, January 07, 2014 6:14 AM To: [email protected] Subject: Re: JCL and date variables As far as know, this is not possible using only JCL. You will have to use a separate job to either create the full job, or a small section that will be included. Any job scheduler will be able to do this easily. Gadi -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Juan Mautalen Sent: Tuesday, January 07, 2014 4:10 PM To: [email protected] Subject: JCL and date variables Hi: I have a question regarding JCL and date variables. I need to run a job daily, whose output must be written to a partitionned dataset with a member name referring to the day before job execution. Example: If the job runs today, january 7 of 2014, it must create the member F140106 ( and not F140107). That is because the job processes information from the day before (and not from the day it is indeed running). Is there a way to achieve this purely from JCL? we have z/OS 1.13. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
