Examples

The examples contained in this section show how to use ACIF processin parameters for conversion, resource retrieval, specifying fonts, and i location of resource directories. For indexing examples, see Chapter of an ACIF Application in AIX” on page 53. For examples of how to us

theline2afp command to transform S/370 line data and unformatted ASCII fi printing with PSF for AIX, refer to “Using the IBMline2afpPrint Command” in Services Facility for AIX: Print .Submission

Note: In the following examples, ACIF is run byacif enteringcommand, the

 

parameters,

and

values

on

the

command

line. When

all of

the par

will not

fit

on

a single

line

across

the screen,

the

backslash,

continue

reading

the command from the next line.

 

 

1. You

have an

EBCDIC

S/370

line

data OLDFILEfile .named14ð3

that

you

want

to

transform into

a

MO:DCA-P

document NEWFILEnamed.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, inputddspecified with the parameter, into a document file with the name specified by

outputdd parameter.

You specifiedcctype=a to indicate that the file contains EBCDIC carriage control characters. This particular input file is in length record format, so you indicated this by specifying

fileformat=record . Thepagedef andformdef parameters are required with your line data input file, so you specified the file definition and form definition you want ACIF to use in proces file.

2.You have an AFP MYFILEfile ) (that contains page segments and overlays. You would like to retrieve the page segments and from the file and create both a data file and a resource 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 r

file. The

AFP document MYDATAfile) (will

contain

the AFP

data

from

MYFILE.

The

resourceMYRESfile)will( contain the resource data from

MYFILE.

 

 

 

 

 

 

You specifiedrestype=pseg,ovly,fdef so that the page segments and overlays would be included in the resource file, along with

definition (specifiedformdefwith parameter)the 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 Reso

page

14

 

3.You have an inputMYFILEfile.asc)( that contains unformatted ASCII data, and you want three coded fonts to be used in proce Helvetica 12-point, and Times New Roman 10-point and 9-point. Yo

Chapter 2. Using ACIF Parameters 49in AIX

Page 69
Image 69
IBM S544-5285-01 manual Line