Page 2 of 2

Re: ISRCSECT

PostPosted: Wed Jun 12, 2013 7:53 pm
by dick scherrer
Hello,

It may help if you post the complete JCL and other statements submitted.

Also, you might run an AMBLIST and see if what you want is among the output.

Re: ISRCSECT

PostPosted: Wed Jun 12, 2013 9:12 pm
by steve-myers
Dick - Check ISP.SISPEXEC(ISRCSECT) and try the example ISRCSECT 'LMOD(ISRSUBS) C(ISRCBR)' in the documentation in ISP.SISPEXEC(ISRCSECT) . The topic starter should read this documentation too.

I don't know what the TS is hoping to get out of this, but I strongly suspect it is not what he wants.

EXAMPLES: ISRCSECT 'LMOD(ISRSUBS) C(ISRCBR)'                     
          :WILL CALL ISRTCB TO GET THE ADDRESS OF LOADMOD ISRSUBS
          :AND START SEARCHING AT THAT ADDRESS FOR CSECT  ISRCBR
          :ONLY THE EYE-CATCHER FOR ISRCBR WILL BE DISPLAYED

Now this implies LMOD ISRSUBS must be in storage when ISRCSECT starts.

Re: ISRCSECT

PostPosted: Wed Jun 12, 2013 10:18 pm
by Pedro
ISRCSECT is not the utility to use to get the details of a csect in a dataset. You are not getting definitive answers because it is not a common nor useful utility. I suspect IBM service might ask you to use this utility on rare occasions, but you would not normally use ISRCSECT on your own.

you might run an AMBLIST and see if what you want is among the output.

The answer has been posted a few times already: use the AMBLIST utility. It is the utility to use to get the details of a csect in a dataset

AMBLIST is normally a batch job:
//LIST EXEC PGM=AMBLIST                               
//SYSPRINT DD SYSOUT=*                               
//LOADLIB  DD DISP=SHR,DSN=MY.MISC.LOAD           
//SYSIN DD *                                         
 LISTLOAD OUTPUT=MODLIST,DDN=LOADLIB,MEMBER=MYPROG   


Run it as a batch job to see if it has the information you need. Then, if it has the information you want, from rexx, you should be able to allocate SYSPRINT, LOADLIB, and SYSIN. And invoke AMBLIST through ADDRESS LINKMVS or similar variant.