Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Dataset name ending with YYYY-MM-DD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Dataset name ending with YYYY-MM-DD
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: 1753
Location: Bloomington, IL

PostPosted: Wed Oct 17, 2012 1:30 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Wed Oct 17, 2012 1:35 am    Post subject: Reply to: Dataset name ending with YYYY-MM-DD
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

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

for example
z/OS V1R12.0 MVS JCL User's Guide
http://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
http://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
http://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: 1755
Location: UK

PostPosted: Wed Oct 17, 2012 1:40 am    Post subject:
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

Site Director


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

PostPosted: Wed Oct 17, 2012 2:10 am    Post subject:
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    Post subject: Re: Dataset name ending with YYYY-MM-DD
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.

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 5 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us