Examples -- afpxpcl
- Transform an AFP UNIX file,
specifying a transform class and output file
- To transform the AFP UNIX file myfile.afp into
an output PCL file called myfile.pcl, using the us transform
class, enter:
afpxpcl -c us -o myfile.pcl myfile.afp
- Transform an AFP MVS™ data set, specifying a form definition
- To transform the AFP MVS data set USERX.AFP(MYFILE) into
an output PCL file called myfile.pcl, using the form definition F1CP0110,
enter:
afpxpcl -j "form-def=f1cp0110" -o myfile.pcl "//'USERX.AFP(MYFILE)'"
- Transform an AFP UNIX file,
specifying a form definition and a resource library
- To transform the AFP UNIX file myfile.afp into
an output PCL file called myfile.pcl, using the form definition F1CP0110 that
contains references to user-supplied AFP resources,
enter this command on one line:
afpxpcl -j "form-def=f1cp0110 res-lib={lib1.pseglib lib3.private}"
-o myfile.pcl myfile.afp
- Transform and print an AFP MVS data set, specifying a form definition
and a resource library
- To transform the AFP MVS data set PROD.AFPOUT(JOB1) into
a PCL file, using the form definition F1CP0110 that contains
references to user-supplied AFP resources,
and print the output, enter this command on one line:
afpxpcl -j "form-def=f1cp0110 res-lib={lib1.pseglib lib3.private}"
"//'PROD.AFPOUT(JOB1)'" | lp -d myprinter
- Transform a job using redirection
- To transform the AFP file input.afp into
the PCL output file called output.pcl, enter:
afpxpcl < input.afp > output.pcl
Note:
You can use redirection operators only with UNIX files.
- Transform multiple files and concatenate the output
- To transform the AFP files input.01.afp, input.02.afp,
... input.xx.afp into one PCL output file called output.pcl,
enter:
afpxpcl -o output.pcl input.01.afp input.02.afp ... input.xx.afp
- Transform an AFP UNIX file
to an MVS data set
- To transform the line data file input.line into an MVS PCL output data set called hlq.OUTPUT.PCL(MYDOC), enter:
afpxpcl -j doc-format=line -o "//'hlq.OUTPUT.PCL(MYDOC)'" input.line
- Transform an AFP MVS data set, writing the output
to a UNIX file
- To transform the AFP MVS data set HLQ.INPUT.LINE(MYDOC) into
an output file called output.pcl, enter:
afpxpcl -o output.pcl "//'hlq.INPUT.LINE(MYDOC)'"
- Transform line data, specifying a form definition and
a page definition
- To transform line data in file myfile.line that contains
ANSI carriage control characters into an output PCL file called myfile.pcl,
using the form definition F1CP0110 and page definition P1P06362,
enter this command on one line:
afpxpcl -j "form-def=f1cp0110 page-def=p1p06362 c-c-t=a doc-format=line"
-o myfile.pcl myfile.line
- Transform line data, specifying a form definition and
fonts
- To transform the line data file myfile.line containing
machine carriage control characters and table reference characters
into an output PCL file called myfile.pcl, using the form
definition F1CP0110, enter this command on one line:
afpxpcl -j "form-def=f1cp0110 c-c-t=m t-r-c=yes chars={60D8 60D0}"
-o myfile.pcl myfile.line
- Transform an AFP MVS data
set and receive MVS return codes
- To transform the AFP MVS data set HLQ.INPUT.LINE(MYDOC) into
an output file called output.pcl and receive MVS return codes (0, 4, 8), enter:
AOP_MVS_RETURN_CODES=YES afpxpcl -o output.pcl "//'hlq.INPUT.LINE(MYDOC)'"
MVS return codes indicate whether the transform was
successful (0), a transform warning occurred (4), or a transform error
occurred (8).
- Transform an AFP document with TrueType fonts
in multiple font directories
- To transform an AFP document
with TrueType fonts that are found in external resource directories:
afpxpcl -j "resource-directories={/usr/lpp/fontpath1 /usr/lpp/fontpath2}" -o myfile.pcl myfile.afp
|