IBM S544-5285-01 Printer User Manual


 
Examples
The examples contained in this section show how to use ACIF processing
parameters for conversion, resource retrieval, specifying fonts, and identifying the
location of resource directories. For indexing examples, see Chapter 3, “Example
of an ACIF Application in AIX” on page 53. For examples of how to use ACIF or
the line2afp command to transform S/370 line data and unformatted ASCII files for
printing with PSF for AIX, refer to “Using the line2afp Command” in
IBM Print
Services Facility for AIX: Print Submission
.
Note: In the following examples, ACIF is run by entering the acif command,
parameters, and values on the command line. When all of the parameters
will not fit on a single line across the screen, the backslash, \, tells AIX to
continue reading the command from the next line.
1. You have an EBCDIC S/370 line data file named OLDFILE.143 that you
want to transform into a MO:DCA-P document named NEWFILE.afp.To
do this, enter:
acif inputdd=OLDFILE.143 outputdd=NEWFILE.afp cctype=a \
fileformat=record pagedef=P1A6462 formdef=F1A111
ACIF converts the S/370 line data file, specified with the inputdd
parameter, into a document file with the name specified by the
outputdd parameter.
You specified cctype=a to indicate that the file contains EBCDIC ANSI
carriage control characters. This particular input file is in S/370 variable
length record format, so you indicated this by specifying
fileformat=record. The pagedef and formdef parameters are required
with your line data input file, so you specified the file names of the page
definition and form definition you want ACIF to use in processing this
file.
2. You have an AFP file (MYFILE) that contains page segments and
overlays. You would like to retrieve the page segments and overlays
from the file and create both a data file and a resource file. To do this,
enter:
acif inputdd=MYFILE outputdd=MYDATA resobjdd=MYRES \
restype=pseg,ovly,fdef formdef=F1H111
From this job, ACIF will produce an AFP document file and a resource
file. The AFP document file (MYDATA) will contain the AFP data from
MYFILE. The resource file (MYRES) will contain the resource data from
MYFILE.
You specified restype=pseg,ovly,fdef so that the page segments and
overlays would be included in the resource file, along with the form
definition (specified with the formdef parameter) that you want ACIF to
use when processing the file.
For more information about when and why you would want to use
ACIF’s resource retrieval functions, refer to “Retrieving Resources” on
page 14
3. You have an input file (MYFILE.asc) that contains unformatted ASCII
data, and you want three coded fonts to be used in processing the file:
Helvetica 12-point, and Times New Roman 10-point and 9-point. You
Chapter 2. Using ACIF Parameters in AIX 49