MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

i need Date and Time in Filename

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
maram_mahinder
Beginner


Joined: 26 Sep 2005
Posts: 2
Topics: 1

PostPosted: Mon Sep 26, 2005 6:55 am    Post subject: i need Date and Time in Filename Reply with quote

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
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Sep 26, 2005 7:04 am    Post subject: Reply with quote

Create GDG base and use that in your job. It will create a new file each time.
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12385
Topics: 75
Location: San Jose

PostPosted: Mon Sep 26, 2005 7:13 am    Post subject: Reply with quote

maram_mahinder,

Please search before posting. check this link

http://mvsforums.com/helpboards/viewtopic.php?t=2101&highlight=date



Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Mon Sep 26, 2005 7:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group