On Tue, 7 Jan 2014 06:09:37 -0800, Juan Mautalen <[email protected]> wrote:
>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. � Thanks in advance for your help, � JUAN MAUTALEN > For an "out of the box" JCL solution, likely the answer is going to be 'not currently supported.' However, you may be able to setup a midnight-execution batch job (using REXX or some other language) that generates different formats of JCL SET statements (based on some site-defined naming standards) that resolve various useful JCL symbolics used in batch jobs. There will be some considerations for restart, as in what happens if a job is delayed until the next calendar-day for a restart (the SET statements would have changed). This might be addressed with a solution where job #1 generates the SET statements followed by job #2 which references the statements to resolve symbolic conditions. Scott Barry SBBWorks, Inc. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
