Start CODE (STRCODE)

Where allowed to run:
  • Batch job (*BATCH)
  • Interactive job (*INTERACT)
  • Batch program (*BPGM)
  • Interactive program (*IPGM)
  • Batch REXX procedure (*BREXX)
  • Interactive REXX procedure (*IREXX)
  • Using QCMDEXEC, QCAEXEC, or QCAPCMD API (*EXEC)
Threadsafe: No
Parameters
Examples
Error messages

The CL command STRCODE starts a job that runs the host server for the Cooperative Development Environment/400 product. This command should be called in the OS/400 native environment.

Top

Parameters

Keyword Description Choices Notes
SERVER Host server name Character value, OS400 Optional, Positional 1
RMTLOCNAME Remote location name Character value, *RESOLVE, *PRV Optional, Positional 2
CMNTYPE Communications type *PRV, *APPC, *TCPIP Optional, Positional 3
PARMS Additional parameters Character value, *NONE Optional, Positional 7
PORT TCP/IP port number 1-65534, *PRV, *DFT Optional, Positional 4
USERID User identifier Character value, *NONE Optional, Positional 5
PASSWORD Password Character value Optional, Positional 6
Top

Host server name (SERVER)

Specifies the name that is associated with the job as it is processed by the system.

The possible values are:

OS400
This is the default value.
server-name
Enter the name that is used to identify the job as it is processed by the system.

Note: The following server names are reserved, and should not be used:

Top

Remote location name (RMTLOCNAME)

Specifies the name of the remote workstation with which the host server communicates. For TCP/IP connections, this is the IP name or IP address of your PC. For APPC connections, this name is the remote workstation's Logical Unit (LU) or PC local name specifies in the SNA base profile of your communications program.

The possible values are:

*PRV
The value used in the last invocation of this command is the default.
*RESOLVE
Try to have CODE/400 communications resolve the remote location name. This value is recommended for TCP/IP DHCP users. This value will not work in a batch job.
PC local name
Enter the name that identifies the remote workstation that the host server will communicate with.
Top

Communications type (CMNTYPE)

Specifies the name of the type of protocol with which the host server communicates.

The possible values are:

*PRV
The value used in the last invocation of this command is the default.
*APPC
The host sever uses APPC protocol to communicate with the workstation.
*TCPIP
The host server uses TCP/IP protocol to communicate with the workstation.
Top
Top

TCP/IP port number (PORT)

Specifies the name of the port that is associated with the TCP/IP protocol processed by the host server.

The possible values are:

*PRV
The value used in the last invocation of this command is the default.
*DFT
The value used to communicate with the system is the default CODE/400 TCP/IP port. If you wish to change the port, enter the new TCP/IP port value.
Top

User identifier (USERID)

Specifies the user ID to use to establish communications when the workstation has enabled conversation security through the Communication Properties window.

Both this field and the Password field are required if conversation security has been set up in The Communication Properties window. The possible values are:

*NONE
The default value is *NONE.
user ID
Enter the user ID that was specified STRCODE user ID field in the Communication Properties window on the workstation.
Top

Password (PASSWORD)

Specifies the password for the user ID specified in the User identifier field. This password should be the same as that specified in the STRCODE password field in the Communication Properties window.

Both this field and the User identifier field are required if conversation security Profile has been set up in the Communication Properties window.

Top

Examples

None
Top

Error messages

Unknown
Top