Tag Archives: error

Did You Know?

Did You Know? »

SAS Proc Contents option
Proc Contents that will arrange the output variable list in the order the variables appear in the dataset as opposed to arranging the variables alphabetically

Proc contents data=<dsn> varnum;
Run;

  • POSITION option

proc contents position data=;
run;

proc contents data=mysasdata POSITION;

  • VARNUM option

Use the VARNUM option:

proc contents data=mysasdata VARNUM;

Advertisements

Did You Know?

Did You Know? »

SAS has several features that you could use for error trapping and data validation:

  • Conditional statements, if then else.
  • Put statement.
  • Debug option.

Source: 5 Types of Errors in SAS Programs