Note 1: These combinations are possible only if a

file

contains a

with

a string that indicates a different code

set than

For

EBCDIC data with

ASCII

newlines,'0320202020200Ause X

'.

 

For

ASCII data with

EBCDIC

newlines,'03404040404025use X

'.

 

ŸFixed-length files

Fixed-length files contain records that are all the same length. separators or prefixes or self-identifying information exists th record length. You must know the record length and use the

FILEFORMAT =RECORD, nnn control statement, nnnwhererepresents the length of each record.

For

variable-

and

fixed-length

files

using

length

prefixes, MO:DCA

struc

are

treated

as

a special case. All such structured fields are se

contain

their

own

length. They

need

not

contain

a length prefix

to b

interpreted, but

will be processed correctly if there is a length

 

 

 

 

 

 

 

 

 

 

Understanding how ANSI

and

machine

carriage controls

are

used

 

 

 

 

In many environments (including IBM mainframes and most minicomputers), printable data normally contains a carriage control character. The carr character acts as a vertical tab command to position the paper at page, at a specified line on the page, or to control skipping to t characters can be one of two types: ANSI carriage control or machin control.

ŸANSI carriage control characters

The most universal carriage control is ANSI, which consists of a character that is a prefix for the print line. The standard are:

ANSI

Command

 

 

 

 

 

 

 

 

space

Single space the line and print

 

0

Double space the line and print

 

-

Triple

space

the

line

and

print

 

+

Don't

space

the

line and print

 

1

Skip

to

channel

1

(the

top

of the

form, by convention)

2-9

Skip to hardware-defined position on the page

A,B,C

Defined

by

a

vertical

tab

record

or FCB

Note

that

all

ANSI control

the line

is

printed. ANSI

(CCTYPE

=A

) or in ASCII CCTYPE(

Ÿ Machine carriage control characters

characters perform the required spac controls may be encoded in EBCDIC

=Z ).

Machine carriage controls were originally the actual hardware co commands for IBM printers, and are often used on non-IBM systems Machine controls are literal values, not symbols. They are not re as characters in any encoding and, therefore, machine controls translated. Typical machine controls are:

Appendix A. Helpful Hints181

Page 201
Image 201
IBM S544-5285-01 manual Carriage controls, Fixed-length files, Understanding how Ansi, Ansi carriage control characters