Help in listing PROCs.



Ask queries about other IBM Tools like Tivoli, COBTEST, Fault Analyzer, z/OS File Manager, Workload Simulator, APA, SCLM, Merge & Migration Tools etc...

Help in listing PROCs.

Postby dafpadilla » Wed Apr 03, 2013 10:07 pm

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.
dafpadilla
 
Posts: 2
Joined: Wed Apr 03, 2013 9:58 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Help in listing PROCs.

Postby enrico-sorichetti » Wed Apr 03, 2013 10:11 pm

IEBPTPCH

ok... ok...
I am in a good mood today
 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-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Help in listing PROCs.

Postby dafpadilla » Wed Apr 03, 2013 10:41 pm

Thanks! Will Try this when I have access a termnal.
dafpadilla
 
Posts: 2
Joined: Wed Apr 03, 2013 9:58 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Help in listing PROCs.

Postby steve-myers » Thu Apr 04, 2013 10:51 am

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 ...
//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)
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.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Help in listing PROCs.

Postby enrico-sorichetti » Thu Apr 04, 2013 11:15 am

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 :mrgreen:
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-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Help in listing PROCs.

Postby steve-myers » Thu Apr 04, 2013 11:26 am

Enrico is correct, but I would use PUNCH rather than PRINT, and direct the SYSUT2 DD statement to disk rather than SYSOUT.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times


Return to Other IBM Tools