Chapter Contents

Previous

Next
The DATASETS Procedure

INFORMAT Statement


Permanently assigns, changes, and removes variable informats in the data set specified in the MODIFY statement.

Restriction: Must appear in a MODIFY RUN group
Featured in: Modifying SAS Data Sets


INFORMAT variable-list-1 <informat-1>
<...variable-list-n <informat-n>>;


Required Arguments

variable-list
specifies one or more variables whose informats you want to assign, change, or remove. If you want to disassociate an informat with a variable, list the variable last in the list with no informat following. For example:
    informat a b 2. x1-x3 4.1 c;


Options

informat
specifies an informat for the variables immediately preceding it in the statement. If you do not specify an informat, the INFORMAT statement removes any existing informats for the variables in variable-list.

Note:    You can use shortcut methods for specifying variables, such as the keywords _NUMERIC, _CHARACTER_, and _ALL_. See Shortcuts for Specifying Lists of Variable Names for more information.  [cautionend]


Chapter Contents

Previous

Next

Top of Page

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