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 TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Detailed Transaction History report f... Kyle Carroll CICS 5 Tue Oct 18, 2016 12:42 am
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm


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