Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Fetch changed date of members in a PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Fetch changed date of members in a PDS
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jul 06, 2010 3:24 pm    Post subject:
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    Post subject:
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

Moderator Team Head


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

PostPosted: Tue Jul 06, 2010 6:52 pm    Post subject: Reply to: Fetch changed date of members in a PDS
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jul 06, 2010 6:53 pm    Post subject:
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    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 Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm
No new posts Historical/statistical details for me... elixir1986 TSO/ISPF 13 Wed Aug 30, 2017 9:02 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us