Run LPDA-2 (RUNLPDA)

The Run LPDA-2 (RUNLPDA) command allows you to run a Link Problem Determination Aid-2 (LPDA-2) operational command on local or remote data circuit-terminating equipment (DCE). The RUNLPDA command can be used to:

The result of the RUNLPDA command is returned as a message.

Restrictions:

  1. The RUNLPDA command is valid only for an analog LPDA-2 DCE attached to a nonswitched SDLC line.
  2. This command is shipped with public *EXCLUDE authority and the QPGMR, QSYSOPR, QSRV, or QSRVBAS, user profiles have private authorities to use the command.

Parameters

Keyword Description Choices Notes
LINE Line Name Required, Positional 1
OPTION Option *CALL, *DSC, *SETSPEED, *CONTSENSE, *CONTOPER Required, Positional 2
LCLDCEADR Local DCE address 01-FB, *LCL Optional
RMTDCEADR Remote DCE address 01-FB, *NONE, *ANY Optional
TELNBR Telephone number Single values: *STORED
Other values: Element list
Optional
Element 1: Number 1 Character value
Element 2: Number 2 Character value
CONTACT Relay contact *OPEN, *CLOSE Optional
SPEED Transmit speed *FULL, *BACKUP Optional
DTEPORT DTE port *ALL, A, B, C, D Optional
DCERTY DCE retry *NO, *YES Optional

Line (LINE)

Specifies the name of the nonswitched SDLC line that is attached to the analog DCE on which the LPDA-2 operational command is to be run. If *CALL is specified on the Option prompt (OPTION parameter), the line must be varied on but not active. If *CONTOPER, *CONTSENSE, *DSC, or *SETSPEED is specified on the OPTION parameter, the line must be either varied on or active.

This is a required parameter.

Option (OPTION)

Specifies which LPDA-2 operational command is run.

This is a required parameter.

The contact operate, contact sense, and set transmit speed commands can be run on a local DCE or a remote DCE.

To run one of these commands on a local DCE:

To run one of these commands on a remote DCE:

Note: If the local DCE is configured as point-to-point secondary or multipoint tributary, LPDA-2 commands are not sent to the remote DCE.

The possible values are:

*CALL
The call out command is run. This command establishes a connection between a local and a remote DCE over a switched telephone network. This value is valid only if:
  • Both the local DCE and the remote DCE have two-wire couplers installed or both the local DCE and the remote DCE have four-wire couplers installed.
  • The line specified on the Line prompt (LINE parameter) is varied on, but not active.
*CONTOPER
The contact operate command is run. This command opens or closes the relay contact in the coupler, depending on the value specified on the Relay contact prompt (CONTACT parameter). This value is valid only if a two-wire coupler is installed in the DCE on which this LPDA-2 command is run.
*CONTSENSE
The contact sense command is run. This command reports whether the relay contact in the coupler is open or closed and whether electric current is flowing through the internal sensor. This option is valid only if a two-wire coupler is installed in the DCE on which this command is run.
*DSC
The disconnect command is run. This command disconnects the switched telephone network connection between the local DCE and the remote DCE. If you specify this value, you cannot specify *NONE on the Remote DCE address prompt (RMTDCEADR parameter).
*SETSPEED
The set transmit speed command is run. This command changes the transmit speed of the DCE to full or backup, depending on the value specified on the Transmit speed prompt (SPEED parameter). For multiple port DCE configurations in which the data terminal equipment (DTE) ports can be set to different speeds, use the DTE port prompt (DTEPORT parameter) to specify the port.

Note: The set transmit speed command may not change the transmit speed, depending on the configuration options selected for the DCE. Refer to the DCE documentation for more information.

Local DCE address (LCLDCEADR)

Specifies the hexadecimal address of the local DCE. Refer to the DCE documentation for more information on addressing.

The possible values are:

*LCL
X'01' is used for the address.
local-DCE-address
Specify the address of the local DCE. Valid values range from X'01' through X'FB'.

