View previous topic :: View next topic
|
Author |
Message |
CJT
New User
Joined: 02 Aug 2007 Posts: 83 Location: Here
|
|
|
|
Hi,
I ahve a requirement where i need to get the creation date of datasets. I have been using LMDLIST for this purpose. But i just found out that for migrated datasets it doesnt return the ZDLCDATE....unfortunate for me.
Does anyone no how to get the creation date of a file even if its migrated?
thanks |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
After getting the LIST of all the datasets using LMDLIST add a statement to recall all the datasets and then get the creation date. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Quote: |
recall all the datasets and then get the creation date |
why should we recall all the datasets to get creataion date. What happens if there are 1000 datasets how much time it takes to get the creation date.
I would suggest use IDCAMS Listcat which gives creation date of even migrated datasets. |
|
Back to top |
|
|
CJT
New User
Joined: 02 Aug 2007 Posts: 83 Location: Here
|
|
|
|
Hi Devzee,
can you give me an example. How si the creation date obtained from LISTC?
thanks |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
using the ismf application investigate the output of the dcollect
given the appropriate parameters it will collect data also from the MCDS
regards
e.s
P.S.
Post under a new topic if You want info onn how to process the output of DCOLLECT |
|
Back to top |
|
|
CJT
New User
Joined: 02 Aug 2007 Posts: 83 Location: Here
|
|
|
|
Hi,
I implemented it using LISTC command. Thanks Devzee for this useful opinion that LISTC could even the migrated datasets information.
The code used for those who may need to reuse it.
Code: |
CALL OUTTRAP "CRTDT."
ADDRESS TSO "LISTCAT ENT('"TESTFILE"') ALL"
CALL OUTTRAP "OFF"
Now Parse the outtrap using With "Creation" to get the creation date
|
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Thank you for posting your solution |
|
Back to top |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
Hy,
read what enrico-sorichetti is talking about,
he is absolutely correct.
if you don not know about DCOLLECT, then
read more thru the manuals... :-)
if the datasets are not on disk, you will not get the
information required by LISTC or something equivalent, ok?
regards,
martin9 |
|
Back to top |
|
|
|