|
Kirk writes: > 2. Is there an AIX cmd/parm when using LPR to convert the data as it is sent > to the 400? Yes. From the TCP/IP Confg & Reference: #!/bin/csh -f #- # Convert ASCII file to EBCDIC and send it to AS/400 # to be received as *SCS file # the AS/400, it is required that the "working" LPD # PRTF located in QUSRSYS be changed with the following # command: # # CHGPRTF FILE(QUSRSYS/QPTMPLPD) DEVTYPE(*SCS) # # When you are finished, restore the original settings # with: # # CHGPRTF FILE(QUSRSYS/QPTMPLPD) DEVTYPE(*USERASCII) # # Caveats: # # - Square brackets will not convert properly. Other # special characters may not convert properly. # # - If you customize the QUSRSYS/QPTMPLPD, you will # affect all users of LPD services who may not want # *SCS files. # # - It is strongly recommended that QTCP/QPTMPLPD be # left alone. This is the working installation # default version. Copy or customize it to another # library that will be found ahead of QTCP. # # - If you erase the copy of QPTMPLPD in QUSRSYS, your # *LIBL is searched, and if no QPTMPLPD is found, the # version in QTCP is used. Therefore, you may copy # the QPTMPLPD printer file to a private library in # your *USRLIBL or *CURLIB and change it to be *SCS # without affecting other users, provided your copy # is found ahead of any other versions (namely, the # one in QTCP). #------------------------------------------------------- set nm=$0 if ("$1" == "-h" || "$1" == "") then echo " " echo "Usage:" "$nm:t" "^-h* file(s)" echo " " echo "Will convert file to EBCDIC and LPR to AS/400 printer queue" echo "using the following string:" echo " " echo " dd conv=ebcdic cbs=132 < $* | lpr -P as400 -l" echo " " exit endif echo "dd conv=ebcdic cbs=132 < $* | lpr -P as400 -l" dd conv=ebcdic cbs=132 < $* | lpr -P as400 -l exit; Warn the AIX people about the square bracket issue. It'll make their reading the source code for their C array processing a little hard to read. Peter H. Coffin phcoffin@us.ibm.com +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to "MIDRANGE-L@midrange.com". | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.