View previous topic :: View next topic
|
Author |
Message |
Arun_Tupili
New User
Joined: 18 Nov 2008 Posts: 3 Location: Norwich, UK
|
|
|
|
Hi,
I have a job which runs hourly in a day.
Every hour it runs, the data would be written into the output file.
I need to append the current date as a qualifier to the PS, so that I can easily recognise all the files for the respective day.
For example if the job runs in the morning 9:20:21 AM then the file should look like NUTSO.ARUN.DATE04052010.TIME092021
For example if the job runs in the evening 20:05:17 AM then the file should look like NUTSO.ARUN.DATE04052010.TIME200517
I am currently using our project specific parameters for appending Date as a qualifier in PS. But we do not have the same for Time.
Also I am not interested to use GDG's.
Can you please help.
Thanks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
You cannot do what you have asked about - your dataset names are invalid. Suggest you look in the JCL manual available via the "IBM Manuals" link at the top of the page.
One way to do what you want is to have the dataset names created dynamically by some predecessor process and then submit the newly created jcl.
Quote: |
Also I am not interested to use GDG's. |
Your management may have a different interest. . .
What business reason is there to exclude using a GDG? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You scheduling people will also be a good place to have a chat as most scheduling software have date / time variables built in.
I also echo Dicks comment regarding GDS. Surely the easiest solution from the outset. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Quote: |
I am currently using our project specific parameters for appending Date as a qualifier in PS. But we do not have the same for Time.
|
Have you checked this with scheduling people as Expat suggested?
Since you have date varialbe already, (which is most probably populated by sheduling software before job submittion ) there is fair chance of having variable for time too. |
|
Back to top |
|
|
Arun_Tupili
New User
Joined: 18 Nov 2008 Posts: 3 Location: Norwich, UK
|
|
|
|
Hi,
Many thanks for the reply.
I have checked for project specific parameters in our scheduler TWS OPCP and got the required date & time parameters. I was able to use them for appending in dataset name.
Thanks
Arun |
|
Back to top |
|
|
|