Remote DCE address (RMTDCEADR)

Specifies the hexadecimal address of the remote DCE on which the LPDA-2 operational command is to be run.

The possible values are:

*NONE
X'00' is used as the address, which indicates that the LPDA-2 command is to be run on the local DCE. You cannot specify *NONE on this parameter if you specify *DSC on the Option prompt (OPTION parameter).
*ANY
X'FD' is used for the address. Specify this value in the following situations:
  • The LPDA-2 command is to be run on any remote DCE connected to the local DCE.
  • You do not know the remote DCE address on a point-to-point line.
  • To run the LPDA-2 operational command on all tributary DCEs on a multipoint line. In this case, no detailed response is received.
remote-DCE-address
Specify the address of the remote DCE. Valid values range from X'01' through X'FB'.

Telephone number (TELNBR)

Specifies the telephone number or telephone numbers that the local DCE dials to establish a connection to the remote DCE. This parameter is valid only if *CALL is specified on the Option prompt (OPTION parameter).

The possible values are:

*STORED
The telephone number or numbers stored in the local DCE when the DCE was configured are used.
telephone-number
Specify one telephone number if a two-wire coupler is installed in the local DCE. Specify two telephone numbers if a four-wire coupler is installed in the local DCE. Only numeric characters are processed by the LPDA-2 command, but you can also enter alphabetic characters or any other non-DBCS characters to improve readability. A comma (,) can be used to instruct the DCE to pause during dialing.

Relay contact (CONTACT)

Specifies whether to open or close the relay contact in a two-wire coupler. This parameter is required if *CONTOPER is specified on the Option prompt (OPTION parameter).

The possible values are:

*OPEN
The relay contact is opened.
*CLOSE
The relay contact is closed.

Transmit speed (SPEED)

Specifies desired transmit speed of the DCE. This parameter is required if *SETSPEED is specified on the Option prompt (OPTION parameter).

The possible values are:

*FULL
The transmit speed is set to full.
*BACKUP
The transmit speed is set to backup.

DTE port (DTEPORT)

Specifies the DTE port on the local or remote DCE for which the transmit speed is changed. This parameter is valid only if *SETSPEED is specified on the Option prompt (OPTION parameter) and is applicable only to multiple port DCEs that do not use the multiple address configuration option.

The possible values are:

*ALL
The aggregate speed of the DCE is changed. Refer to the DCE documentation for information on the effect of changing the aggregate speed on the transmit speed of individual ports.
A
The transmit speed of the A-port is changed.
B
The transmit speed of the B-port is changed.
C
The transmit speed of the C-port is changed.
D
The transmit speed of the D-port is changed.

DCE retry (DCERTY)

Specifies whether the local DCE resends the LPDA-2 command to the remote DCE if no response is received from the remote DCE. No retry can be attempted if *CALL or *DSC is specified on the Option prompt (OPTION parameter).

The possible values are:

*NO
No retry is attempted.
*YES
One retry is attempted.

Examples

Example 1: Establishing a Switched Telephone Network Connection

RUNLPDA   LINE(SDLCLINE)  OPTION(*CALL)  LCLDCEADR(*LCL)
          RMTDCEADR(*NONE)  TELNBR(*STORED)

This command runs the call out command. The local DCE with address X'01' (*LCL) on line SDLCLINE dials the telephone numbers that are stored in the local DCE.

Example 2: Establishing a Switched Telephone Network Connection

RUNLPDA   LINE(SDLCLINE)  OPTION(*CALL)
          LCLDCEADR(*LCL)  RMTDCEADR(*NONE)
          TELNBR('9, 1-507-555-1212' '9, 1 (507) 555-1313')

This command runs the call out command. The local DCE dials the two numbers specified on the TELNBR parameter. The comma (,) indicates a pause during dialing. Other non-numeric characters are ignored, but are allowed for easier reading.

Example 3: Disconnecting a Switched Telephone Network Connection

