View previous topic :: View next topic
|
Author |
Message |
ian carter
New User
Joined: 18 May 2010 Posts: 3 Location: UK
|
|
|
|
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 |
|
|
Ronald Burr
Active User
Joined: 22 Oct 2009 Posts: 293 Location: U.S.A.
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
DCOLLECT records contain this data |
|
Back to top |
|
|
ian carter
New User
Joined: 18 May 2010 Posts: 3 Location: UK
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
ian carter wrote: |
but even if I extended this d/s, it truncated. |
pardon me but what this could possibly mean? |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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. |
|
Back to top |
|
|
ian carter
New User
Joined: 18 May 2010 Posts: 3 Location: UK
|
|
|
|
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 |
|
|
Agni
New User
Joined: 22 Nov 2007 Posts: 83 Location: Chennai
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
Agni
New User
Joined: 22 Nov 2007 Posts: 83 Location: Chennai
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
|