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

Creation date included in email report


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Sat Mar 31, 2007 3:45 am
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
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
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

Moderator Emeritus


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

PostPosted: Sat Mar 31, 2007 5:40 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top