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
 

 

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: 10256
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: 288
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 Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm


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