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
 

 

Creation date included in email report

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Erika Garcia

New User


Joined: 28 Feb 2007
Posts: 5
Location: Mexico

PostPosted: Sat Mar 31, 2007 1:45 am    Post subject: Creation date included in email report
Reply with quote

Hello,
I've been reading several topics but haven't found a way to et the creation date for a flat file, can this be done with a jcl utility like syncsort or iebgener or any other. I have an input file, IN.P.FILE and I need the creation date, I found how to get the date from TSO command but I need it from a JCL.


Thanks for the help.

=D
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: Sat Mar 31, 2007 3:45 am    Post subject:
Reply with quote

Hello,

You can get creation date from a LISTCAT. You would run the report to disk, then parse the output for the "creation" date. Following is an example of the output from a listcat:
Code:
NONVSAM ------- MS.RDS.CAP1006                               
     IN-CAT --- ICAT.VD38200                                 
     HISTORY                                                 
       DATASET-OWNER-----(NULL)     CREATION--------2007.011  <--- the create date
       RELEASE----------------2     EXPIRATION------0000.000 
       ACCOUNT-INFO-----------------------------------(NULL) 
     SMSDATA                                                 
       STORAGECLASS ------SCSTD     MANAGEMENTCLASS----MCSTD 
       DATACLASS ------DCDFAULT     LBACKUP ---XXXX.XXX.XXXX 
     VOLUMES                                                 
       VOLSER------------MIGRAT     DEVTYPE------X'78048083' 
     ASSOCIATIONS--------(NULL)                               
     ATTRIBUTES                                               


Once you have the create date, where will it be used?
Back to top
View user's profile Send private message
Erika Garcia

New User


Joined: 28 Feb 2007
Posts: 5
Location: Mexico

PostPosted: Sat Mar 31, 2007 4:16 am    Post subject:
Reply with quote

Hellloooo,
Great idea, I'll use it in an email notification that we need to verify the creation of a data set, let me give it a try and I'll keep you posted !




Thanks !


Egm
Back to top
View user's profile Send private message
Erika Garcia

New User


Joined: 28 Feb 2007
Posts: 5
Location: Mexico

PostPosted: Sat Mar 31, 2007 4:35 am    Post subject:
Reply with quote

Hello,

I used this command,

LISTCAT ENT('DATA.SET.NAME') ALL

and it works ! ! ! ! ! ! I only have to do a small SAS program to change from Julian date to standard date format ! !


Thanks a lot !!!

Egm
icon_biggrin.gif
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: Sat Mar 31, 2007 5:40 am    Post subject:
Reply with quote

You're welcome - glad we could help icon_smile.gif
Back to top
View user's profile Send private message
paray2x

New User


Joined: 28 Dec 2005
Posts: 21

PostPosted: Fri Apr 06, 2007 7:45 pm    Post subject:
Reply with quote

Hi,

Using LISTCAT ENT('DATA.SET.NAME') HISTORY in place of ALL would list only the date.

You can use it if you do not want any other info
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts Checking Current date vickey_dw DFSORT/ICETOOL 1 Wed Feb 08, 2017 11:14 pm


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