Testing the Batch Cobol Sample

Testing the Batch Cobol Sample

The batch Cobol sample program is provided in
SSA.N3
V100
.SOURCE (COBSAMP)
. It can call SSA-NAME3 either dynamically or statically. The sample provided shows the dynamic call.
The Cobol sample is set up to use the USA Standard Population. This can be changed by editing the source.
Before compiling the program, check the
CONTROLS
parameter in the
SSAN3-OPEN
call. It specifies the name of the dataset where the Standard Populations are installed. By default it points to
SSAPR=SSA.N3
V100
.PR
. The low-level qualifier, example, DEFAULT is not specified. This must be modified to match the actual location where the Standard Populations were installed.
Compile the batch Cobol sample program (
COBSAMP
) using the example JCL supplied in
SSA.N3
V100
.SOURCE(COBCOMP)
.
The JCL must first be customized to your environment.
//SSAC001 JOB ,’COBCMP’,NOTIFY=&SYSUID //STEPA EXEC PROC=IGYWCL,LIBPRFX=CEE, // PARM.COBOL=’RMODE(ANY),LIB’, // PARM.LKED=’RMODE=ANY,AMODE=31’ //COBOL.SYSLIB DD DSN=SSA.N3
V100
.SOURCE,DISP=SHR //COBOL.SYSIN DD DSN=SSA.N3
V100
.SOURCE(COBSAMP),DISP=SHR //LKED.SYSLMOD DD DSN=YOUR.TEST.LOAD(TESTCOB),DISP=SHR //LKED.SYSLIB DD DSN=CEE.SCEELKED,DISP=SHR // DD DSN=SSA.N3
V100
.COBDYN.LOAD,DISP=SHR //
To execute the batch Cobol program, run the JCL in
SSA.N3
V100
.SOURCE(COBRUN)
after customizing to your environment.
//SSAR001 JOB ,’COBRUN’,NOTIFY=&SYSUID //COBRUN1 EXEC PGM=TESTCOB,REGION=0M, // PARM=’ / ’ //*PARM=’ / POSIX(ON),RPTOPTS(ON)’ //STEPLIB DD DSN=SSA.N3
V100
.CORE.LOAD,DISP=SHR //SYSPRINT DD SYSOUT=* //SYSPRNT2 DD SYSOUT=* //

0 COMMENTS

We’d like to hear from you!