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. Thanks in advance for your help, JUAN MAUTALEN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN לשימת לבך, בהתאם לנהלי חברת מלם מערכות בע"מ ו/או כל חברת בת ו/או חברה קשורה שלה (להלן : "החברה") וזכויות החתימה בהן, כל הצעה, התחייבות או מצג מטעם החברה, מחייבים מסמך נפרד וחתום על ידי מורשי החתימה של החברה, הנושא את לוגו החברה או שמה המודפס ובצירוף חותמת החברה. בהעדר מסמך כאמור (לרבות מסמך סרוק) המצורף להודעת דואר אלקטרוני זאת, אין לראות באמור בהודעה אלא משום טיוטה לדיון, ואין להסתמך עליה לביצוע פעולה עסקית או משפטית כלשהי. Please note that in accordance with Malam and/or its subsidiaries (hereinafter : "Malam") regulations and signatory rights, no offer, agreement, concession or representation is binding on the Malam, unless accompanied by a duly signed separate document (or a scanned version thereof), affixed with the Malam seal. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
