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
 

 

Dataset 'last referenced' date - retrievable through batch?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ian carter

New User


Joined: 18 May 2010
Posts: 3
Location: UK

PostPosted: Tue May 18, 2010 9:05 pm    Post subject: Dataset 'last referenced' date - retrievable through batch?
Reply with quote

The ISPF 0.3.4 Dataset List Utility returns, amongst other information, the date a file was last referenced. I want to compile a file of 1,000+ datasets including this info. Does anyone know whether this can be returned via a batch job (utility etc)?
Back to top
View user's profile Send private message

Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Tue May 18, 2010 10:21 pm    Post subject:
Reply with quote

Whatever you select to list on the 3.4 screen can be saved into a flat file by using the SAVE primary command - e.g. SAVE mylist ( where the extended DSN will be YourUserId.mylist.DATASETS ( .MEMBERS for a panel showing a member list for a PDS ).
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 May 19, 2010 11:25 am    Post subject:
Reply with quote

DCOLLECT records contain this data
Back to top
View user's profile Send private message
ian carter

New User


Joined: 18 May 2010
Posts: 3
Location: UK

PostPosted: Wed May 19, 2010 12:43 pm    Post subject:
Reply with quote

Brilliant, thanks. I'd used SAVE followed by LIST to see the SPF* dataset it saved to, but even if I extended this d/s, it truncated.
This works perfectly.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed May 19, 2010 9:56 pm    Post subject:
Reply with quote

ian carter wrote:
but even if I extended this d/s, it truncated.
pardon me but what this could possibly mean?
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu May 20, 2010 4:59 am    Post subject:
Reply with quote

Quote:
but even if I extended this d/s,it truncated. This works perfectly.

Anuj said
Quote:
pardon me but what this could possibly mean?

Who knows, but it worked perfectly. icon_eek.gif
Back to top
View user's profile Send private message
ian carter

New User


Joined: 18 May 2010
Posts: 3
Location: UK

PostPosted: Thu May 20, 2010 12:49 pm    Post subject:
Reply with quote

Anuj - for your info... when you use the SAVE command followed by the LIST, you get three options (Print & delete/delete/Keep existing dataset). If you take option 3 to save, ISPF writes this to a dataset whose record length is held in the ISPF settings (I'm not going into detail of how you find that). You can change the record length, but for some reason ISPF will only write the first 120 bytes of the data from the SAVE (ie truncates).
But, as MMWIFE rightly states, who cares because the top solution works perfectly.
Back to top
View user's profile Send private message
Agni

New User


Joined: 22 Nov 2007
Posts: 83
Location: Chennai

PostPosted: Thu May 20, 2010 6:36 pm    Post subject: Reply to: Dataset 'last referenced' date - retrievable throu
Reply with quote

Hi Ian,

Can you please explain this eloborately? Like where did you use SAVE & LIST commands (i.e in a batch job). If possible, can you please provide step by step procedure. If you have JCL, can you plesae post it?

Cheers
Agni
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu May 20, 2010 6:40 pm    Post subject: Re: Reply to: Dataset 'last referenced' date - retrievable t
Reply with quote

Agni wrote:
Can you please explain this eloborately? Like where did you use SAVE & LIST commands (i.e in a batch job). If possible, can you please provide step by step procedure. If you have JCL, can you plesae post it?
Go to ISPF 3.4, give some wild card search, e.g. yourID.**, on command line SAVE LIST - all the listed DSNs would be saved in "yourID.LIST.DATASETS". This is lready stated in this thread. icon_neutral.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu May 20, 2010 6:59 pm    Post subject:
Reply with quote

ian carter wrote:
Anuj - for your info... when you use the SAVE command followed by the LIST, you get three options (Print & delete/delete/Keep existing dataset). If you take option 3 to save, ISPF writes this to a dataset whose record length is held in the ISPF settings (I'm not going into detail of how you find that). You can change the record length, but for some reason ISPF will only write the first 120 bytes of the data from the SAVE (ie truncates).
That means you just issue LIST and hits enter, once in ISPF 3.4. If you do so, you got those three options and file, listing the DSNs, will be of nature 121/FBA.

Instead, if you issue "SAVE LIST" on command line in ISPF 3.4, your data will be saved right-away without bothering about the "what to choose on next panel" and the file, which will list the DSNs, will be, typically, of LRECL 140, with name "yourID.LIST.DATASETS".

Hope this helps.
Back to top
View user's profile Send private message
Agni

New User


Joined: 22 Nov 2007
Posts: 83
Location: Chennai

PostPosted: Fri May 21, 2010 5:26 pm    Post subject: Reply to: Dataset 'last referenced' date - retrievable throu
Reply with quote

Yes Anuj, it did. Thanks a bunch for your explanation.

But i can't think where these details might be used.

Cheers
Agni
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri May 21, 2010 5:44 pm    Post subject:
Reply with quote

You're welcome.

That depends on programmer, what s/he wants to with the data they have. There are times when you need them.
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 How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm


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