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
 
Migrated Dataset's creation date

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Migrated Dataset's creation date
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: 1288
Location: Chennai, India

PostPosted: Fri Oct 05, 2007 4:52 pm    Post subject: Reply to: Migrated Dataset's creation date
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: 2150
Location: At my coffee table

PostPosted: Fri Oct 05, 2007 5:03 pm    Post subject:
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    Post subject:
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    Post subject: Reply to: Migrated Dataset's creation date
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: 2150
Location: At my coffee table

PostPosted: Fri Oct 05, 2007 5:59 pm    Post subject: Re: Reply to: Migrated Dataset's creation date
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Fri Oct 05, 2007 7:10 pm    Post subject: Reply to: Migrated Dataset's creation date
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    Post subject: Reply to: Migrated Dataset's creation date
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

Site Director


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

PostPosted: Tue Oct 09, 2007 6:23 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 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

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