Client and Server Examples for z/OS Batch

This document describes the examples provided for the COBOL Wrapper for z/OS Batch. All examples here can be found in the EntireX directory examples/RPC under UNIX and Windows. They are also available for z/OS, if this is installed. See Extracting the EntireX RPC Examples from their Container Data Set. This document covers the following topics:


Basic RPC Client Examples - CALC, SQUARE

CALC Client

For z/OS Batch, the CALC client is built with COBOL Wrapper "Batch with standard linkage calling convention" interface type. See Client Interface Types for more information.

Name Type Data Set Description Notes
CALC COBOL source code EXP101.CCCO Client interface object for IDL program CALC. 1
CALCCLT COBOL source code EXP101.CCCO A client application calling the remote procedure (RPC service) CALC, with associated example.idl. 2
CALCIGY JCL EXP101.CCCO Job (JCL) to build the RPC client CALCCLT. 3
CALCRUN JCL EXP101.CCCO Job (JCL) to execute the RPC client CALCCLT. 3
CALC COBOL copybook EXP101.CICO Client interface object copybook for IDL program CALC. 1
COBSRVI COBOL source code EXP101.CCCO Generic RPC service module for Batch. 4

Notes:

  1. Under z/OS, client interface objects are delivered with the installation; under UNIX and Windows, generate these objects with the EntireX Workbench.
  2. Application built according to the client-side build instructions, see Using the COBOL Wrapper for Batch (z/OS, BS2000, z/VSE and IBM i).
  3. Adapt the JCL to your needs.
  4. See Generate Generic RPC Service Module COBSRVI.

For more information refer to the readme file in EntireX directory examples/RPC/CobolClient/zosBatch under UNIX or Windows.

SQUARE Client

For batch under operating system z/OS, the SQUARE client is built with COBOL Wrapper "Batch with standard linkage calling convention" interface type. See Client Interface Types for more information.

Name Type Data Set Description Notes
COBSRVI COBOL source code EXP101.CCCO Generic RPC service module for Batch. 4
SQRECLT COBOL source code EXP101.CCCO A client application calling the remote procedure (RPC service) SQUARE, with associated example.idl. 1
SQREIGY JCL EXP101.CCCO Job (JCL) to build the RPC client SQRECLT. 2
SQRERUN JCL EXP101.CCCO Job (JCL) to execute the RPC client SQRECLT. 2
SQUARE COBOL source code EXP101.CCCO Client interface object for IDL program SQUARE. 3
SQUARE COBOL copybook EXP101.CICO Client interface object copybook for IDL program SQUARE. 3

Notes:

  1. Application built according to the client-side build instructions, see Using the COBOL Wrapper for Batch (z/OS, BS2000, z/VSE and IBM i).
  2. Adapt the JCL to your needs.
  3. Under z/OS, client interface objects are delivered with the installation; under UNIX and Windows, generate these objects with the EntireX Workbench.
  4. See Generate Generic RPC Service Module COBSRVI.

For more information, see the readme file in EntireX directory examples/RPC/CobolClient/zosBatch under UNIX or Windows.

Basic RPC Server Examples - CALC, SQUARE

CALC Server

For batch under operating system z/OS, the CALC server is built with COBOL Wrapper "Batch with standard linkage calling convention" interface type. See Server Interface Types for more information.

Name Type Data Set Description Notes
CALC COBOL source code EXP101.CVCO A server application providing the remote procedure CALC (RPC service), with associated example.idl. 1
CALCIGY JCL EXP101.CVCO Job (JCL) to build the remote procedure CALC (RPC service). 2

Notes:

  1. Application built according to the server-side build instructions, see Using the COBOL Wrapper for Batch (z/OS, BS2000, z/VSE and IBM i).
  2. Adapt the JCL to your needs.

For more information, refer to the readme file in EntireX directory examples/RPC/CobolServer/zosBatch under UNIX or Windows.

SQUARE Server

For batch on operating system z/OS, the SQUARE server is built with COBOL Wrapper "Batch with standard linkage calling convention" interface type. See Client Interface Types for more information.

Name Type Data Set Description Notes
SQREIGY JCL EXP101.CVCO Job (JCL) to build the remote procedure SQUARE (RPC service) 2
SQUARE COBOL source code EXP101.CVCO a server application providing the remote procedure SQUARE (RPC service), with associated example.idl 1

Notes:

  1. Application built according to the server-side build instructions, see Using the COBOL Wrapper for Batch (z/OS, BS2000, z/VSE and IBM i).
  2. Adapt the JCL to your needs.

For more information, refer to the readme file in EntireX directory examples/RPC/CobolServer/zosBatch under UNIX or Windows.