View previous topic :: View next topic
|
Author |
Message |
Ankit Malhotra
New User
Joined: 31 Mar 2010 Posts: 2 Location: UK
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Ankit Malhotra
New User
Joined: 31 Mar 2010 Posts: 2 Location: UK
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
So, write an applcation in COBOL that uses the ISPF LMMLIST Service for retrieving the ISPF statistics. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
|