View previous topic :: View next topic |
Author |
Message |
hariavinash Beginner
Joined: 21 Jan 2005 Posts: 52 Topics: 7
|
Posted: Wed Nov 16, 2005 5:24 am Post subject: Finding PDS non-edited member |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Nov 16, 2005 5:31 am Post subject: |
|
|
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 |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Wed Nov 16, 2005 5:35 am Post subject: |
|
|
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 |
|
 |
hariavinash Beginner
Joined: 21 Jan 2005 Posts: 52 Topics: 7
|
Posted: Wed Nov 16, 2005 5:46 am Post subject: |
|
|
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 |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
|
Back to top |
|
 |
hariavinash Beginner
Joined: 21 Jan 2005 Posts: 52 Topics: 7
|
Posted: Wed Nov 30, 2005 9:50 am Post subject: PDS member listing |
|
|
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 |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Wed Nov 30, 2005 10:32 am Post subject: |
|
|
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 |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Wed Nov 30, 2005 11:08 am Post subject: |
|
|
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 |
|
 |
hariavinash Beginner
Joined: 21 Jan 2005 Posts: 52 Topics: 7
|
Posted: Wed Nov 30, 2005 11:58 am Post subject: |
|
|
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  |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed Nov 30, 2005 12:40 pm Post subject: |
|
|
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 |
|
 |
nevilh Beginner
Joined: 11 Aug 2004 Posts: 115 Topics: 0
|
Posted: Thu Dec 01, 2005 2:03 am Post subject: |
|
|
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 |
|
 |
gharisankar Beginner

Joined: 10 Jul 2004 Posts: 19 Topics: 3 Location: C/O Platform - Mainframe
|
Posted: Mon Dec 05, 2005 12:33 am Post subject: |
|
|
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  |
|
Back to top |
|
 |
hariavinash Beginner
Joined: 21 Jan 2005 Posts: 52 Topics: 7
|
Posted: Tue Dec 06, 2005 6:08 am Post subject: |
|
|
thank you all for your feedback.
the REXX option worked well.
cheers |
|
Back to top |
|
 |
|
|