Command reference / comm

CRTDEVAPPC

Create Device Description (APPC)

The Create Device Description (APPC) (CRTDEVAPPC) command creates a device description for an Advanced Program-to-Program Communications (APPC) device.

Allowed environments: *ALL. Positional parameters: 2.

Restrictions

Parameters

DEVD Device description

Specifies the name of the device description. This is a required parameter.

Type
*NAME
Required
Yes
Length
10
Case
Uppercase

RMTLOCNAME Remote location

Specifies the remote location name of the system with which this object communicates.

Type
*CHAR
Required
Yes
Length
50
Case
Uppercase

ONLINE Online at IPL

Specifies whether this object is automatically varied on at initial program load (IPL).

Type
*CHAR
Required
No
Default
*YES
Length
50
Case
Uppercase

Allowed values: *NO, *YES

*YES
This device is varied on automatically at IPL.
*NO
This device is not varied on automatically at IPL.

LCLLOCNAME Local location

Specifies the unique location name that identifies the local system to remote devices. The name cannot be the same as that specified for the Remote location (RMTLOCNAME) parameter. If the values specified on the Remote network ID and Local network ID parameters are the same, the combination of the names specified for the LCLLOCNAME parameter and the RMTLOCNAME parameter must be unique for each device description attached to the same controller. Use the Display Network Attributes (DSPNETA) command to determine the default local location name.

Type
*CHAR
Required
No
Default
*NETATR
Length
50
Case
Uppercase

Suggested / special values: *NETATR

*NETATR
The LCLLOCNAME value specified in the system network attributes is used.
local-location-name
Specify the local location name.

RMTNETID Remote network identifier

Specifies the name of the remote network.

Type
*CHAR
Required
No
Default
*NETATR
Length
50
Case
Uppercase

Suggested / special values: *NETATR, *NONE

*NETATR
The remote network identifier specified in the network attributes is used.
*NONE
The remote network name is X'40'.
remote-network-ID
Specify the ID of the remote network.

CTL Attached controller

Specifies the name of the controller description to which this device is attached. Note: To use this device for communicating with a remote location that resides on the same system as the local location, specify a controller description that was created with LINKTYPE (*LOCAL) specified.

Type
*NAME
Required
No
Length
10
Case
Uppercase

MODE Mode

Specifies the names of the modes that define the sessions on this device. You can enter multiple values for this parameter. Specify up to 14 mode names.

Type
*CHAR
Required
No
Default
*NETATR
Length
50
List limit
14
Case
Uppercase

Suggested / special values: *NETATR

*NETATR
The remote network identifier specified in the network attributes is used.
mode-name
Specify the name of mode descriptions used by this device. The mode name cannot be CPSVCMG or SNASVCMG; these mode names are reserved for system use.

MSGQ Message queue

Specifies the message queue to which operational messages for this device are sent.

Type
*QUAL
Required
No
Default
*CTLD
Case
Uppercase

Suggested / special values: *CTLD, *SYSOPR

*CTLD
Messages are sent to the message queue defined in the attached controller. The message queue is determined when the device is varied on.
*SYSOPR
Messages are sent to the system operator message queue (QSYS/QSYSOPR).
message-queue-name
Specify the name of the message queue to which operational messages are sent.
*LIBL
All libraries in the job's library list are searched until the first match is found.
*CURLIB
The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
library-name
Specify the name of the library to be searched.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Part 7-01

Type
*NAME
Required
No
Length
10
Case
Uppercase

Part 7-11

Type
*NAME
Required
No
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

APPN APPN-capable

Specifies whether this device is for Advanced Peer-to-Peer Networking (APPN).

Type
*CHAR
Required
No
Default
*YES
Length
50
Case
Uppercase

Allowed values: *NO, *YES

*YES
This device is for APPN.
*NO
This device is not for APPN.

SNGSSN Single session

Specifies whether a single or multiple sessions are used with remote locations. If single sessions are used, the number of conversations must be specified.

Type
*ELEM
Required
No
Default
*NO
Case
Uppercase

Suggested / special values: *NO

10
The default number of conversations is 10.
*NO
Multiple sessions are used.
*YES
Single sessions are used.
conversations
Specify a valid value that ranges from 1 through 512 for the number of conversations.
Elements in order

Single session capable Single session capable

Type
*CHAR
Required
No
Length
50
Case
Uppercase

Suggested / special values: *YES

Number of conversations Number of conversations

Type
*INT4
Required
No
Default
10
Range
1 to 512
Case
Uppercase

LCLCTLSSN Locally controlled session

Specifies whether the session is a locally controlled session.

Type
*CHAR
Required
No
Default
*NO
Length
50
Case
Uppercase

