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 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 '1' in column 1 of the data. To do this,
specify:
TRIGGER1 = \,1,'1'
When ACIF finds a record that contains a '1' in column 1, that record becomes the
indexing anchor record.
Subsequent TRIGGERn parameters are defined relative to the indexing anchor
record. In this example, you want to ensure that the page being indexed is the first
page of the bill, which is the only page in the bill that has the text 'ACCOUNT
NUMBER:' starting at byte 50 in the 13th record following the anchor record. To
specify this additional trigger for locating the correct page to index, specify:
TRIGGER2 = 13,5ð,'ACCOUNT NUMBER:'
ACIF uses both trigger values to locate a place in the file to begin searching for the
data supplied in the INDEX parameters.
Next, specify the attribute name of the first indexing parameter as 'Account
Number', and define the location of the attribute value in the data relative to the
index anchor record set by TRIGGER1. Because the data value for the Account
Number attribute is located in the 13th record from the index anchor record starting
in byte 66 and extending for 15 bytes, specify:
FIELD1=13,66,15
INDEX1='Account Number',field1
To create the indexing tag for the Name attribute, define 'Name' as the indexing
attribute. Locate the value for Name in the anchor record in the data starting at byte
50 and extending for 30 bytes. The ACIF parameters to specify this are:
FIELD2=ð,5ð,3ð
INDEX2='Name',field2
Repeat this process to specify the other three indexing tags, so that the index
attributes and values are defined as follows:
INDEX1 'Account Number',field1
'Account Number' index attribute
field1
maps to FIELD1 index value
FIELD1
13 lines down from indexing anchor record, 66
columns across, 15 bytes in length
INDEX2
'Name', field2
'Name'
index attribute
field2
maps to FIELD2 index value
Chapter 8. Example: ACIF Application in OS/390, MVS, VM, or VSE
119
Summary of Contents for S544-5285-01
Page 1: ...IBM Print Services Facility IBM AFP Conversion and Indexing Facility User s Guide S544 5285 01...
Page 2: ......
Page 3: ...IBM Print Services Facility IBM AFP Conversion and Indexing Facility User s Guide S544 5285 01...
Page 10: ...viii ACIF User s Guide...
Page 22: ...2 ACIF User s Guide...
Page 40: ...20 ACIF User s Guide...
Page 41: ...Part 2 Using ACIF in the AIX Environment Copyright IBM Corp 1993 1999 21...
Page 42: ...22 ACIF User s Guide...
Page 72: ...52 ACIF User s Guide...
Page 96: ...76 ACIF User s Guide...
Page 99: ...Part 3 Using ACIF in the OS 390 MVS VM and VSE Environments Copyright IBM Corp 1993 1999 79...
Page 100: ...80 ACIF User s Guide...
Page 106: ...86 ACIF User s Guide...
Page 134: ...Figure 24 Example of a Customer s Phone Bill 114 ACIF User s Guide...
Page 142: ...122 ACIF User s Guide...
Page 196: ...176 ACIF User s Guide...
Page 197: ...Part 4 Appendixes Copyright IBM Corp 1993 1999 177...
Page 198: ...178 ACIF User s Guide...
Page 206: ...186 ACIF User s Guide...
Page 210: ...190 ACIF User s Guide...
Page 226: ...206 ACIF User s Guide...
Page 253: ......