Spool - LPDFILE command is failing
search cancel

Spool - LPDFILE command is failing

book

Article ID: 254620

calendar_today

Updated On:

Products

Spool

Issue/Introduction

We have submitted the command from Linux machine:

 lpr -H ##.##.##.##:631 -P SAR1 test123.txt

Linux server name :- <example> / ##.##.##.##

Receiving error.

Environment

Release : 14.0

Resolution

The client needed to define the destination to CUPS (Common Unix Printing System) before sending the file. 

This Spool documentation link provides information on how to define a printer to CUPS:

 https://techdocs.broadcom.com/us/en/ca-mainframe-software/traditional-management/ca-spool/14-0/other-customization-options/tcp-ip-lpd-ipp-print-server-interface.html

Here are Linux commands to define a printer, if LPD is to be used:

 lpadmin -p SAR1 -v lpd://##.##.##.##:515/SAR1
 cupsaccept SAR1
 cupsenable SAR1

Then use the following LP command to print file:

 lp -d SAR1 test.txt

If there is a preference to use IPP, the definition should be:

 lpadmin -p SAR1 -v ipp://##.##.##.##:631/SAR1
 cupsaccept SAR1
 cupsenable SAR1

The LP command remains the same:

lp -d SAR1 test.txt

-----------------------------------------------------------------------------------

In Spool:

 . The ESFLOG will indicate the LPD server that received the file and sent it to View
   with name "16 - TES" . 

 . For the file name to be the same as the Linux file name, change the Spool LPDDEST
   statement as below:

 LPDDEST QDEST=SAR1,FAM=SAR,FSAR=SAR.Q,FNAME=&N0,  
         FTRACE=ALL,FOPTS=D 

 . Note: There is an added "0" after &N.