You can run a rexx clist as a tso batch step to extract the date and allocate the file. Append the date with a character like D"DATE" and you can also add time: T"TIME". I have examples of clists which do this if you need them.
************* /*REXX*/ TRACE ALL D = DATE() T = TIME() SAY D T EXIT -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Rajeev Vasudevan Sent: Tuesday, May 08, 2007 12:37 PM To: [email protected] Subject: jcl. Hello, I need one help, could some one please let me know how this can be done . We n eed to create a file name appended with the current date dynamically ie if we ran today the file has to created like the below userid.test.05082007 Could some one also let me know is there any way by which the created file is made read only. Thanks, Raj --------------------------------- Ahhh...imagining that irresistible "new car" smell? Check outnew cars at Yahoo! Autos. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

