Determining how literal values are expressed
The way literal values in the input file are defined in ACIF parameters depends on whether the input file contains ASCII or EBCDIC data. If the input file is in ASCII, the literal values in the FIELDn, INDEXn, and TRIGGERn parameters can be expressed in character data strings. For example, Example of an AIX parameter file for ASCII input data shows part of an AIX parameter file for ASCII input data. The CCTYPE parameter value matches the type of data in the input file, in this case ASCII. The CPGID parameter indicates a code page for the type of data in the input file. The FIELDn, INDEXn, and TRIGGERn parameters are expressed in character data strings because the input file is ASCII and the operating system is AIX.
Example of an AIX parameter file for ASCII input data
/* Example phone bill */ /* DATA CHARACTERISTICS*/ CC=yes /* Carriage control used */ CCTYPE=z /* ASCII ANSI carriage controls */ CHARS=42B2 /* Coded font */ CPGID=850 /* Code page identifier */ /* FIELD AND INDEX DEFINITION*/ FIELD1=13,66,15 /* Account Number data field */ FIELD2=0,50,30 /* Name data field */ FIELD3=1,50,30 /* Address data field */ FIELD4=2,50,30 /* City, State, ZIP data field */ FIELD5='1' /* Date Due data field */ INDEX1='Account Number',FIELD1 /* 1st index attr */ INDEX2='Name',FIELD2 /* 2nd index attr */ INDEX3='Address',FIELD3 /* 3rd index attr */ INDEX4='City, State, ZIP',FIELD4 /* 4th index attr */ INDEX5='Date Due',FIELD5 /* 5th index attr */ /* EXIT AND TRIGGER INFORMATION*/ TRIGGER1=*,1,'1' /* 1st trigger */ TRIGGER2=13,50,'ACCOUNT NUMBER' /* 2nd trigger */
If the input data file is in EBCDIC, the literal values in the FIELDn, INDEXn, and TRIGGERn parameters must be expressed in hexadecimal strings. For example, Example of an AIX parameter file for EBCDIC input data shows part of an AIX parameter file for EBCDIC input data. The CCTYPE parameter value matches the type of data in the input file, in this case EBCDIC. The CPGID parameter indicates a code page for the type of data in the input file. The FIELDn, INDEXn, and TRIGGERn parameters are expressed in hexadecimal strings because the input file is EBCDIC and the operating system is AIX.
Example of an AIX parameter file for EBCDIC input data
/* Example phone bill */ /* DATA CHARACTERISTICS*/ CC=yes /* Carriage control used */ CCTYPE=a /* EBCDIC ANSI carriage controls */ CHARS=GT15 /* Coded font */ CPGID=037 /* Code page identifier */ /* FIELD AND INDEX DEFINITION*/ FIELD1=13,66,15 /* Account Number data field */ FIELD2=0,50,30 /* Name data field */ FIELD3=1,50,30 /* Address data field */ FIELD4=2,50,30 /* City, State, ZIP data field */ FIELD5=X'0001' /* Date Due data field */ INDEX1=X'C1838396A495A340D5A494828599',FIELD1 /* 1st index attr (Account Number) */ INDEX2=X'D5819485',FIELD2 /* 2nd index attr (Name) */ INDEX3=X'C184849985A2A2',FIELD3 /* 3rd index attr (Address) */ INDEX4=X'C389A3A86B40E2A381A3856B40E98997',FIELD4 /* 4th index attr (City, State, ZIP) */ INDEX5=X'C481A38540C4A485',FIELD5 /* 5th index attr (Date Due) */ /* EXIT AND TRIGGER INFORMATION*/ TRIGGER1=*,1,X'F1' /* 1st trigger (1) */ TRIGGER2=13,50,X'C1C3C3D6E4D5E340D5E4D4C2C5D9' /* 2nd trigger (ACCOUNT NUMBER) */