View previous topic :: View next topic
|
Author |
Message |
kalaignar_S Warnings : 1 New User
Joined: 06 Jan 2006 Posts: 21
|
|
|
|
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 |
|
|
kamran
New User
Joined: 01 May 2005 Posts: 55
|
|
|
|
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 |
|
|
kalaignar_S Warnings : 1 New User
Joined: 06 Jan 2006 Posts: 21
|
|
|
|
date is possible?
if possible pls let me know the procedure.. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
kalaignar_S Warnings : 1 New User
Joined: 06 Jan 2006 Posts: 21
|
|
|
|
i am looking at how to process a PDS based on the ISPF statistics of the members |
|
Back to top |
|
|
pkmurali Warnings : 1 Active User
Joined: 15 Dec 2005 Posts: 271
|
|
|
|
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 |
|
|
kamran
New User
Joined: 01 May 2005 Posts: 55
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
|