The REXX compiler may be some help.

2011/3/16 Mehta, Nilay <[email protected]>

>  Hi,
>
>
>
> I am trying to create inventory list to show all called procedures from an
> EXEC program.
>
>
>
> Ideally I require a language parser which parses the syntax but doesn’t
> execute the code; instead just identifies various aspects of the program
> (like called procedures, file definitions etc)
>
>
>
> REXX has option that causes commands to be traced but not processed.
>
>
>
> TRACE !C
>
>
>
> However it doesn’t work if calls are made to external procedures (like PLI
> or FORTRAN modules etc)
>
>
>
> Is there a utility/command which can help me achieve the above?
>
>
>
> My system is z/VM 5.2
>
>
>
> Thanks.
>
>
>
> Example:
>
>
>
> Pseudo code:
>
>
>
> ABC EXEC
>
> /* */
>
> CALL 'PRDDATE' 'MMDDYY'
>
> ERASE IUDINIT LOG
>
> 'EXEC XYZPGM'
>
> WHEN      SELECTION = 2
>
> THEN      DO
>
>           CMPSCHEM
>
> END
>
> 'FILEDEF IPPFILE DISK IPPFILE  DAT  A    (LRECL 110    RECFM F'
>
> 'FILEDEF ITTFILE DISK ITTFILE  DAT  A    (LRECL 110    RECFM F'
>
> 'QCHG'
>
>  IF RC <> 0 THEN DO;
>
>
>     SIGNAL ERROR;
>
>
>  END
>
> RETURN;
>
>
>
> The utility should return all called programs:
>
> 1.PRDDATE & XYZPGM (which are EXEC and may be written in EXEC, EXEC2 or
> REXX language)
>
> 2.CMPSCHEM (which is written in assembly language – CMPSCHEM ASSEMBLE)
>
> 3.QCHG (which is PL1 program – QCHG PLI)
>
>
>
>
>
>
>
>
>
>
>
> ............................................................................
>
> For further important information about AllianceBernstein please click here
> http://www.alliancebernstein.com/disclaimer/email/disclaimer.html
>



-- 
Kris Buelens,
IBM Belgium, VM customer support

Reply via email to