View previous topic :: View next topic |
Author |
Message |
karunkallore Beginner
Joined: 11 Dec 2004 Posts: 103 Topics: 39
|
Posted: Wed Apr 26, 2006 4:05 pm Post subject: Date time Stamp in JCL for substitution. |
|
|
Hi...
Is it possible to obtain the date time stamp in a JCL ( or proc ).
I have a member in the JCL that needs to start with 'B' then the date time stamp should be appended to it. For this member i.e 'B<date>' i have a need to FTP it to a server. So that is why the date time stamp is needed after 'B'. B is just a letter harcoded in the JCL.
For example in a JCL if the following is hardcoded Year=2006 then if i have a dataset in the JCL like TEST.Y.&year, then during execution time the name of the datset would be TEST.Y2006. Like that can i have the date time stamp substituted for the <date> field in 'B<date>'
Any help or lead will be greatly appreciated........
Thanks in advance,
Karun. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Apr 26, 2006 5:25 pm Post subject: |
|
|
karunkallore,
Search for EZACFSM1 on this board and you will find many examples.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Thu Apr 27, 2006 1:10 am Post subject: |
|
|
This sounds like a good fit for a small Rexx program and not such a good fit for JCL. To do this with JCL (allocating to a ddname), requires some pretty unnatural acts (like EZACFSM1). In Rexx you just use the date() function with the appropriate parameter. |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Apr 27, 2006 5:24 am Post subject: |
|
|
I fail to see how the dataset name has any relevance for an FTP file copy process. |
|
Back to top |
|
 |
karunkallore Beginner
Joined: 11 Dec 2004 Posts: 103 Topics: 39
|
Posted: Thu Apr 27, 2006 9:42 pm Post subject: Thank you ! |
|
|
Hi Friends......
Thanks a lot for the advise. I will explore as suggested. With regards to the FTP pocess doubt raised by my dear friend here is the explanation. The member 'B<date>' will be used as a coin to tigger certain VB applications in a server where it is FTPed onto.. Also this 'B<date>' needs to be unique.
Thanks again a lot for the help........
Regards,
Karun |
|
Back to top |
|
 |
|
|