IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Migrated Dataset's creation date


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
CJT

New User


Joined: 02 Aug 2007
Posts: 83
Location: Here

PostPosted: Fri Oct 05, 2007 4:43 pm
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Oct 05, 2007 4:52 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Fri Oct 05, 2007 5:03 pm
Reply with quote

How about a search:
How to get information about migrated datasets and VSAM
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Fri Oct 05, 2007 5:08 pm
Reply with quote

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
View user's profile Send private message
CJT

New User


Joined: 02 Aug 2007
Posts: 83
Location: Here

PostPosted: Fri Oct 05, 2007 5:53 pm
Reply with quote

Hi Devzee,

can you give me an example. How si the creation date obtained from LISTC?

thanks
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Fri Oct 05, 2007 5:59 pm
Reply with quote

CJT wrote:
can you give me an example. How si the creation date obtained from LISTC?
Let's not be too lazy now, check the systax and examples in the FM: The LISTCAT command lists catalog entries.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Oct 05, 2007 7:10 pm
Reply with quote

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
View user's profile Send private message
CJT

New User


Joined: 02 Aug 2007
Posts: 83
Location: Here

PostPosted: Tue Oct 09, 2007 5:49 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Oct 09, 2007 6:23 pm
Reply with quote

Thank you for posting your solution icon_smile.gif
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Tue Oct 09, 2007 7:05 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top