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
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.