Skip to main content

Problem:

Why doesn't the A option work with WOW Thin Client?

Resolution:

You can't  use the A option because the RPC Server uses it to pass the socket number to the COBOL process.  However, you can append arguments to the end of the command line tail like this:

[ServerConfig]

CmdArgs=myarg1 myarg2 myarg3

and the RPC Server will build this:

A="5000 myarg1 myarg2 myarg3"

where 5000 is the socket number being used, as defined by the rpcplus.ini file.

From the RPC User's Guide:

CmdArgs

Restrictions: Windows Only

Specifies alphanumeric data that should be appended to the command line used to start the server process. This data will be placed on the command line after the socket number and working directory (if specified). This is intended for use with thin client implementations on the server where rpcinit is not the initial program executed.  It is supported for all languages, but is particularly important when using RM/COBOL because arguments on an RM/COBOL command line must be placed inside the A=" " notation which is generated by the RPC server.

Sample: CmdArgs=arg1 arg2 arg3

    

Old KB# 6446