Ÿ

index5=X'C481A3854ðC4A485',field5

 

 

 

 

X'C481A3854ðC4A485' is

‘Date Due’, the 5th index attribute

 

field5

maps

to field5the

index

value,

which is:

 

 

-

4

lines

down

from

the

indexing

anchor

record, 60 columns across

 

 

 

12 bytes in

length

 

 

 

The

result

of using

these

indexing parameters is that the first pag

the

ACIF

output

file

will

contain

indexing tags

for each of the five

attributes. Using Workbench Viewer, customer service representatives single customer bill in the ACIF document using any combination of the attributes.

Using the Shell with

EBCDIC

Literal

Values

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Literal

values

usedfieldin , indexthe , andtrigger

parameters

must

be

expressed

 

in hexadecimal

strings when the

input

data

is

anything other

than

ASCI

the

input

data for

this

example is

EBCDIC,

hexadecimal

strings

are r

must

be

entered if you specify your

parameters

 

within

a

parameter

parameters

arenot specified

in

a

parameter

file,

you

can

use

AIX

com

as axeb

oriconv )

to convert

ASCII

literal values

into

EBCDIC

literal

values

example,

to convert the ASCII literal

‘Name’,

for

theindex22nd), index

attri

do

the

following:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1. Create

a

shell

environment

variable

to

hold

the

EBCDIC

literal

 

 

ŸTo do this using theaxeb AIXcommand, enter: attr2=$(echo -n "Name" axeb)

ŸTo do this using theiconv AIXcommand, enter:

attr2=$(echo -n "Name" iconv -fIBM-85ð -tIBM-ð37)

2. Then, on the command line or in a shell script, specify the 2nd by entering:

index2="'$attr2'",field2

Note: This example is for use with the Korn Shell (ksh). If you a different shell, refer to the documentation for the shell y AIX for RISC System/6000 Commands Reference

By using this method to convert the ASCII literals to the EBCDIC lite mistakes are made when converting the literals to a hexadecimal strin

Identifying

the Locations

of

the

Resources

 

 

 

 

 

To

build

 

the

resource

file, ACIF must

know where to

find

the resour

 

the

job.

In

the example, the following

directories

are

defined:

 

fdeflib

 

Form definition directorie/usr/res/fdeflib1:/usr/res/fdeflib2,

 

 

 

fontlib

Font

directories,/usr/res/fontlib1:/usr/res/fontlib2

 

 

 

ovlylib

Overlay directories,/usr/res/ovlylib1:/usr/res/ovlylib2

 

 

 

pdeflib

 

Page

definition

directories,/usr/res/pdeflib1:/usr/res/pdeflib2

 

 

pseglib

Page segment, BCOCA (barcode), GOCA (graphics), IOCA (IO image

 

 

directories,/usr/res/pseglib1:/usr/res/pseglib2

 

 

 

Chapter 3. Example of an ACIF Application61in AIX

Page 81
Image 81
IBM S544-5285-01 manual Values, Literal, Must, As axeb Oriconv