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
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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