3 3 1 Starting the Listener Job

LANSA Communication Set Up

3.3.1 Starting the Listener Job

Before remote sessions can connect to the IBM i using TCP/IP, the listener job must be started on the IBM i. The listener job will wait for connection requests on the port number nominated in the Listener record of the Routing Table. TCP/IP must be active before you start the listener job.

To start the listener job, submit the following LANSA request:

SBMJOB CMD(LANSA REQUEST(STRLISTEN)) JOB(aaaaaaaaaa)

where aaaaaaaaaa is the job name of your choice.

If you want to minimize the dependency of the Listener Job on the LANSA system from which it is started, then use the optional parameter PARM01(*UNLOCK). When this option is requested, the Listener job will not place a lock on data area DC@A01 nor will it keep open any files from the LANSA system data library. With this option the submit command should look like the following request:

SBMJOB CMD(LANSA REQUEST(STRLISTEN) PARM01(*UNLOCK)) JOB(aaaaaaaaaa)