Using

a Parameter

File

with

ASCII

Input

Data

 

 

 

 

 

 

A

parameter

file

created

for

use

with

ASCII input data is shown in

 

use a

parameter

file,

you

specify

the

parameteracif commandfile name with the

 

parmdd

parameter.

For

example,

to use a

parameterPARMFILEfile,specify:named

 

 

acif parmdd=PARMFILE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

/\ example phone bill \/

 

 

 

 

 

/\ DATA CHARACTERISTICS

 

 

 

\/

 

 

 

cc=yes

 

 

 

 

/\ carriage control used \/

 

 

 

cctype=z

 

 

 

/\ ASCII ANSI carriage controls \/

 

 

chars=42B2

 

 

 

/\ coded font \/

 

 

 

 

cpgid=85ð

 

 

 

/\ code page identifier \/

 

 

 

 

 

/\ FIELD AND INDEX DEFINITION

 

 

\/

 

 

 

field1=13,66,15

 

 

 

/\ Account Number data field \/

 

 

field2=ð,5ð,3ð

 

 

 

/\ Name data field \/

 

 

 

 

field3=1,5ð,3ð

 

 

 

/\ Address data field \/

 

 

 

field4=2,5ð,3ð

 

 

 

/\ City, State, Zip data field \/

 

 

field5=4,6ð,12

 

 

 

/\ Date Due data field \/

 

 

 

index1='Account Number',field1

 

 

/\ 1st index attribute \/

 

 

 

index2='Name',field2

 

 

 

/\ 2nd index attribute \/

 

 

 

index3='Address',field3

 

 

 

/\ 3rd index attribute \/

 

 

 

index4='City, State, Zip',field4

 

 

/\ 4th index attribute \/

 

 

 

index5='Date Due',field5

 

 

 

/\ 5th index attribute \/

 

 

 

 

 

/\ INDEXING INFORMATION

 

 

 

\/

 

 

 

indexobj=all

 

 

 

/\ index object file entries \/

 

 

formdef=F1A1ð11ð

/\ RESOURCE INFORMATION

/\ formdef name \/

\/

 

 

 

 

 

 

 

 

 

 

pagedef=P1Að8682

 

 

 

/\ pagedef name \/

 

 

 

 

fdeflib=/usr/res/fdeflib1:/usr/res/fdeflib2

/\ formdef directories \/

 

 

 

fontlib=/usr/res/fontlib1:/usr/res/fontlib2

/\ font directories \/

 

 

 

ovlylib=/usr/res/ovlylib1:/usr/res/ovlylib2

/\ overlay directories \/

 

 

 

pdeflib=/usr/res/pdeflib1:/usr/res/pdeflib2

/\ pagedef directories \/

 

 

 

pseglib=/usr/res/pseglib1:/usr/res/pseglib2

/\ pseg directories \/

 

 

 

resobjdd=RESDATA

 

 

 

/\ resource file name \/

 

 

 

restype=fdef,pseg,ovly

 

 

 

/\ resource type selection \/

 

 

 

indexdd=INDXOBJ

/\ FILE INFORMATION

/\ index file name \/

\/

 

 

 

 

 

 

 

 

 

 

inputdd=/usr/data/INFILE

 

 

 

/\ input path & file name \/

 

 

 

outputdd=OUTDOC

 

 

 

/\ output file name \/

 

 

 

msgdd=acif.msg

 

 

 

/\ error message file name \/

 

 

 

 

 

/\ EXIT AND TRIGGER INFORMATION

 

 

\/

 

 

 

trigger1=\,1,'1'

 

 

 

/\ 1st trigger \/

 

 

 

 

trigger2=13,5ð,'ACCOUNT NUMBER'

 

 

/\ 2nd trigger \/

 

 

 

 

 

 

 

 

 

 

Figure

12. Example of a Parameter File for ASCII Input Data

 

 

 

 

The example uses the following data values as the indexing attributes:

ŸAccount Number

ŸName

ŸAddress

Ÿ City, State, Zip

ŸDate Due

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

To generate these indexing attributes,trigger1specifyparameterhe first, because ACIF always scans for the datatrigger1specifiedfirst.in Because the data contains carriage control characters, including a carriage control charac indicate a new page, request that ACIF locate the start of a page

56 ACIF User’s Guide

Page 76
Image 76
IBM S544-5285-01 manual File With, Parmdd, Example of a Parameter File for Ascii Input Data