peng du
peng du

Reputation: 3

How to print the first 10 rows with columns label in SAS

PROC PRINT DATA = pg1.eu_occ obs=10 label;
RUN;

I tried print first 10 observations with their label, but it doesn't work at all. Any idea how to solve this problem?enter image description here

Thanks.

Upvotes: 0

Views: 1106

Answers (1)

Richard
Richard

Reputation: 27508

obs= is a data set option, and thus must be specified in parenthesis after the data set name. A name=value coded into a Proc statement is known as a procedure option.

Your code should be

proc print data=pg1.eu_occ(obs=10) label;
run;

Upvotes: 1

Related Questions