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

Fetch changed date of members in a PDS


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

New User


Joined: 31 Mar 2010
Posts: 2
Location: UK

PostPosted: Tue Jul 06, 2010 3:14 pm
Reply with quote

Hello!

Please have a lok at JCL below:
Code:

//MYJCL$$$ JOB (A,B,CCCC00),MSGCLASS=Q,NOTIFY=&SYSUID                 
//SUPERC  EXEC PGM=ISRSUPC,                                           
//            PARM=(DELTAL,LINECMP,                                   
//            '',                                                     
//            '')                                                     
//NEWDD  DD DSN=ABC.DEF.GHI,                     
//          DISP=SHR                                                   
//OLDDD  DD DSN=JKL.MNO.PQR,                     
//          DISP=SHR                                                   
//OUTDD  DD SYSOUT=(A)                                                 
//SYSIN  DD *                                                         
SELECT I111111,I122222,I133333,I144444,I155555,I166666                 
SLIST OFF                     /* STOP LISTING SELECT STATEMENTS     */
SELECT I211111,I222222,I233333,I244444,I255555,I266666                 
/*                                                         

MYJCL$$$ is generated using option 3.12 to be submitted in batch mode.

My requirement is rather than selecting all members in New DSN ABC.DEF.GHI, I want only those members that have a last modified date greater than a certain date, say 28 June 2010 00:00:00 hrs according to mainframe system time. I searched the forum and found some REXX code doing this but nothing related to JCL.

Is there a utility in JCL that can help me to select particular set of members according to their last modified date in PDS? And then submit MYJCL$$$ to get desired results from ISRSUPC. Please help or guide me to some related post.
Thanks a lot in advance..
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Jul 06, 2010 3:24 pm
Reply with quote

What happens if the PDS has ISPF statistics set OFF

If the REXX / ISPF code will give you the last changed dates of members (where the stats exist) why do you not use that.
Back to top
View user's profile Send private message
Ankit Malhotra

New User


Joined: 31 Mar 2010
Posts: 2
Location: UK

PostPosted: Tue Jul 06, 2010 6:29 pm
Reply with quote

Hi Expat!

The ISPF STATS are set ON for both PDS (NEWDD & OLDDD).
I can't use REXX as my organization wants it to be written in JCL or COBOL only. Moreover, I don't know much REXX too. Please help.

Regards,
Ankit
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Jul 06, 2010 6:52 pm
Reply with quote

So, write an applcation in COBOL that uses the ISPF LMMLIST Service for retrieving the ISPF statistics.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Jul 06, 2010 6:53 pm
Reply with quote

Ankit Malhotra wrote:
my organization wants it to be written in JCL or COBOL only.
Once more let us clarify exactly what JCL is.
it is Job Control Language.

By itself it does nothing. It is used to invoke the chosen program and to define which datasets are to be used by the DD names associated with the chosen program.

JCL does not have magical powers that solve all problems, JCL is merely the vehicule for telling the processor which program you want it to execute.

I only have REXX / ISPF code or SAS code to extract the info from a PDS, however, IEHLIST with LISTPDS can also give you most of the information.
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