LINEOFFSET
Determines if ANSI carriage-control characters are used to calculate the record offsets when determining the location of the fields. Only the 0 (space two lines) and the dash (space three lines) are supported. The + (overstrike) character is not supported.
ACIF interprets the ANSI carriage control and then rewrites the input data as if it were printed using the "0" or "-" carriage controls. The index values must then relate to the newly formatted input file.
Platforms: Windows, AIX, (HP,SUN), and Linux
Required parm: No
Default Value: ASREAD
Data Type: AFP, Line
Parameters
- LINEOFFSET=value
-
Options and values
The values can be:
- ASREAD
- ANSI carriage controls are not used to calculate the record offsets for the fields. The offsets are relative to the lines as they are read from the load file.
- The indexing parameters to collect the account number and name are:
- ASPRINTED
- ANSI carriage controls are used to calculate the record offsets for the fields. The offsets are relative to the line spacing that occurs when the lines are printed.
Examples of LINEOFFSET:
1REPORT -ACCOUNT 777777 0JOHN SMITH
Note: The first character is an ANSI carriage control.
Using ASREAD
The indexing parameters to collect the account number and name would be as follows:
- TRIGGER1=*,1,'REPORT'
- Search all (*) records, starting at column 1, look for "REPORT"=anchor record
- FIELD1=1,10,6
- Use information from record anchor +1, in column 10, for 6 bytes = 7777777
- FIELD2=2,2,10
- Use information from record anchor +2, in col 2, for 10 bytes = JOHN SMITH
Using ASPRINTED
The indexing parameters to collect the account number and name are:
- TRIGGER1=*,1,'REPORT'
- Sets anchor record where "REPORT" is found.
- FIELD1=1,10,6
- Use information from record anchor +1, in col 10, for 6 bytes = 7777777
- FIELD2=2,2,10
- Use information from record anchor +2, in col 2, for 10 bytes = JOHN SMITH