ŸDate due

The task is to specify the ACIF indexing parameters so that the fi bill includes group-level indexing tags containing the values of all five attributes.

To generate these indexing attributes,TRIGGER1specifyparameterthe first, because ACIF always scans for the dataTRIGGER1specifiedfirst.in Because the data contains carriage control characters, including a carriage contro indicate a new page, request that ACIF locate the start of a page 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 TRIGGERn parameters are defined relative to the indexing record. In this example, you want to ensure that the page being i page of the bill, which is the only page in the bill that has the NUMBER:' starting at byte 50 in the 13th record following the anchor specify this additional trigger for locating the correct page to in

TRIGGER2 = 13,5ð,'ACCOUNT NUMBER:'

ACIF uses both trigger values to

locate

a place

in the

file to

be

data

supplied INDEXin the parameters.

 

 

 

 

 

 

 

Next, specify the attribute name of the

first indexing

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 Accoun

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 attribute, define 'Name' as attribute. Locate the value for Name in the anchor record in the d 50 and extending for 30 bytes. The ACIF parameters to specify this

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'

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

Page 139
Image 139
IBM S544-5285-01 manual INDEX1, FIELD1, INDEX2