condition and terminates processing if an ‘*’ is sp with anytrigger n parameter other trigger1than . The supported range of valuesrecordforis 0 to 255.

column

Specifies*

the

byte offset from the beginning

of

 

where the trigger value is located. This value c

 

specified

in

absolute

 

terms

(for

example,

10)

or

 

which

results

in ACIF scanning the record from

left

 

right

looking

for

the

trigger

value.

A

value of 1

 

the first byte in the record. For files containi

 

carriage-control characters, column 1 refers to the

 

carriage-control. The supported range of values for

 

column

are

1

to

32756.

ACIF

compares

the

trigger

 

to the input data. If the specified value exce

 

physical length of the record, ACIF considers the

 

comparison

“false”

and

continues

processing.

 

 

'trigger value' X'trigger value'

 

 

 

 

 

 

 

 

 

 

 

 

Specifies the actual alphanumeric (case-sensitive) o

 

hexadecimal

value

of

the

trigger.

ACIF

does

not

 

any validity checking on this value, but uses it

 

performing

a

byte-for-byte

comparison

with

the

rec

 

in the file. The trigger value can be 1–253

byte

 

length.

If

the

combinedcolumnvaluesandof the

trigger

 

 

length exceed the physical length of the record,

 

considers the comparison “false” and continues

 

 

processing.

 

 

 

 

 

 

 

 

 

 

 

 

 

For example, to use a

carriage-control

character

as

a

trig

enter:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

trigger1=\,1,'1'

 

 

 

/\ Look for Skip-to-Channel 1

 

 

 

trigger2=ð,5ð,'ACCOUNT:'

/\ Find account number

 

 

 

 

 

trigger3=3,75,'PAGE 1'

 

/\ Find page 1

 

 

 

 

 

 

 

In this

example,trigger1

instructs ACIF

to

scan

every

record,

look

for the occurrence'1' inofthe first byte. After ACIF locates

containing the'1', it

looks in the same record,

starting

at

by

the

occurrence of

‘ACCOUNT:’.

If ‘ACCOUNT:’

is

found,

ACIF

look

the

third record

down for

a value of

‘PAGE

1’, starting

at

‘PAGE 1’ is found, ACIF defines the recordtrigger1 containingas the indexing anchor record, and all indexing information is specif

relative

locations relative

from

this

point.

 

If

ACIF

finds

either

‘ACCOUNT:’

or ‘PAGE 1’, ACIF begins scanni

the

first

record

after

the

farthest

field

specified. I

or

‘PAGE

1’

are

not

found

at their

specified

locations rela

trigger1 ,

ACIF begins lookingtrigger1for

again, starting with the next

record

(that is,

the

current

recordtrigger1

+containing1).

Chapter 2. Using ACIF Parameters 47in AIX

Page 67
Image 67
IBM S544-5285-01 manual Instructs Acif Scan Every Record, Looking, ‘Account’, ‘Page