abhishekdagarit
9/22/2017 - 12:34 PM

Special cases

Special cases

Special cases

Maximum number of decimal places

proc print data=work.temp maxdec=2;
run;

labels in SAS

Rules for labels

1.Cant perform operations with lables.

  1. Its only for display.
  2. But it changes the dataset properties.

Defining single lables

proc print data=work.test;
label  salary='annual salary`;
run;

Defining multiple labels

proc print data=work.test;
label salary=`annual salary`;
      rating=`new rating`;
run;

Printing labels

proc print data=work.test;
label x=`new x`;
run;
proc print data=work.test;
var x;
run;

This will throw an error as you can not print or operate on labels. They are only for display.

page size

options ps=10;

list size

options ls=10;

Using page size or list size

options ps=10;
options ls=10;
proc print data=work.test;
run;