Sample Job Stream for Executing the Program

The following example shows a sample job stream that executes a Sterling Connect:Direct® program that invokes DGADCHLA.

//jobname JOB (ACCT),'PGMR NAME',
//     NOTIFY=TSOUER,TIME=(1),
//     MSGCLASS=X,CLASS=A,PRTY=9,REGION=1024K
//JOBLIB       DD   DISP=SHR,DSN=$CD.SDGALINK
//CD           EXEC PGM=USERPROG
//DMPRINT      DD   SYSOUT=*
//DMNETMAP     DD   DISP=SHR,DSN=$CD.VSAM.NETMAP
//DMPUBLIB     DD   DISP=SHR,DSN=$CD.SDGAPROC
//DMMSGFIL     DD   DISP=SHR,DSN=$CD.VSAM.MESSAGE
//SYSUDUMP     DD   SYSOUT=*
//NDMCMDS      DD   SYSOUT=*

You must allocate several files using DD statements before executing a Sterling Connect:Direct application program that calls DGADCHLA.

The following table defines the DD statements in the sample job stream:

Statement Definition
DMPRINT All output from SELECT PROCESS, SELECT STATISTICS, SELECT TYPE, and SELECT USER commands is written to this DD. Also, output as a result of the OUTSPECS specification is written to DMPRINT. DMPRINT is optional, but often required.
DMNETMAP This definition is the name of the network map file that contains the names of all the nodes that Sterling Connect:Direct communicates with. DMNETMAP is required if no NETMAP keyword is specified on the SIGNON command.
DMPUBLIB This definition is a library containing Processes. It is required.
DMMSGFIL This definition is the name of the Message file. It is required.
NDMCMDS If allocated, all command strings are written to the current file. It is optional.