I need to list the PROCs used by a number of JCL members in a Partitioned Data set - is there any way to automate this?
I have been trying the IEBCOPY utility but it only gives me an Unloaded Sequential Dataset - which I don't know how to use.
I guess what would help me a lot is if anybody can teach me how to convert a Partitioned Dataset into a Sequential Dataset that I could probably use as input for my sort utility?
Thank you.
Help in listing PROCs.
-
- Posts: 2
- Joined: Wed Apr 03, 2013 9:58 pm
- Skillset: Z/OS, Z/OS Utilities, JCLs, COBOL
- Referer: Search results.
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: Help in listing PROCs.
IEBPTPCH
ok... ok...
I am in a good mood today
ok... ok...
I am in a good mood today
Code: Select all
EDIT ENRICO.TEST.JCL(IEBPTPCH) - 01.01 Columns 00001 00072
Command ===> Scroll ===> CSR
****** ***************************** Top of Data ******************************
000001 //ENRICO1 JOB (ACCT#),'IEBPTPCH',NOTIFY=ENRICO,
000002 // CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1)
000003 //*
000004 //* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
000005 //IEB EXEC PGM=IEBPTPCH
000006 //SYSIN DD *
000007 PRINT TYPORG=PO,MAXFLDS=1
000008 RECORD FIELD=(80)
000009 //SYSPRINT DD SYSOUT=*
000010 //SYSUT2 DD SYSOUT=*
000011 //SYSUT1 DD DISP=SHR,DSN=ENRICO.TEST.JCL
****** **************************** Bottom of Data ****************************
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Posts: 2
- Joined: Wed Apr 03, 2013 9:58 pm
- Skillset: Z/OS, Z/OS Utilities, JCLs, COBOL
- Referer: Search results.
Re: Help in listing PROCs.
Thanks! Will Try this when I have access a termnal.
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: Help in listing PROCs.
Enrico's solution will list every member in the PDS, which I'm not sure is the topic starter's intent.
I'm not sure the following example is the intent, either, but ...In nearly 45 years, when I've used IEBPTPCH fairly often, it has always been to print all the members. I had to go to the manual to find out how to select members, and, in my opinion, the solution turned out to be depressingly kludgy.
I'm not sure the following example is the intent, either, but ...
Code: Select all
//A EXEC PGM=IEBPTPCH
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=MYID.CNTL
//SYSUT2 DD SYSOUT=*
//SYSIN DD *
PRINT TYPORG=PO,MAXFLDS=20,MAXNAME=20
MEMBER NAME=(JOBCARD)
RECORD FIELD=(80,1,,21)
MEMBER NAME=(STEPLIB)
RECORD FIELD=(80,1,,21)
MEMBER NAME=(JOBLIB)
RECORD FIELD=(80,1,,21)
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: Help in listing PROCs.
I guess what would help me a lot is if anybody can teach me how to convert a Partitioned Dataset into a Sequential Dataset that I could probably use as input for my sort utility?
my suggestion answered it

cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: Help in listing PROCs.
Enrico is correct, but I would use PUNCH rather than PRINT, and direct the SYSUT2 DD statement to disk rather than SYSOUT.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Librarian - how to send a listing of members to a dataset
by MLK2348 » Tue Feb 27, 2024 8:21 pm » in All Other Tools - 4
- 3421
-
by enrico-sorichetti
View the latest post
Thu Feb 29, 2024 7:16 pm
-