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=F1A111 /ᑍ formdef name ᑍ/
pagedef=P1A8682 /ᑍ 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