Allowed values: *NO, *YES

*NO
The single session is remotely controlled.
*YES
The single session is locally controlled.

PREESTSSN Pre-established session

Specifies whether the session is established when the connection with the remote system is established.

Type
*CHAR
Required
No
Default
*NO
Length
50
Case
Uppercase

Allowed values: *NO, *YES

*NO
The session is not established automatically at connection time.
*YES
The session is established automatically at connection time.

LOCPWD Location password

Specifies the password to be used to validate a connection.

Type
*CHAR
Required
No
Default
*NONE
Length
50
Case
Uppercase

Suggested / special values: *NONE

*NONE
There is no password.
location-password
Specify the password as a string of hexadecimal characters.

SECURELOC Secure location

Specifies how security information is handled for program start requests received from remote systems. The value is sent to the remote system when sessions are established. It is used in determining how allocate or evoke requests should be built. The value only applies to conversations started with the SECURITY(SAME) level of security.

Type
*CHAR
Required
No
Default
*NO
Length
50
Case
Uppercase

Allowed values: *NO, *VFYENCPWD, *YES

*NO
The remote system is not a secure location. Security validation done by the remote system is not accepted. SECURITY(SAME) conversations are treated as SECURITY(NONE). No security information will be sent with allocate or evoke requests.
*YES
The remote system is a secure location and the local system will accept security validation done by remote systems. For SECURITY(SAME) conversations, the local system allows the remote system to verify user passwords. On the remote system, user IDs are retrieved from the security manager. The user IDs are then sent with an already verified indicator in the allocate or evoke requests.
*VFYENCPWD
The remote system is not a secure location. For SECURITY(SAME) conversations, the remote system is not allowed to send the already verified indicator. On the remote system, user IDs and passwords are retrieved from the security manager. Passwords are then encrypted and sent with the user IDs in the allocate or evoke requests, to be verified by the local system. This value should only be used if the remote system is using V3R2M0 operating system or later. If the remote system does not support password protection then session establishment will not be allowed. For remote systems that support password protection, but do not support verification of encrypted passwords (VFYENCPWD), conversations will be treated as SECURITY(NONE).

TEXT Text 'description'

Specifies the text that briefly describes the object.

Type
*CHAR
Required
No
Default
*BLANK
Length
50
Case
Uppercase

Suggested / special values: *BLANK

*BLANK
No text is specified.
character-value
Specify no more than 50 characters of text, enclosed in apostrophes.

LOCADR Local location address

Specifies the local location address for this device. The possible values are 00 to FF.

Type
*CHAR
Required
No
Default
00
Length
50
Case
Uppercase

AUT Authority

Specifies the authority you are giving to users who do not have specific authority for the object, who are not on an authorization list, and whose group profile or supplemental group profiles do not have specific authority for the object.

Type
*NAME
Required
No
Default
*CHANGE
Length
10
Case
Uppercase

Suggested / special values: *ALL, *CHANGE, *EXCLUDE, *LIBCRTAUT, *USE

*CHANGE
The user can perform all operations on the object except those limited to the owner or controlled by object existence (*OBJEXIST) and object management (*OBJMGT) authorities. The user can change and perform basic functions on the object. *CHANGE authority provides object operational (*OBJOPR) authority and all data authority. If the object is an authorization list, the user cannot add, change, or remove users.
*ALL
The user can perform all operations except those limited to the owner or controlled by authorization list management (*AUTLMGT) authority. The user can control the object's existence, specify the security for the object, change the object, and perform basic functions on the object. The user also can change ownership of the object.
*USE
The user can perform basic operations on the object, such as running a program or reading a file. The user cannot change the object. Use (*USE) authority provides object operational (*OBJOPR), read (*READ), and execute (*EXECUTE) authorities.
*EXCLUDE
The user cannot access the object.
*LIBCRTAUT
The system determines the authority for the object by using the value specified for the Create authority (CRTAUT) parameter on the Create Library (CRTLIB) command for the library containing the object to be created. If the value specified for the CRTAUT parameter is changed, the new value will not affect any existing objects.
name
Specify the name of an authorization list to be used for authority to the object. Users included in the authorization list are granted authority to the object as specified in the list. The authorization list must exist when the object is created.

Examples

CRTDEVAPPC DEVD(APPC1) LOCADR(00) RMTLOCNAME(CHICAGO) CTL(CTLAPPC01) SNGSSN(*YES)

This command creates a device description for an APPC communications device named APPC1. The device has a location address of X'00' and is in Chicago, attached to controller CTLAPPC01. This device is limited to one session at a time.

IBM command documentation

Generated from os/cl/catalog/CRTDEVAPPC.json and os/cl/help/CRTDEVAPPC.json.