View previous topic :: View next topic
|
Author |
Message |
Suresh Shankarakrishnan
New User
Joined: 11 Jul 2008 Posts: 42 Location: USA
|
|
|
|
Found something where the name ends with date and timestamp, but dataset name ending with YYYY-MM-DD is not working.
Requirement listed below.
1. Sequential file name = CustName_Users. Need to create a file called CustName_Users_YYYY-MM-DD.
Dataset attributes listed below-
SPACE=(TRK,(5,5),RLSE),
DCB=(RECFM=FB,LRECL=133,BLKSIZE=27930)
A Generation Dataset can work, but the last qualifier in the name ends in 'G0911V00', G0912V00', 'G0913V00' etc. The version number in the GDG increases by one, but it will work if the last qualifier in the dataset name captures the date in YYYY-MM-DD format. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
I recommend that you give over this mad scheme, the more so as there are several invalidities in the DSN you propose. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
The version of a GDG dataset (GDS) does NOT increase by 1 but remains 0. The generation number increases by the amount specied in the JCL (+1) (+2) etc. It is there to record the sequence of the dataset and should bot be used for any other purpose. Look in the JCL manual for valid characters in a dataset name and valid format. As Akatsukami wrote - there are multiple errors in your proposed name. You can aslo get OPC/TIVOLI/Whatever your scheduler is, to complete a dataset name with date information - see your scheduling group, do not ask us. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Requirement listed below.
1. Sequential file name = CustName_Users. Need to create a file called CustName_Users_YYYY-MM-DD. |
As this cannot be done, the requirement has to be changed.
Is there someone in the organization that has actually worked with JCL?
The "name" shown is an *nix or Windows file name |
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
Back to top |
|
|
|