every record in the file for a trigger value of ‘1’ in column 1 o specify:

trigger1 = \,1,'1'

When ACIF finds a record that contains a ‘1’ in column 1, that reco indexing anchor record.

Subsequent trigger n

parameters

are defined relative to

the

indexing anc

In

this

example,

you want

to

ensure

that

the

page

being indexed

i

the

bill,

which

is the only

page in

the

bill

that

has

the text

‘ACC

starting at byte 50 in the 13th record following the anchor record.

additional trigger for locating the correct page to

index,

enter:

 

trigger2 = 13,5ð,'ACCOUNT NUMBER'

 

 

 

 

 

 

 

 

 

 

 

 

ACIF uses both trigger values to

locate

a place

in

the

file

to

be

data

supplied index theparameters.

 

 

 

 

 

 

 

 

 

 

 

Next, specify the attribute name of the first'Accountindexing

parameter

a

Number', and define the location

of

the

attribute value in the data

index anchor record trigger1set .by Because the

data value for the Account

Number

attribute is located

in

the

13th

record

from

the

index

anch

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'Name'attribute,as the defineindexing

 

 

attribute. Locate the value for ‘Name’ in

the

anchor

record

in

the

byte

50 and extending for

30

bytes. The

ACIF

parameters

to

specify

field2=ð,5ð,3ð

index2='Name',field2

Repeat this process to specify the other three indexing tags, so attributes and values are defined as follows:

Ÿ

index1='Account Number',field1

 

 

 

 

 

'Account Number'

is the 1st index attribute

 

field1

maps

 

to

field1the

index

value,

which

is:

 

 

-

13 lines

down

from

the

indexing anchor record, 66 columns acro

 

 

 

15 bytes

in

length

 

 

 

 

Ÿ

index2='Name',field2

 

 

 

 

 

 

 

 

'Name'

is

the

2nd

index attribute

 

 

field2

maps

 

to

field2the

index

value,

which

is:

 

 

-

0

lines

down

(in

the indexing anchor record), 50 columns across,

 

 

 

30 bytes

in

length

 

 

 

 

Ÿ

index3='Address',field3

 

 

 

 

 

 

 

'Address' is

the

3rd

index attribute

 

 

field3

maps

 

to

field3the

index

value,

which

is:

 

 

-

1

line

down

from

the indexing anchor record, 50 columns across,

 

 

 

30 bytes

in

length

 

 

 

 

Ÿindex4='City, State, Zip',field4

'City, State, Zip' is the 4th index attribute

field4 maps to field4the index value, which is:

Chapter 3. Example of an ACIF Application57 in AIX

Page 77
Image 77
IBM S544-5285-01 manual To create the indexing tag for