MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

EXTRACT ATTRIBUTES IN PDS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Devi
Beginner


Joined: 29 Oct 2004
Posts: 6
Topics: 3
Location: chennai

PostPosted: Wed Jul 09, 2008 8:54 am    Post subject: EXTRACT ATTRIBUTES IN PDS Reply with quote

Hi.
Could you please clarify my doubt.
I have a PDS with follwoing members
Code:

    KXX0P.TAB.UAT                             Row 00001 of 00095
===>                                                  Scroll ===> CSR 
   Name     Prompt       Size   Created          Changed          ID   
_ BHTABBAF                  6  1995/05/10  2004/09/07 15:17:19  P002670
_ BHTABINL                 10  2003/09/24  2007/09/04 09:48:30  P014100


I want to copy the date when this member got changed into a flat file
for instance new file looks like below
Code:

BHTABBAF 2004/09/07
BHTABINL  2007/09/04

Please clarify are we can extract the attributes like this.Many Thanks !!
_________________
"A faithful friend is the medicine of life."
Back to top
View user's profile Send private message Yahoo Messenger
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Jul 09, 2008 11:13 am    Post subject: Reply with quote

That is an SPF statistic. It is documented somewhere - sorry, cannot say off the top of my head. You would need a Rexx exec or Clist to access each member and its stats and then write the info to your file.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Jul 09, 2008 3:51 pm    Post subject: Reply with quote

While viewing the list of members in ISPF, enter 'SAVE MYLIST LONG' and the stats will be stored in dataset 'userid.MYLIST.MEMBERS' for you.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Thu Jul 10, 2008 1:06 am    Post subject: Reply with quote

Devi,

'userid.MYLIST.MEMBERS' will have all the details. If you want only the member name and changed date, then you can do it thru SORT by giving 'userid.MYLIST.MEMBERS' as input.
Back to top
View user's profile Send private message Send e-mail
Devi
Beginner


Joined: 29 Oct 2004
Posts: 6
Topics: 3
Location: chennai

PostPosted: Fri Jul 11, 2008 4:40 am    Post subject: Reply with quote

Thanks a lot! .Now I am just thinking how to place this command in a jcl (without enter command manually)

I mean,we need to create a job which will run montly and generate the file 'userid.MYLIST.MEMBERS'

If time permits,please throw your suggestions. Many Thanks!
_________________
"A faithful friend is the medicine of life."
Back to top
View user's profile Send private message Yahoo Messenger
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Fri Jul 11, 2008 6:33 am    Post subject: Reply with quote

Write a program that uses the ISPF Library Management (LM) service LMMLIST with STATS(YES) enabled.
Back to top
View user's profile Send private message
Devi
Beginner


Joined: 29 Oct 2004
Posts: 6
Topics: 3
Location: chennai

PostPosted: Tue Jul 15, 2008 5:51 am    Post subject: Reply with quote

Thanks Superk !
_________________
"A faithful friend is the medicine of life."
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group