CALL Function — SVCommands™ — ADPAC Corporation

Products › SVCommands™ › CALL

CALL

The CALL function finds where programs CALL other programs. For this example, we first display a very simple COBOL program that makes two CALLs to other programs. The first CALL is a standard COBOL CALL, with the CALLed program name in quotes. The second CALL is a dynamic CALL. It uses a variable that contains the name of the program being CALLed. The first CALL report is a simple reference to all CALLed programs, in CALLed program sequence. The second CALL report is being cataloged, so the CALLed program names are listed in the order they were found.

@SV INPUT:
@SV.CALL TITLE='CAL: '
@SV MEM=CAL03CBA
@SV ERR=GO,PMR=NO

CROSS REFERENCE OF CALLED PROGRAM
CAL: ADPAC, USE BY AGREEMENT ONLY   06/14/2003   PAGE 1

CALLED IDENT OR DYNAMIC NAME    LINE.MEMBER THAT CALLED PROGRAM
------------------------------ ----------------------------- ---
CAL03CAV                        000016.CAL03CBA
CAL03NM8                        000014.CAL03CBA

PM@000-10 NORMAL EOJ  CPU HRS:00 MIN:00 SEC:02.23

@SV INPUT:
@SV.CALL TITLE='CAL: '
@SV MEM=CAL03CBA
@SV CAT=WEBCAL02
@SV ERR=GO,PMR=NO

IDLIST:WEBCAL02
CAL: ADPAC, USE BY AGREEMENT ONLY   06/14/2003   PAGE 1

RPT USER   MEMBER   PROG-ID  LINE
CODES NAME     CALLED
1 CC CAL03CBA  CAL03NM8  000014
2 CC CAL03CBA  CAL03CAV  000016

PM@XRF-M04 WEBCAL02 REPLACED IN PMLIB AS: IDLIST
PM@000-10 NORMAL EOJ  CPU HRS:00 MIN:00 SEC:03.89