Chapter Contents

Previous

Next
CARDIMAGE

CARDIMAGE



Processes SAS source and data lines as 80-byte cards

Valid in: configuration file, SAS invocation, OPTIONS statement, Systems Options window
Category: Input control: Data processing
PROC OPTIONS GROUP= INPUTCONTROL


Syntax
Syntax Description
Examples

Syntax

CARDIMAGE | NOCARDIMAGE

Syntax Description

CARDIMAGE
specifies that SAS source and data lines be processed as if they were punched card images--all exactly 80 bytes long and padded with blanks. That is, column 1 of a line is treated as if it immediately followed column 80 of the previous line. Therefore, tokens can be split across lines. (A token is a character or series of characters that SAS treats as a discrete word. )

Quoted strings (literal tokens) that begin on one line and end on another are treated as if they contained blanks out to column 80 of the first line. Data lines longer than 80 bytes are split into two or more 80-byte lines. Data lines are not truncated regardless of their length.

NOCARDIMAGE
specifies that SAS source and data lines not be treated as if they were 80-byte card images. When NOCARDIMAGE is in effect, the end of a line is always treated as the end of the last token, except for quoted strings. Quoted strings can be split across lines. Other types of tokens cannot be split across lines under any circumstances. Quoted strings that are split across lines are not padded with blanks.

Operating Environment Information:   CARDIMAGE is generally used in the OS/390 and CMS operating environments; NOCARDIMAGE is used in other operating environments.  [cautionend]


Examples

Consider the following DATA step:

data;
   x='A B';
run;

If CARDIMAGE is in effect, the variable X receives a value that consists of 78 characters: the A, 76 blanks, and the B. If NOCARDIMAGE is in effect, the variable X receives a value that consists of two characters: AB, with no intervening blanks.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.