IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to store files in MVS with date and time ??


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Anand_Kannan

New User


Joined: 09 Jun 2005
Posts: 3

PostPosted: Thu Jun 09, 2005 5:10 pm
Reply with quote

Hi all,

I need to store a File in MVS with file name having latest Date/Time when the program was executed, so that we could re-use the same file again in future by passing the Date/Time through JCL. I.e we want to store the files with date and time. Could Date/Time be stored in GDG and if so how? If not what else are the options?

Kindly let me know how to solve this.

Regards,
Anand
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Jun 09, 2005 7:42 pm
Reply with quote

Try to read this post:
http://ibmmainframes.com/viewtopic.php?t=2568&highlight=date
In my opinion, if you are working in Prod through a scheduler you must use scheduler variable as OPIADETE/OCDATE for TME10 OPC and if you are not you can use variable as Superk's sample or through a PROC or a rexx.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Thu Jun 09, 2005 10:22 pm
Reply with quote

How granular do your date and time values need to be? I could see using GDG's if you expected multiple occurences of files with the exact same date and time values. Otherwise, it seems to me that using GDG's would be a wasted effort. Don't forget that you need a GDG base defined BEFORE you can create a new generation, so you'd have to take that fact into account. Would you be pre-defining all of the possible bases, or would your job logic need to be able to define the bases "on the fly"?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Read two files CLIST & REXX 4
No new posts Date conversation DFSORT/ICETOOL 6
No new posts To pull the file with Date and Time u... TSO/ISPF 17
No new posts Help this REXX Rookie-Bad arithmetic ... CLIST & REXX 7
No new posts Compare 2 files replace data in 1st f... DFSORT/ICETOOL 4
Search our Forums:

Back to Top