The EntireX z/VSE Batch RPC Server allows standard RPC clients to communicate with RPC servers on the operating system z/VSE under Batch. It supports the programming language COBOL and works together with the COBOL Wrapper and IDL Extractor for COBOL.
This document covers the following topics:
The name of the delivered example configuration file is RPCPARM.CFG
(see sublibrary EXP960).
The configuration file contains the configuration for the Batch RPC Server.
The following settings are important:
connection information such as broker ID, server address (class, name, service)
location and usage of server mapping files (SVMs)
scalability parameters
trace settings
etc.
For more information see Configuring the RPC Server.
The following rules apply:
In the configuration file:
Comments must be on a separate line.
Comment lines can begin with '*', '/' and ';'.
Empty lines are ignored.
Headings in square brackets [<topic>] are ignored.
Keywords are not case-sensitive.
Underscored letters in a parameter indicate the minimum number of letters that can be used for an abbreviated command.
For example, in brokerid=localhost
,
brok
is the minimum number of letters that
can be used as an abbreviation, i.e. the commands/parameters broker=localhost
and brok=localhost
are equivalents.
Parameter | Default | Values | Req/ Opt |
||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
brokerid |
localhost |
Broker ID used by the server. See Using the Broker ID in Applications.
Example: |
R | ||||||||||||||||
class |
RPC |
Server class part of the server address used by the
server. The server address must be defined as a service in the broker attribute file (see Service-specific Attributes under Broker Attributes).
Case-sensitive, up to 32 characters. Corresponds to CLASS .
Example: |
R | ||||||||||||||||
codepage |
Depending on the internationalization approach, the codepage (locale string)
where incoming data is provided to the COBOL server. Conversely, the COBOL server must provide outgoing data in the
given codepage, otherwise unpredictable results occur. See What is the Best Internationalization Approach to use? under Internationalization with EntireX for information
on which internationalization approach requires a codepage (locale string).
By default, no codepage is transferred to the broker. For the most popular internationalization approach, ICU Conversion, the correct codepage (locale string) must be provided. This means it must:
Example: |
||||||||||||||||||
compresslevel |
N |
Enforce compression when data is transferred between
broker and server. See Data Compression in EntireX Broker.
Example: |
O | ||||||||||||||||
deployment |
NO |
Activates the deployment service, see Deployment Service. Required to
use the deployment wizard. See Server Mapping Deployment Wizard in the COBOL Wrapper documentation.
Example: |
O | ||||||||||||||||
encryptionlevel |
0 | Enforce encryption when data is transferred between
client and server. Requires EntireX Security. See ENCRYPTION-LEVEL under Broker ACI Fields.
Example: |
O | ||||||||||||||||
etblnk |
BKIMB |
Define the broker stub to be used. See Administration of Broker Stubs under z/VSE for available stubs.
Example: |
O | ||||||||||||||||
logon |
YES |
Execute broker functions LOGON/LOGOFF in worker
threads. Must match the setting of the broker attribute
AUTOLOGON . Reliable RPC requires logon set to YES. See Reliable RPC.
Example: |
O | ||||||||||||||||
marshalling |
COBOL |
|
O | ||||||||||||||||
password |
no default | Password for broker logon. Case-sensitive, up to 32
characters. For more information see broker ACI control block field
PASSWORD .
Example: |
O | ||||||||||||||||
restartcycles |
15 | Number of restart attempts if the broker is not
available. This can be used to keep the Batch RPC Server running while
the broker is down for a short time. A restart cycle will be
repeated at an interval which is calculated as follows:
When the number of cycles is reached and a connection to the broker is not possible, the RPC server stops. Example: |
O | ||||||||||||||||
runoption |
no default | This parameter is for special purposes. It provides the Batch RPC Server with additional information.
The runoptions are normally set to meet the platform's requirements. Set this parameter only if a support representive provides
you with an option and asks you to do so. The parameter can be defined multiple times.
Example: |
O | ||||||||||||||||
servername |
SRV1 |
Server name part of the server address used by the server.
The server address must be defined as a service in the broker attribute file.
See Service-specific Attributes under Broker Attributes.
Case-sensitive, up to 32 characters.
Corresponds to SERVER of the broker attribute file.
Example: |
R | ||||||||||||||||
service |
CALLNAT |
Service part of the server address used by the server.
The server address must be defined as a service in the broker attribute file.
See Service-specific Attributes under Broker Attributes.
Case-sensitive, up to 32 characters.
Corresponds to SERVICE attribute of the broker attribute file.
Example: |
R | ||||||||||||||||
smhport |
0 | The port where the server listens for commands from
the System Management Hub (SMH). If this port is 0 (default), no port is used and
management by the SMH is disabled.
Example: |
O | ||||||||||||||||
svm |
ERXSVM |
Usage and location of SVM files.
If no svm parameter is given, the RPC server tries to open the SVM container using DLBL name ERXSVM .
If this DLBL name is not available, no server mappings are used. For more information see SVM Files.
Example: For the example above, define the DLBL name // DLBL MYSVM,'ENTIREX.SVMDEV.KSDS',0,VSAM,CAT=VSESPUC See Step 3: Customize the Batch RPC Server Startup JCL - |
O | ||||||||||||||||
timeout |
60 | Timeout in seconds,
used by the server to wait for broker requests. See broker ACI control block field
WAIT for more information. Also influences restartcycles .
Example: |
O | ||||||||||||||||
tracelevel |
None |
Trace level for the server. See also Activating Tracing for the RPC Server.
tracelevel = None | Standard | Advanced | Support
Example: |
O | ||||||||||||||||
traceoption |
None |
Additional trace option if trace is active.
Example: |
O | ||||||||||||||||
userid |
ERX-SRV |
Used to identify the server to the broker.
See broker ACI control block field USER-ID .
Case-sensitive, up to 32 characters.
Example: |
R | ||||||||||||||||
workermodel |
SCALE,1,3,slowshrink |
|
O |
The approach used to derive the z/VSE module name for the RPC server depends on whether so-called server mapping files are used or not. See Usage of SVM Files for an introduction. This section applies to COBOL.
If SVM files are used, the IDL library and IDL program names are used to form a key to locate the SVM entry in the SVM container. If an SVM entry is found, the z/VSE module name of the RPC server is derived from the SVM entry. In this case the IDL program name can be different to the z/VSE module name if it is renamed during wrapping process (see Customize Automatically Generated Server Names) or during the extraction process in the COBOL Mapping Editor (see The Software AG IDL Tree Pane).
If no SVM files are used at all, the IDL program name is used as the z/VSE module name of the RPC server (the IDL library name is ignored).
To use the Batch RPC Server with COBOL
Make sure that all z/VSE modules called as RPC servers
are compiled with IBM's Language Environment (see LE/VSE V1R4 Programming Guide for more information)
use COBOL calling conventions
can be called dynamically ("fetched") from any Language Environment program
are accessible through the Batch RPC Server JCL LIBDEF
chain.
Configure the parameter marshalling
for COBOL, for example:
mashalling=COBOL
Configure the parameter svm
depending on whether SVM files are used or not.
See also Scenario I: Calling an Existing COBOL Server or Scenario II: Writing a New COBOL Server.
To start the Batch RPC Server
Run the job RPCRPC.J
.
To stop the Batch RPC Server
Use the console command STOP
. For example:
task_id
STOP
Or:
Use the System Management Hub. This method ensures that the deregistration from the Broker is
correct.
To activate tracing for the Batch RPC Server
Set the parameter tracelevel
.
Dynamically change the trace level with the operator command
port_number
TRACELEVEL=tracelevel
See the table below for supported trace levels.
The TRACELEVEL
command without tracelevel
option will report the
currently active trace.