How can I assign labels in a PROC PRINT?

Accepted Solution Solved
Reply
Contributor
Posts: 41
Accepted Solution

How can I assign labels in a PROC PRINT?

Hello,

I am trying to assign labels inside a PROC PRINT. Although my code doesn't return an error, it doesn't seem to work What am I doing wrong?

PROC PRINT Data=A NOOBS;

VAR IDNUMBER CLASS STAT SDATE;

FORMAT QDATE DATE7.;

LABEL IDNUMBER='ID No' CLASS='Classification' STAT='Status' SDATE='Date';

RUN;

Regards,

p.


Accepted Solutions
Solution
‎12-22-2012 01:39 PM
Super Contributor
Posts: 1,636

Re: How can I assign labels in a PROC PRINT?

try:

PROC PRINT Data=A NOOBS label;

VAR IDNUMBER CLASS STAT SDATE;

FORMAT QDATE DATE7.;

LABEL IDNUMBER='ID No' CLASS='Classification' STAT='Status' SDATE='Date';

RUN;

View solution in original post


All Replies
Solution
‎12-22-2012 01:39 PM
Super Contributor
Posts: 1,636

Re: How can I assign labels in a PROC PRINT?

try:

PROC PRINT Data=A NOOBS label;

VAR IDNUMBER CLASS STAT SDATE;

FORMAT QDATE DATE7.;

LABEL IDNUMBER='ID No' CLASS='Classification' STAT='Status' SDATE='Date';

RUN;

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 2118 views
  • 0 likes
  • 2 in conversation