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 

Finding PDS non-edited member

 
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
hariavinash
Beginner


Joined: 21 Jan 2005
Posts: 52
Topics: 7

PostPosted: Wed Nov 16, 2005 5:24 am    Post subject: Finding PDS non-edited member Reply with quote

Is there a JCL utility avilable to search/scan a PDS to find a non-edited member. I tried going through the posts here,but unsuccessful. can anyone help?
my req. is to find the name of 1 or more pds members in a pds that are not edited. (ie the Size, Created, Changed, ID fields are blank).

any help is appreciated.

cheers
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Nov 16, 2005 5:31 am    Post subject: Reply with quote

hariavinash,

Open the PDS in edit mode and press PF11 Then you will see a column name VV MM . Place your cursor on that field and press ENTER. The members with 01.00 are the ones you are looking for

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Nov 16, 2005 5:35 am    Post subject: Reply with quote

hariavinash,

Code:

Size, Created, Changed, ID fields are blank).


The fields that you have mentioned can actually be blanked out even for a edited member. Goto 3.4 panel and type in a dataset and place the cursor before the PDS name just press enter (without providing any open mode - E / V / B / M). You will get a popup panel and Option 15 will say "Reset". Choosing this option will actually blank out the edit statistics that you see for every member.

Hence, looking at 3.4 statistics is not a reliable method. You need to loop through SMF records to actually find out if the member has been modified ever.

Thanks,
Phantom
Back to top
View user's profile Send private message
hariavinash
Beginner


Joined: 21 Jan 2005
Posts: 52
Topics: 7

PostPosted: Wed Nov 16, 2005 5:46 am    Post subject: Reply with quote

thanks kolusu and phantom. I am looking for the batch mode processing since my req. is to scan multiple pds for members created by another batch job, which does not have the Size, Created, Changed, ID fields are blank. is this search/scan possible thru a jcl utility to do this bit? thanks.
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Nov 16, 2005 5:56 am    Post subject: Reply with quote

hariavinash,

You can get the creation date from catalog but updated date and update user id are stored in SMF records. You need to read them using Assembler / SAS / REXX. Unfortunately I don't have the code.

Check this out.
http://www.mvsforums.com/helpboards/viewtopic.php?t=2440&highlight=smf+date
http://www.mvsforums.com/helpboards/viewtopic.php?t=3141&highlight=smf+date
http://www.mvsforums.com/helpboards/viewtopic.php?t=3266&highlight=smf+date

Thanks,
Phantom
Back to top
View user's profile Send private message
hariavinash
Beginner


Joined: 21 Jan 2005
Posts: 52
Topics: 7

PostPosted: Wed Nov 30, 2005 9:50 am    Post subject: PDS member listing Reply with quote

Hello,
i tried executing this piece (in the link below) of REXX code IKJEFT01
http://www.mvsforums.com/helpboards/viewtopic.php?t=1766

but it gives me an error saying

DATA SET userid.name NOT ALLOCATED.
ie. code IF 0<>LISTDSI(DSNAME) THEN
DO ....

i do not know REXX at all.
Can anyone help please.

cheers
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Nov 30, 2005 10:32 am    Post subject: Reply with quote

hariavinash,

You have to enclose the dataset within single quotes while passing it as parm. You might be having PREFIX setup in your profile. This will automatically prefix your TSO ID when you don't enclose your dataset within single quotes.

Try this way
Code:

rexx 'my.input.pds'


The other way is to turnoff automatic prefixing in your profile. Use the TSO PROFILE command in any command line as shown below
Code:

TSO PROFILE NOPREFIX


In this case, you don't have to worry abt providing quotes.

Hope this solves your problem

Thanks.
Phantom
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Nov 30, 2005 11:08 am    Post subject: Reply with quote

hariavinash, just a thought.

If you don't know REXX, then why use it? Why not just use the ISPF Library Maintenance services (as suggested by the link) in a program language more suited to your environment?
Back to top
View user's profile Send private message
hariavinash
Beginner


Joined: 21 Jan 2005
Posts: 52
Topics: 7

PostPosted: Wed Nov 30, 2005 11:58 am    Post subject: Reply with quote

superk,

my req. is to get all the non-edited (ie those without ispf statistics) member names in a pds. including the dataset name in batch mode. ISPF LMS doesnt do wat i want in batch mode. please correct me if i am arong.

reading thru the posts, the link says (shown above) it will do wat i want, and is in REXX. and sadly i do not knw REXX.

If you can point me to any other batch utility that'd be very very helpful.

thank you Smile
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Nov 30, 2005 12:40 pm    Post subject: Reply with quote

Most likely it is simply that the data set name was not in single quotes, but without knowing the input and the exact message, it is impossible to diagnose the problem. If you saw your TSO Prefix or userid appended to the beginning of the dsname, that is what the problem is. Rexx is fairly easy to understand, though this particular program decodes directory blocks which are a somewhat complicated. But you can look up LISTDSI to at least see what is happening there.

By the way, any user running the editor with STATS OFF can create members without statistics also.

The batch utility you can use to print directory entries is IEHLIST. For an example, in ISPF, type TSO ISPMLIST 'data-set-name'
Back to top
View user's profile Send private message Visit poster's website
nevilh
Beginner


Joined: 11 Aug 2004
Posts: 115
Topics: 0

PostPosted: Thu Dec 01, 2005 2:03 am    Post subject: Reply with quote

Quote:
You need to loop through SMF records to actually find out if the member has been modified ever.

SMF does not record data about members at best it will tell you when the dataset was updated
Back to top
View user's profile Send private message
gharisankar
Beginner


Joined: 10 Jul 2004
Posts: 19
Topics: 3
Location: C/O Platform - Mainframe

PostPosted: Mon Dec 05, 2005 12:33 am    Post subject: Reply with quote

Hi Hariavinash

The command SAVE LIST will help you to get those details.

1. Open the PDS.
2. Enter the "SAVE LIST" command in command line.
3. Your Member details will be stored in the DSN : "ur.id.LIST.MEMBERS"
4. The un-edited members won't have any details in this dataset.
_________________
Regards
Hari Smile
Back to top
View user's profile Send private message
hariavinash
Beginner


Joined: 21 Jan 2005
Posts: 52
Topics: 7

PostPosted: Tue Dec 06, 2005 6:08 am    Post subject: Reply with quote

thank you all for your feedback.
the REXX option worked well.

cheers
Back to top
View user's profile Send private message
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