Examples
- To print a
flat
ASCII file calledtimesheet
that does not contain carriage controls, on the InfoPrint printer namedservC-lp
, enter:pdpr -p servC-lp -x "document-format=line-data form-definition=FDEF1 page-definition=PDEF3 input-exit=apka2e carriage-control-type=none" timesheet
Because you specified
document-format=line data
, InfoPrint invokes the line2afp command. Because you specifiedform-definition=FDEF1
, the line2afp command uses theFDEF1
form definition. Because you specifiedpage-definition=PDEF3
, the line2afp command uses thePDEF3
page definition.If the
PDEF3
page definition specifies 2-up printing, thetimesheet
file prints 2-up; that is, with twopages
printed side by side on the same physical page. - On AIX or Linux, assume that you want to print a traditional line data file called
statements
. Assume that the file contains ANSI carriage-control characters.To print this file on the InfoPrint printer named
servA-lp
; use form definitionFDEF6
in your current directory (/usr/liz/fdefs
) and use page definitionP1USER10
, which might be in the directory/usr/res/pdefs1
or in the directory/usr/res/pdefs2
, enter:pdpr -p servA-lp -x "document-format=line-data form-definition=FDEF6 resource-context=/usr/liz/fdefs page-definition=P1USER10 resource-context-page-definition=/usr/res/pdefs1:/usr/res/pdefs2 carriage-control-type=ansi-ebcdic new-line-options=counted-4-octet-aligned" /usr/370/statements
- Because you specified
document-format=line data
, InfoPrint invokes the line2afp command. - Because you specified
page-definition=P1USER10
, the pdpr command tells the line2afp command to use the page definition namedP1USER10
. - Because you specified
resource-context-page-definition
, the pdpr command tells the line2afp command to search the two directories you specified for the page definition. - Because you specified
form-definition=FDEF6
, the pdpr command tells the line2afp command to use the form definition namedFDEF6
. - Because you specified
carriage-control-type=ansi-ebcdic
andnew-line-options=record
, the pdpr command gives line2afp information about the data stream format ofstatements
.
- Because you specified
- Suppose you downloaded a file called
myfile
from a S/370 host to the Windows Windows PC. The file transfer process converted the file’s EBCDIC encoding to ASCII; the file still retains table reference characters and carriage controls. The file also retains the line length it had on the host (100 characters long). Also suppose that your current directory isd:\Host.Files
.To print this file on the InfoPrint printer
BServ-lp
; use the coded fonts Courier 12-pitch (X042B2) and Times New Roman 14-pitch (X0N2D2) for the output; use the form definition calledF1USER10
in your current directory; and use the page definition calledMYP1
(which does not name any fonts) in your current directory, enter:pdpr -X 370files.X myfile
where the attributes file named
370files.X
contains these settings:document-format=line-data chars=42B2,N202 form-definition=F1USER10 resource-context=d:\Host.Files page-definition=MYP1 resource-context-page-definition=d:\Host.Files new-line-options=record,100 table-reference-characters=yes carriage-control-type=ansi-ascii printer-name-requested=BServ-lp
- Because you specified
document-format=line-data
, InfoPrint invokes the line2afp command. - The page definition you specified with
page-definition
does not name any fonts, but the input file contained table reference characters that indicate when fonts should be changed. You specifiedtable-reference-characters=yes
andchars=42B2,N2D2
, and pdpr passes these values to line2afp.You had to use
resource-context-page-definition
to specify the path to the page definition; line2afp does not automatically look in your current directory. - Because you specified
chars=42B2,N2D2
, pdpr tells line2afp to associate font42B2
with the first table reference character, and fontN2D2
with the second table reference character. Any lines in the input file that begin with table reference character 0 will now print using font42B2
; lines beginning with table reference character 1 will print using fontN2D2
. - Because you specified
form-definition=F1USER10
, pdpr tells line2afp to use form definitionF1USER10
. You had to use resource-context to specify the path to the form definition; pdpr and line2afp do not automatically look in your current directory.
- Because you specified
- Suppose you downloaded a file called
myfile
from a S/370 host to the pSeries. The file transfer process converted the file’s EBCDIC encoding to ASCII; the file still retains table reference characters, plus ANSI carriage controls. You want to print this file on the InfoPrint printerservC-lp
, but you do not have any ASCII fonts; you only have the EBCDIC coded fonts Gothic 10-pitch (X0GT10) and Gothic 12-pitch (X0GT12).To print this file using the form definition called
F1USER10
and the page definition calledMYPDEF2
, which does not name any fonts, enter:pdpr -p servC-lp -x "document-format=line-data chars=GT10,GT12 input-exit=apka2e form-definition=F1USER10 page-definition=MYPDEF2 table-reference-characters=yes carriage-control-type=ansi-ebcdic resource-context=/usr/mydir" myfile
- Because you specified
document-format=line-data
, InfoPrint invokes the line2afp command. - The page definition you specified with page-definition does not name any fonts, but the input file contains table reference characters that
specify when fonts are to be changed. You specified
table-reference-characters=yes
andchars=GT10,GT12
, and pdpr passes these values to line2afp. - Because you specified
chars=GT10,GT12
, pdpr tells line2afp to associate fontGT10
with the first table reference character, and fontGT12
with the second table reference character. Any lines in the input file that begin with table reference character 0 will now print using fontGT10
; lines beginning with table reference character 1 will print using fontGT12
. - Because you specified
input-exit=apka2e
, pdpr tells line2afp to convert the ASCII input file into EBCDIC so you can use your EBCDIC coded fonts (GT10
andGT12
). Your carriage controls are also in EBCDIC now, so you have to specifycarriage-control-type=ansi-ebcdic
. This example assumes you have /usr/lpp/psf/bin in your PATH environment variable. - Because you specified
form-definition=F1USER10
, pdpr tells line2afp to use form definitionF1USER10
. You had to use resource-context to specify the path to the form definition; pdpr and line2afp do not automatically look in your current directory.
- Because you specified