🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 04-03-2017 08:06 AM
(11530 views)
Just want to know why the report created using code below could not display label names without _? Anyone can help? Thanks.
PROC PRINT DATA=MYDATA
BY BRANCH_CODE BRANCH_NAME;
ID BRANCH_CODE BRANCH_NAME;
SUM BRANCH_PROFIT;
LABEL BRANCH_CODE="BRANCH CODE";
LABEL BRANCH_NAME="BRANCH NAME";
LABEL BRANCH_PROFIT="BRANCH PROFIT";
FORMAT BRANCH_PROFIT DOLLAR16.2;
RUN;
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
Please read the PROC PRINT documentation, when you have a LABEL statement in your code, you need to tell PROC PRINT to USE the LABEL with the LABEL option in your PROC PRINT statement:
proc print data=mydata label;
or
proc print data=mydata split='_';
Either the LABEL or the SPLIT option tells PROC PRINT to use the LABEL for the data.
cynthia
Please read the PROC PRINT documentation, when you have a LABEL statement in your code, you need to tell PROC PRINT to USE the LABEL with the LABEL option in your PROC PRINT statement:
proc print data=mydata label;
or
proc print data=mydata split='_';
Either the LABEL or the SPLIT option tells PROC PRINT to use the LABEL for the data.
cynthia
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
Please read the PROC PRINT documentation, when you have a LABEL statement in your code, you need to tell PROC PRINT to USE the LABEL with the LABEL option in your PROC PRINT statement:
proc print data=mydata label;
or
proc print data=mydata split='_';
Either the LABEL or the SPLIT option tells PROC PRINT to use the LABEL for the data.
cynthia
Please read the PROC PRINT documentation, when you have a LABEL statement in your code, you need to tell PROC PRINT to USE the LABEL with the LABEL option in your PROC PRINT statement:
proc print data=mydata label;
or
proc print data=mydata split='_';
Either the LABEL or the SPLIT option tells PROC PRINT to use the LABEL for the data.
cynthia