Hi, I need Carriage Return help please.
I'm running a SAS program that puts data into an Excel Template. I query a SQL table, use RETAIN, and then LABEL the data. All of this works as intended and has for years. What I need now is to get this one particular LABEL to incorporate a Carriage Return so the words in parenthesis "(Display)" are put on the second line of the Excel Cell.
Section of Current Code:
LABEL HEDIS_COLON_GAP ='Colorectal Cancer Screening (Display)' ;
I tried this but it didn't work:
LABEL HEDIS_COLON_GAP ='Colorectal Cancer Screening' ||'0D'x || '(Display)' ;
Thanks,
Mike
The label statement is not like the assignment statement, but it does have an implied concatenation.
37 data test;
38 HEDIS_COLON_GAP=1;
39 LABEL HEDIS_COLON_GAP ='Colorectal Cancer Screening' '0D'x '(Display)';
40 label=vlabel(HEDIS_COLON_GAP);
41 put label=$hex60.;
42 run;
label=436F6C6F72656374616C2043616E6365722053637265656E696E67200D20
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.