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

Dataset name ending with YYYY-MM-DD


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Suresh Shankarakrishnan

New User


Joined: 11 Jul 2008
Posts: 42
Location: USA

PostPosted: Wed Oct 17, 2012 1:23 am
Reply with quote

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

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed Oct 17, 2012 1:30 am
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 17, 2012 1:35 am
Reply with quote

Quote:
but dataset name ending with YYYY-MM-DD is not working.

wonder why icon_cool.gif

wise for You to meditate a bit on the jcl manuals available here

www-03.ibm.com/systems/z/os/zos/bkserv/index.html

for example
z/OS V1R12.0 MVS JCL User's Guide
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B560/CCONTENTS?SHELF=iea2bkb0&DN=SA22-7598-06&DT=20100701093058

z/OS V1R12.0 MVS JCL Reference
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B6A0/CCONTENTS?SHELF=iea2bkb0&DN=SA22-7597-14&DT=20100701092058

the person who set the silly requirement might also find worth to meditate on
Introduction to the New Mainframe: z/OS Basics
www.redbooks.ibm.com/abstracts/sg246366.html

but the topic should really belong to the JCL section
nowhere is told that <sort> is involved
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Oct 17, 2012 1:40 am
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Oct 17, 2012 2:10 am
Reply with quote

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 icon_confused.gif
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Wed Oct 17, 2012 2:36 am
Reply with quote

Suresh Shankarakrishnan wrote:
Found something where the name ends with date and timestamp, but dataset name ending with YYYY-MM-DD is not working.



Suresh Shankarakrishnan,

May be you ought to read the rules for creating a Dataset.

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt2d4a0/1.1.9
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top