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
 

 

To check GDG file is created by giving dates in batch

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: To check GDG file is created by giving dates in batch
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 15, 2009 9:17 pm    Post subject:
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    Post subject:
Reply with quote

Hi Expat,

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

http://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: 8593
Location: Back in jolly old England

PostPosted: Wed Sep 16, 2009 4:19 pm    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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