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

To check GDG file is created by giving dates in batch


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
MalathiViswa

New User


Joined: 13 Sep 2009
Posts: 2
Location: Chennai

PostPosted: Tue Sep 15, 2009 6:41 pm
Reply with quote

Hi,

I have many GDG files. I need to check whether last GDG file is created for those files between mm/dd/yyyy and mm1/dd1/yyyy. In the output file i need to get all the input file with creation date. If the file was not created between those two dates,then it should say no file is created.

Eg:

Checking for the files created between 07/09/2009 and 11/09/2009

Input file:

AAA created on 09/09/2009
BBB created on 10/09/2009
CCC created on 03/03/2003

Output file:

AAA>>>09/09/2009
BBB>>>10/09/2009
CCC>>>Not created
Back to top
View user's profile Send private message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Tue Sep 15, 2009 7:24 pm
Reply with quote

Use LISTCAT and it requires some processing to pick the GDG file name and its creation date. I have implemented the same but using LISTCAT and a COBOL program.

You can also do it with sort.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Sep 15, 2009 9:17 pm
Reply with quote

Or look in SYS1.SAMPLIB for IGGCSIRX
Back to top
View user's profile Send private message
arvind.m

Active User


Joined: 28 Aug 2008
Posts: 205
Location: Hyderabad

PostPosted: Wed Sep 16, 2009 2:58 pm
Reply with quote

Hi Expat,

can you please tell me what is SYS1.SAMPLIB for IGGCSIRX. I checked the below link

publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.idac100/c1065.htm

or anyother informational link is also very helpful.
thanks,
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Sep 16, 2009 4:19 pm
Reply with quote

SYS1.SAMPLIB is where the basic REXX code is stored, as shipped from IBM.

And you can click HERE to read the manual to see all of the fields that you can use in a report / action REXX.
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top