Create Device Desc (APPC) (CRTDEVAPPC)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

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

Top


 

Parameters

Keyword Description Choices Notes
DEVD Device description Name Required, Positional 1
RMTLOCNAME Remote location Communications name Required, Positional 2
ONLINE Online at IPL *YES, *NO Optional
LCLLOCNAME Local location Communications name, *NETATR Optional
RMTNETID Remote network identifier Communications name, *NETATR, *NONE Optional
CTL Attached controller Name Optional
MODE Mode Values (up to 14 repetitions): Communications name, *NETATR Optional
MSGQ Message queue Single values: *CTLD, *SYSOPR
Other values: Qualified object name
Optional
Qualifier 1: Message queue Name, QSYSOPR
Qualifier 2: Library Name, *LIBL, *CURLIB
APPN APPN-capable *YES, *NO Optional
SNGSSN Single session Single values: *NO
Other values: Element list
Optional
Element 1: Single session capable *YES
Element 2: Number of conversations 1-512, 10
LCLCTLSSN Locally controlled session *NO, *YES Optional
PREESTSSN Pre-established session *NO, *YES Optional
LOCPWD Location password Character value, *NONE Optional
SECURELOC Secure location *NO, *YES, *VFYENCPWD Optional
TEXT Text 'description' Character value, *BLANK Optional
LOCADR Local location address 00-FF, 00 Optional
AUT Authority Name, *CHANGE, *ALL, *USE, *EXCLUDE, *LIBCRTAUT Optional

Top

 

Device description (DEVD)

Specifies the name of the device description.

This is a required parameter.

Top

 

Remote location (RMTLOCNAME)

Specifies the name of the remote location with which your program communicates.

Top

 

Online at IPL (ONLINE)

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

*YES

This device is varied on automatically at IPL.

*NO

This device is not varied on automatically at IPL.

Top

 

Local location (LCLLOCNAME)

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.

*NETATR

The LCLLOCNAME value specified in the system network attributes is used.

Use the Display Network Attributes (DSPNETA) command to determine the default local location name.

local-location-name

Specify the name (8 characters maximum) by which the local system is known to the remote device.

Top

 

Remote network identifier (RMTNETID)

Specifies the name of the remote network.

*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 8-character remote network name.

Top

 

Attached controller (CTL)

Specifies the name of the controller description to which this device is attached.

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.

Top

 

Mode (MODE)

Specifies the names of the modes that define the sessions on this device.

You can enter multiple values for this parameter.

*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.

Specify up to 14 mode names.

Top

 

Message queue (MSGQ)

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

*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.

Top

 

APPN-capable (APPN)

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

*YES

This device is for APPN.

*NO

This device is not for APPN.

Top

 

Single session (SNGSSN)

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

Single values

*NO

Multiple sessions are used.

Element 1: Single session capable

*YES

Single sessions are used.

Element 2: Number of conversations

10

The default number of conversations is 10.

conversations

Specify a valid value that ranges from 1 through 512 for the number of conversations.

Top

 

Locally controlled session (LCLCTLSSN)

Specifies whether the session is a locally controlled session.

*NO

The single session is remotely controlled.

*YES

The single session is locally controlled.

Top

 

Pre-established session (PREESTSSN)

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

*NO

The session is not established automatically at connection time.

*YES

The session is established automatically at connection time.

Top

 

Location password (LOCPWD)

Specifies the password to be used to validate a connection.

*NONE

There is no password.

location-password

Specify the password as a string of hexadecimal characters.

Top

 

Secure location (SECURELOC)

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.

*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).

Top

 

Text 'description' (TEXT)

Specifies the text that briefly describes the object.

*BLANK

No text is specified.

character-value

Specify no more than 50 characters of text, enclosed in apostrophes.

Top

 

Local location address (LOCADR)

Specifies the local location address for this device.

The possible values are 00 to FF.

Top

 

Authority (AUT)

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.

*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.

Top


 

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.

Top


 

Error messages

*ESCAPE Messages

CPF261A

Device description &1 not created due to errors.

CPF2654

Device description &1 created but possibly not usable.

CPF34D7

Output queue &1 in &2 not changed due to errors.

Top