Fields in AFP Records
When working with fields in AFP records, note the following:
- When you extract a field from an AFP record, the field will end when a new AFP command is reached or the maximum length is reached (whichever comes first). So, for example, if you are picking up the text within a PTX record, the field will end when the next AFP command occurs or when the length of the field is reached.
- The length indicators on the AFP record will automatically be adjusted when a field replace is used to change the contents of a record.
- Normally, the text contents of PTX records are in EBCDIC (and are associated with an EBCDIC code page). When AFP streams are created on the PC or UNIX system, these records may contain ASCII data (because they are associated with ASCII code pages). You should use the <TYPE> tag charset parameter to specify this case.