View previous topic :: View next topic |
Author |
Message |
maram_mahinder Beginner
Joined: 26 Sep 2005 Posts: 2 Topics: 1
|
Posted: Mon Sep 26, 2005 6:55 am Post subject: i need Date and Time in Filename |
|
|
Hai,,
any one can favor me to solve this Problem...
i need Date and Time in filename while we Creating the file. in JCL..
(ex.:-. filename.Ddateformat.Ttimeformat).so i can submit my Job any time....it Creates another filename for every time i submit that JCL...
so it is ueful in our Program to Create Backup Files...
Thankx & Regards
Mahinder |
|
Back to top |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Mon Sep 26, 2005 7:04 am Post subject: |
|
|
Create GDG base and use that in your job. It will create a new file each time. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12385 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Mon Sep 26, 2005 7:39 am Post subject: |
|
|
maram_mahinder,
If your intention is to take backups, then go for GDG. You will not end up in "Duplicate Dataset Exists" - JCL error.
Instead, if you need a flat file for temporary purpose (Work File), then use the Temporary dataset option provided by JCL.
Code: |
//FILE1 DD DSN=&&TEMP1,DISP=(,PASS)
|
You will not end up in Duplicate - error, at the same time, your work file will be deleted upon completion of the job.
The third option is to use, Date & Time in your dataset name itself. For that, follow the link provided by kolusu,
Thanks,
Phantom |
|
Back to top |
|
 |
|
|