IBM AS/400e Computer Hardware User Manual


 
Your *LIBL is considered to be one that exists when your user profile is signed on.
You cannot run any programs when you sign on to set the library list. Change to
your current interactive session has no effect upon the *LIBL used. This is because
the user profile *LIBL is checking occurs in an LPD server batch job and not your
interactive job.
To receive EBCDIC files, the LPR client must be any user with an AS/400 user
profile that has the *SCS working copy in its *LIBL path. For example, if
someone moves the printer file to library JOHNDOE, any user profile with
JOHNDOE as its *CURLIB or in its *USRLIBL uses the *SCS printer file.
Attention
Removing the working copy from library QUSRSYS forces every user profile that
does not have library JOHNDOE in its *LIBL to find the installation copy in QTCP. If
library QTCP is not already in the *LIBL, then the system adds it as the last library
in the *LIBL for all user profiles. This insures that the system finds a printer file. Do
not change the installation copy in QTCP. This insures that other user profiles,
including the default profile QTMPLPD, still receive ASCII data streams as usual.
System/370 Example
For System/370 systems, source files already exist in EBCDIC form. Therefore,
when you send System/370 files to an AS/400 using LPR, specify the
binary
option
to keep the system from translating the files from EBCDIC into ASCII.
The following example shows the LPR command to send to an AS/400 that has
DEVTYPE(*SCS) for the QPTMPLPD printer file:
LPR fname ftype fmode (HOST AS400.ENDICOTT.IBM.COM
PRINTER somelib/someoutq COPIES 1 NOHEADER
WIDTH 132 FILTER f LINECOUNT 66 BINARY
This example explicitly specifies the width of the source file. It is best if the source
file uses fixed-width records instead of variable-length records to ensure that it pads
all records to this width.
The BINARY flag indicates that the LPR platform must not do any EBCDIC to ASCII
conversion. This means that the LPD server receives an EBCDIC data stream into
an *SCS spooled file. However, this spooled file prints only on EBCDIC printers.
RISC System/6000 Example
This example uses the AIX C shell. It has not been tested on other UNIX systems.
In this example, you automatically pipe any program arguments passed into the dd
command and then pipe the output of the dd command to the lpr program.
In this example, as400 is the name of the AS/400 printer to which you are sending
the file.
374 OS/400 TCP/IP Configuration and Reference V4R4