Question & Answer
Question
Is there a way to force LPR to use a different source port range than 256 through 1024?
Answer
Yes. The method of specifying a different source port range is through the DESTOPT parameters on the CRTOUTQ or CHGOUTQ and LPR or SNDTCPSPLF CL commands. The source port range is identified by specifying XSRCPORT(00000 99999) in the destination options.
The source port range must be values between 256 and 65535 (inclusive). The port numbers must be zero padded and always 5 digits. The destination option key word must be XSRCPORT and the numbers must be enclosed in parenthesis as well as require a blank to separate the lower and upper range. If any of these rules are broken, the default port range of 256-1024 will be used. If a source port range is not specified, LPR defaults to source port range of 256-1024.
For example, to change an existing remote output queue to use a source port between 899 and 5000, issue the following command after ending the writer:
CHGOUTQ OUTQ(LibraryName/OutputQueueName) DESTOPT('XSRCPORT(00899 05000)')
[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0"}]
Was this topic helpful?
Document Information
Modified date:
10 August 2020
UID
ibm16257871