Using a Parameter File with ASCII Input Data
A parameter file created for use with ASCII input data is shown in Figure 12. To
use a parameter file, you specify the parameter file name with the acif command
parmdd parameter. For example, to use a parameter file named
PARMFILE
, specify:
acif parmdd=PARMFILE
/\ example phone bill \/
/\ DATA CHARACTERISTICS
\/
cc=yes
/\ carriage control used \/
cctype=z
/\ ASCII ANSI carriage controls \/
chars=42B2
/\ coded font \/
cpgid=85ð
/\ code page identifier \/
/\ FIELD AND INDEX DEFINITION
\/
field1=13,66,15
/\ Account Number data field \/
field2=ð,5ð,3ð
/\ Name data field \/
field3=1,5ð,3ð
/\ Address data field \/
field4=2,5ð,3ð
/\ City, State, Zip data field \/
field5=4,6ð,12
/\ Date Due data field \/
index1='Account Number',field1
/\ 1st index attribute \/
index2='Name',field2
/\ 2nd index attribute \/
index3='Address',field3
/\ 3rd index attribute \/
index4='City, State, Zip',field4
/\ 4th index attribute \/
index5='Date Due',field5
/\ 5th index attribute \/
/\ INDEXING INFORMATION
\/
indexobj=all
/\ index object file entries \/
/\ RESOURCE INFORMATION
\/
formdef=F1A1ð11ð
/\ formdef name \/
pagedef=P1Að8682
/\ pagedef name \/
fdeflib=/usr/res/fdeflib1:/usr/res/fdeflib2
/\ formdef directories \/
fontlib=/usr/res/fontlib1:/usr/res/fontlib2
/\ font directories \/
ovlylib=/usr/res/ovlylib1:/usr/res/ovlylib2
/\ overlay directories \/
pdeflib=/usr/res/pdeflib1:/usr/res/pdeflib2
/\ pagedef directories \/
pseglib=/usr/res/pseglib1:/usr/res/pseglib2
/\ pseg directories \/
resobjdd=RESDATA
/\ resource file name \/
restype=fdef,pseg,ovly
/\ resource type selection \/
/\ FILE INFORMATION
\/
indexdd=INDXOBJ
/\ index file name \/
inputdd=/usr/data/INFILE
/\ input path & file name \/
outputdd=OUTDOC
/\ output file name \/
msgdd=acif.msg
/\ error message file name \/
/\ EXIT AND TRIGGER INFORMATION
\/
trigger1=\,1,'1'
/\ 1st trigger \/
trigger2=13,5ð,'ACCOUNT NUMBER'
/\ 2nd trigger \/
Figure 12. Example of a Parameter File for ASCII Input Data
The example uses the following data values as the indexing attributes:
Account Number
Name
Address
City, State, Zip
Date Due
The task is to specify the ACIF indexing parameters so that the first page of each
bill includes group-level indexing tags containing the values of all five of these
attributes.
To generate these indexing attributes, specify the trigger1 parameter first, because
ACIF always scans for the data specified in trigger1 first. Because the data
contains carriage control characters, including a carriage control character of 1 to
indicate a new page, request that ACIF locate the start of a page by searching
56
ACIF User’s Guide
Содержание S544-5285-01
Страница 1: ...IBM Print Services Facility IBM AFP Conversion and Indexing Facility User s Guide S544 5285 01...
Страница 2: ......
Страница 3: ...IBM Print Services Facility IBM AFP Conversion and Indexing Facility User s Guide S544 5285 01...
Страница 10: ...viii ACIF User s Guide...
Страница 21: ...Part 1 Information Common to AIX OS 390 MVS VM and VSE Environments Copyright IBM Corp 1993 1999 1...
Страница 22: ...2 ACIF User s Guide...
Страница 40: ...20 ACIF User s Guide...
Страница 41: ...Part 2 Using ACIF in the AIX Environment Copyright IBM Corp 1993 1999 21...
Страница 42: ...22 ACIF User s Guide...
Страница 72: ...52 ACIF User s Guide...
Страница 96: ...76 ACIF User s Guide...
Страница 99: ...Part 3 Using ACIF in the OS 390 MVS VM and VSE Environments Copyright IBM Corp 1993 1999 79...
Страница 100: ...80 ACIF User s Guide...
Страница 106: ...86 ACIF User s Guide...
Страница 134: ...Figure 24 Example of a Customer s Phone Bill 114 ACIF User s Guide...
Страница 142: ...122 ACIF User s Guide...
Страница 196: ...176 ACIF User s Guide...
Страница 197: ...Part 4 Appendixes Copyright IBM Corp 1993 1999 177...
Страница 198: ...178 ACIF User s Guide...
Страница 206: ...186 ACIF User s Guide...
Страница 210: ...190 ACIF User s Guide...
Страница 226: ...206 ACIF User s Guide...
Страница 253: ......
Страница 255: ...Spine information IBM IBM Print Services Facility User s Guide AFP Conversion and Indexing Facility...