RUNLPDA   LINE(SDLCLINE)  OPTION(*DSC)
          LCLDCEADR(10)  RMTDCEADR(*ANY)

This command runs the disconnect command. The local DCE with address X'10' disconnects from the switched telephone network.

Example 4: Closing the Relay Contact in the Local DCE

RUNLPDA   LINE(SDLCLINE)  OPTION(*CONTOPER)  LCLDCEADR(02)
          RMTDCEADR(*NONE)  CONTACT(*CLOSE)

This command runs the contact operate command. The local DCE with address X'02' closes the relay contact in its two-wire coupler.

Example 5: Reporting the Status of the Relay Contact

RUNLPDA   LINE(SDLCLINE)  OPTION(*CONTSENSE)
          LCLDCEADR(01)  RMTDCEADR(04)

This command runs the contact sense command. A message reports the status of the relay contact in the remote DCE with address X'04'. (The correct local DCE address must be specified on the LCLDCEADR parameter.)

Example 6: Changing the Transmit Speed

RUNLPDA   LINE(SDLCLINE)  OPTION(*SETSPEED)  LCLDCEADR(05)
          RMTDCEADR(*NONE)  SPEED(*BACKUP)  DTEPORT(B)

This command runs the set transmit speed command. The transmit speed for Port B of the local DCE with address X'05' is changed to backup speed.

Error messages

*ESCAPE Messages

CPF1BAA
LPDA-2 command cannot run in switched network backup.
CPF1BAB
LPDA-2 command not supported by target DCE.
CPF1BAC
Required feature not installed.
CPF1BAD
LPDA-2 command not compatible with DCE configuration.
CPF1BA1
Line description &1 does not exist.
CPF1BA2
Line &1 not active or not varied on.
CPF1BA3
Line &1 is active secondary.
CPF1BA4
Line &1 failed while processing RUNLPDA.
CPF1BA5
No response received for LPDA-2 command.
CPF1BA6
Cannot run LPDA-2 command on line &1.
CPF1BA7
No buffers available for RUNLPDA data.
CPF1BA8
LPDA-2 command already active on line &1.
CPF1BBA
Continuous answer tone received for first call.
CPF1BBB
Continuous answer tone received for second call.
CPF1BBC
No line signal on switched connection.
CPF1BBD
No initial dial tone.
CPF1BBE
No dial tone after pause.
CPF1BBF
Busy tone received from remote DCE.
CPF1BB0
Coupler not installed in local DCE.
CPF1BB1
Coupler not operational.
CPF1BB2
LPDA-2 command not valid with configuration options.
CPF1BB3
Telephone number not valid.
CPF1BB5
Switched connection already active.
CPF1BB6
Only single telephone number allowed.
CPF1BB7
Two telephone numbers required.
CPF1BB8
No answer from remote DCE on first call.
CPF1BB9
No answer from remote DCE on second call.
CPF1BDA
Error occurred processing RUNLPDA command.
CPF1BDB
Internal processing error.
CPF1BDC
Required feature not operational.
CPF1BDD
Ring back limit exceeded.
CPF1BDE
DCE busy. LPDA-2 command cannot be run.
CPF1BDF
Line not in proper state for LPDA-2 call out command.
CPF1BD3
DCE currently processing previous LPDA-2 command.
CPF1BD5
Cannot send command to remote DCE.
CPF1BD6
Line description &1 not nonswitched *SDLC.
CPF1BD8
Request failed. System service tools active.
CPF1BD9
RUNLPDA command does not support switched lines.
CPF1B85
Two-wire coupler not installed.
CPF1B86
Coupler not installed.
CPF1B87
Transmit speed cannot be changed.
CPF1B88
DTE port selected not valid for configuration.
CPF1B94
Local DCE received no response from remote DCE.
CPF1B95
Not authorized to line description &1.
CPF1B97
Format of response received not valid.
CPF1B98
Received response with bad frame check sequence.
OFC8DB7
Internal processing failure.