Hello,
I am using the attrib, label, length, format and informat statement to create a data model
Is there a way to get the label in two lines
ex: Written Premium - Previous Year
for Written Premium
Previous Year
Here's the basic code
The split did not work
libname temp %sysfunc(quote(%sysfunc(pathname(work))));
data temp.model ;
attrib GENRE label="Genre" length=8 format=8. informat=8.
TYPE3 label="Type3" length=8 format=8. informat=8.
WP label="Written Premium" length=8 format=8. informat=8.
SEMOSPC label="Written Premium ||'0D'x|| Previous Year" length=8 format=8. informat=8.
;
run
@alepage wrote:
I was looking for a solution with sas dataset
Since there is no concept of "lines" in the label of a variable you can just use whatever character you want to indicate the location of the logic split into "lines". You might use | or / or * for example.
You might want to pick one that works with other procedures. Such as the SPLIT= option of PROC PRINT.
It is because, sometime the dataset label is to long. Ex: Written Premium - Previous Year.
I would prefer to get:
Witten Premium
Previous Year
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.