IBM S544-5285-01 Printer User Manual


 
/ᑍ example phone bill ᑍ/
/ᑍ DATA CHARACTERISTICS ᑍ/
cc=yes /ᑍ carriage control used ᑍ/
cctype=a /ᑍ EBCDIC ANSI carriage controls ᑍ/
chars=GT15 /ᑍ coded font ᑍ/
cpgid=37 /ᑍ 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=X'C1838396A495A34D5A494828599',field1 /ᑍ 1st index attr (Account Number) ᑍ/
index2=X'D5819485',field2 /ᑍ 2nd index attr (Name) ᑍ/
index3=X'C184849985A2A2',field3 /ᑍ 3rd index attr (Address) ᑍ/
index4=X'C389A3A86B4E2A381A3856B4E98997',field4 /ᑍ 4th index attr (City, State, Zip) ᑍ/
index5=X'C481A3854C4A485',field5 /ᑍ 5th index attr (Date Due) ᑍ/
/ᑍ INDEXING INFORMATION ᑍ/
fileformat=record /ᑍ input file format ᑍ/
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 ᑍ/
restype=fdef,pseg,ovly /ᑍ resource type selection ᑍ/
/ᑍ FILE INFORMATION ᑍ/
indexdd=INDXOBJ /ᑍ index file name ᑍ/
inputdd=/usr/data/INFILE /ᑍ input path & file name ᑍ/
msgdd=acif.msg /ᑍ error message file name ᑍ/
outputdd=OUTDOC /ᑍ output file name ᑍ/
resobjdd=RESDATA /ᑍ resource file name ᑍ/
/ᑍ EXIT AND TRIGGER INFORMATION ᑍ/
trigger1=ᑍ,1,X'F1' /ᑍ 1st trigger (1) ᑍ/
trigger2=13,5,X'C1C3C3D6E4D5E34D5E4D4C2C5D9' /ᑍ 2nd trigger (ACCOUNT NUMBER) ᑍ/
Figure 13. Example of a Parameter File for EBCDIC 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
every record in the file for a trigger value of the hexadecimal string for ‘1’ in column
1 of the data. To do this, specify:
trigger1 = ᑍ,1,X'F1'
When ACIF finds a record that contains a ‘1’ in column 1, that record becomes the
indexing anchor record.
Chapter 3. Example of an ACIF Application in AIX 59