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