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

How to know the dataset creation Time


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kalaignar_S
Warnings : 1

New User


Joined: 06 Jan 2006
Posts: 21

PostPosted: Thu Apr 13, 2006 2:46 pm
Reply with quote

Could you please help to find out to know the dataset
creation time in mainframe. We have have requirement
like based on creation time of the dataset, our
process shoul FTP the files from mainframe to unix
box.

So how do we identify the creation time of a dataset.

Your response in this is most appriciatable..
Back to top
View user's profile Send private message
kamran

New User


Joined: 01 May 2005
Posts: 55

PostPosted: Thu Apr 13, 2006 4:48 pm
Reply with quote

Do you need creation time or date?
if you need creation time I don't think it would not stored anywhere to be retrieved later!


kalaignar_S wrote:
Could you please help to find out to know the dataset
creation time in mainframe. We have have requirement
like based on creation time of the dataset, our
process shoul FTP the files from mainframe to unix
box.

So how do we identify the creation time of a dataset.

Your response in this is most appriciatable..
Back to top
View user's profile Send private message
kalaignar_S
Warnings : 1

New User


Joined: 06 Jan 2006
Posts: 21

PostPosted: Thu Apr 13, 2006 4:55 pm
Reply with quote

date is possible?
if possible pls let me know the procedure..
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Apr 13, 2006 4:58 pm
Reply with quote

kalaignar_S, your post title is "PDS". Are you looking at how to process a PDS based on the ISPF statistics of the members? Or, are you talking about QSAM or VSAM datasets?
Back to top
View user's profile Send private message
kalaignar_S
Warnings : 1

New User


Joined: 06 Jan 2006
Posts: 21

PostPosted: Thu Apr 13, 2006 5:01 pm
Reply with quote

i am looking at how to process a PDS based on the ISPF statistics of the members
Back to top
View user's profile Send private message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Thu Apr 13, 2006 5:14 pm
Reply with quote

Hi,
If you want to know the creation date type S or I before the dataset.It will give Information about dataset.
Back to top
View user's profile Send private message
kamran

New User


Joined: 01 May 2005
Posts: 55

PostPosted: Thu Apr 13, 2006 5:21 pm
Reply with quote

Hi,
I think it is better you to explain your need in detail because at first I thought you need just creation date of the whole pds but it seems from the quoted one that you need creation time of each member which is possible and you didn't clear if you are going to detecting of creation time of each member automatically and in which language you need to write your probable program.
finally it is possible to retrieve the creation date and update date and time of each member of the a pds through ISPF!
of course if think this must be discussed in other topics

kalaignar_S wrote:
i am looking at how to process a PDS based on the ISPF statistics of the members
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Apr 13, 2006 5:29 pm
Reply with quote

You can write a program that uses ISPF services for PDS member list processing.

Basically, the services you'll need are:

LMINIT to assign a variable as a "handle".

LMOPEN to open the dataset as input.

LMMLIST with OPTION(LIST) and STATS(YES) enabled, in a loop, to retrieve the member statistics one member at a time. As each member is retrieved, a set of ISPF variables will be populated with the PDS member statistic information. Those variables are described here.

LMCLOSE to close the dataset.

You'll find the details for the various ISPF Services in the "z/OS V1R7.0 ISPF Services Guide":

LMINIT

LMOPEN

LMMLIST

LMCLOSE

As always, you'll find the details for using these services in the ISPF EDIT Models for the programming language you choose.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
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 To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top