Can one execute a PROC within an Endevor processor.

Document ID : KB000044418
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

Can one execute a PROC within an Endevor processor.

Answer:

Proc's can not be execution from an Endevor Processor.  However, one can use IEBGENER to execute the PROC. The only draw back is that it will be execute outside of Endevor and the results will not be available to the processor. 

Example:

000714 //ACT1     EXEC PGM=IEBGENER
000715 //SYSPRINT  DD    SYSOUT=*
000716 //SYSUT2    DD    DSN=PUBLIC.PXXX.REXXLIB(PXXXREX),DISP=OLD
000717 //SYSUT1    DD  *
000718   /* REXX */
000720 CALL 'PXXXPGM'
000721 PUSH END;
000722 EXIT
000723 //SYSIN    DD  DUMMY