CCTYPE Differences
Question: I am using ACIF to generate an AFPDS file from line data files, created with legacy applications, that use either machine carriage controls or ANSI carriage controls. I know that the carriage control types are similar in their functions, but I would like to know the main differences. What determines when I should select CCTYPE=A, CCTYPE=M, or CCTYPE=Z?
Answer: ANSI carriage control is the most widely used carriage control type and is represented by a single character occurring as the first character of a print record.
ANSI carriage controls:
· SPACE is used for: Single space the line and print
· 0 is used for: Double space the line and print
· - is used for: Triple space the line and print
· + is used for: Don’t space the line and print
· 1 is used for: Skip to channel 1 (Top of Form)
· 2–9 is used for: Skip to a position on the page (usually hardware-defined)
· A,B,C is used for: Defining a vertical tab record or FCB
Note: All ANSI carriage controls perform any defined spacing movement prior to printing the line.
CCTYPE=A is used to interpret ANSI controls in EBCDIC.
CCTYPE=Z is used to interpret ANSI controls in ASCII.
Machine carriage controls:
· X'09' is used for: Print the line and single space
· X'11' is used for: Print the line and double space
· X'19' is used for: Print the line and triple space
· X'01' is used for: Print the line and don’t space
· X'0B' is used for: Space one line immediately
· X'89' is used for: Print the line, then skip to Top of Form
· X'8B' is used for: Skip to Top of Form immediately
Note that machine controls perform printing prior to performing any defined spacing movement.
CCTYPE=M is used to interpret machine controls.
For more information, check out the ACIF reference materials available from IBM at:
http://www-1.ibm.com/support/search.wss?rs=95&lang=all&loc=en_US&r=10&cs=utf-8&rankfile=0&cc=us&spc=&stc=&apar=exclude&dr=all&q1=acif&sort=desc&tc=&Go.x=6&Go.y=5&dc=DA410+DA450&dtm .
and
If you would like some additional information on ACIF, contact COPI at: 1-888-999-COPI or visit www.888999copi.com