Initialize_User
Initialize the user environment. This includes obtaining authority to use IRC facilities. The environment is created for the lifetime of the TCB, so the command needs to be issued only once per user per TCB. Further commands from this user must be issued under the same TCB.
Syntax
CALL DFHXCIS,(version_number,return_area,user_token,call_type,
user_name),VL,MF=(E,(1))
Parameters
- version_number
-
A fullword binary input area indicating the version of the
external
CICS®
interface parameter list
being used.
It must be set to 1 in the client program.
The equated value for this parameter in the CICS-supplied copybook DFHXCPL x (where x indicates the language) is VERSION_1. See Return area and function call EQUATE copybooks for copybook details.
- return_area
- A 5-word output area to receive response and reason codes, and a message pointer field. For more details see Return area for the EXCI CALL interface.
- user_token
-
A 1-word output area containing a 32-bit token supplied by the
CICS
external interface to represent
the client program.
The user token corresponds to the user-name parameter. The client program must pass this token on all subsequent external CICS interface commands made for the user defined on the user_name parameter.
- call_type
-
A 1-word input area indicating the function of the command.
It must be set to
1 in the client program to indicate that this is an Initialize_User
command.
The equated value for this call in the CICS-supplied copybook DFHXCPL x (where x indicates the language) is INIT_USER. See Return area and function call EQUATE copybooks for copybook details.
- user_name
- An input area holding a name that identifies the user of the external CICS interface. Generally, this is the client program. If this user is to use a specific pipe, then the value in user_name must match that of the NETNAME attribute of the CONNECTION definition for the specific pipe.
Responses and reason codes
For all non-zero response codes, a unique reason code value identifies the reason for the response.
- Response OK
-
Command executed successfully (RC 0). Reason code:
- 0
- Normal response
- Response WARNING
-
The command executed successfully, but with an error (RC 4).
Reason
codes:
- 3
- VERIFY_BLOCK_FM_ERROR
- 4
- WS_FREEMAIN_ERROR
- Response RETRYABLE
-
The command failed because of setup errors but can be reissued
(RC 8). Reason code:
- 201
- NO_CICS_IRC_STARTED
- Response USER_ERROR
-
The command failed because of an error in either the client or
the server (RC 12). Reason codes:
- 401
- INVALID_CALL_TYPE
- 402
- INVALID_VERSION_NUMBER
- 403
- INVALID_USER_NAME
- 410
- DFHMEBM_LOAD_FAILED
- 411
- DFHMET4E_LOAD_FAILED
- 412
- DFHXCURM_LOAD_FAILED
- 413
- DFHXCTRA_LOAD_FAILED
- 419
- CICS_AFCB_PRESENT
- 420
- DFHXCOPT_LOAD_FAILED
- 421
- RUNNING_UNDER_AN_IRB
- 422
- SERVER_ABENDED
- 423
- SURROGATE_CHECK_FAILED
- 424
- RRMS_NOT_SUPPORTED
- 425
- UOWID_NOT_ALLOWED
- 426
- INVALID_TRANSID2
- 427
- INVALID_CCSID
- 428
- INVALID_ENDIAN
- 429
- DFHXCEIX_LOAD_FAILED
- 430
- DFHXCPRX_LOAD_FAILED
- Response SYSTEM_ERROR
-
The command failed (RC 16). Reason codes:
- 601
- WS_GETMAIN_ERROR
- 602
- XCGLOBAL_GETMAIN_ERROR
- 603
- XCUSER_GETMAIN_ERROR
- 605
- VERIFY_BLOCK_GM_ERROR
- 606
- SSI_VERIFY_FAILED
- 607
- CICS_SVC_CALL_FAILURE
- 622
- ESTAE_SETUP_FAILURE
- 623
- ESTAE_INVOKED
- 627
- INCORRECT_SVC_LEVEL
For more information about response codes, see EXCI call response code values.
For information about the reason codes, see Response and reason codes returned on EXCI calls.