Sample JCL: Appendix E
Sample JCL: Appendix E
Sample JCL: Appendix E
Sample JCL
This appendix includes sample JCL. It includes these sections:
• Nonreentrant User Program: C/370 Compiler
Compile and link a nonreentrant user program using the C socket library, the RPC library and the
C/370 compiler.
• Reentrant User Program: C/370 Compiler
Compile and link a reentrant user program using the C socket library, the RPC library and the
C/370 compiler.
• Nonreentrant User Program: SAS/C Compiler
Compile and link a nonreentrant user program using the C socket library, the RPC library and the
SAS/C compiler.
• Reentrant User Program: SAS/C Compiler
Compile and link a reentrant user program using the C socket library, the RPC library and the
SAS/C compiler.
Note If you are link-editing with the BINDER (HEWLF096) under SMP/E, you may get the error
message IEW2480W. This message can be safely ignored. You can turn this message off by setting
option MSGLEVEL=4 in the PARM field of the linkedit (binder).
//RPCIBMCR JOB
//*
//* SAMPLE JCL TO COMPILE, LINK, AND EXECUTE A REENTRANT USER
//* PROGRAM USING THE TCP/API C SOCKET LIBRARY, THE TCP/API
//* RPC/XDR LIBRARY, AND THE IBM C/370 C COMPILER.
//*
//* EDIT THE JOB JCL STATEMENT, VERIFY THE DATA SET NAME(S)
//* OF THE USER'S DATA SETS, AND VERIFY THAT THE DATA SET
//* NAMES REFERENCED BELOW MATCH THE NAMES THAT YOU SELECTED
//* FOR THE TCP/IP TARGET DATA SETS (DSN'S TO BE VERIFIED ARE
//* MARKED BELOW WITH "<=== VERIFY ..."). THIS JOB ASSUMES THAT
//* THE STANDARD IBM C/370 EDCCPLG JCL PROCEDURE IS AVAILABLE
//* IN AVAILABLE IN YOUR INSTALLATION'S PROCLIB(S).
//*
//CLGRENT EXEC EDCCPLG,
// INFILE='USER.C(CPROG)', <=== VERIFY DSNAME
// CPARM='RENT,DEF(IBMC)',
// GPARM='PROGRAM PARAMETERS' <=== VERIFY PARAMETERS
//*
//* INCLUDE THE TCP/API SOCKET INCLUDE (.H) DATA SET IN THE
//* COMPILER SYSLIB CONCATENATION. BOTH THE SOCKET AND RPC/XDR
//* INCLUDE FILES ARE FOUND IN THE SAME SYSLIB DATA SET.
//*
//COMPILE.SYSLIB DD DISP=SHR,DSN=TRGINDX.H <=== VERIFY DSNAME
// DD DISP=SHR,DSN=&VSCCHD&CVER&EDCHDRS <=== VERIFY Ad/Cycle name
//*
//* INCLUDE THE TCP/API SOCKET SUBROUTINE OBJECT LIBRARY
//* DATA SET IN THE PREPROCESSOR SYSLIB CONCATENATION.
//* BOTH THE SOCKET AND RPC/XDR OBJECT MODULES ARE INCLUDED
//* IN THE SAME SYSLIB DATA SET.
//*
//PLKED.SYSLIB DD DISP=SHR,
// DSN=TRGINDX.CIROBJ <=== VERIFY DSNAME
//PLKED.SYSIN DD DSN=*.COMPILE.SYSLIN,DISP=(OLD,DELETE)
// DD *
INCLUDE SYSLIB(S0SKCF)
INCLUDE SYSLIB(S0INTR)
INCLUDE SYSLIB(RPCFDS)
ENTRY CEESTART
/*
//