IDMS TCP/IP listener multiple ports support
search cancel

IDMS TCP/IP listener multiple ports support

book

Article ID: 409698

calendar_today

Updated On:

Products

IDMS IDMS - Database

Issue/Introduction

For TCP/IP connection to IDMS CVs, can a CV connect to multiple TCPIP ports?

Does it need to have several listeners?

The purpose is to reduce port congestion, ease troubleshooting and enable failover to different port if required.

Environment

Release: 19.0

Resolution

An IDMS TCP/IP SOCKET line can have multiple listener PTERMs defined, each listening on a different port number.

See documentation section TCP/IP Support, heading Modifying the Sysgen

For each generic listener, define a LTERM/PTERM pair and its associated task code and program. 

To add a second TCLJSRV listener PTERM, define a new LTERM/PTERM pair. Specify a different port number not currently used in the LPAR. 
To use this PTERM the application must connect using the new port number.

Here is an example, differences from TCLJSRV are marked  in red:

ADD LTERM TCLJSRV2 
ENABLED 
PTERM IS TCPJSRV2
 
ADD PTERM TCPJSRV2 
    ENABLED 
    IN LINE TCPIP
    MAXIMUM ERRORS IS 3
    PRINTER CLASS IS 1
    READBUFFER
    TYPE IS LISTENER
    TASK IS RHDCNP3J MODE IS SYSTEM
    PORT IS 37542
    BACKLOG IS 5                               
    PARM IS 
        'TASK=IDMSJSRV' 
    MAXIMUM NUMBER OF CONNECTIONS IS OFF
    .