Years ago I created an application that somewhat resembled your requirement. I had to read a file that contained various values and write each variable value as a PDSE member whose member name reflected that value. I used DFSORT to create an 'include' member of DD cards containing the members names. Since a date is your variable value, DFSORT has many date manipulation capabilities, this may be the way to go if you accept this departure from "JCL only" as the technique.

In my old app, once I created the member that contained the DD cards to be 'included', the following job was submitted as the last step via iebgener to the intrdr.

HTH.




On 1/7/2014 8:13 AM, גדי בן אבי wrote:
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:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Juan Mautalen
Sent: Tuesday, January 07, 2014 4:10 PM
To: IBM-MAIN@LISTSERV.UA.EDU
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 
lists...@listserv.ua.edu 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN


----------------------------------------------------------------------
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