data s ;
wishes='happy new year
happy birthday
congrats my baby ' ;
run;
if we run above program it gives record keep in two lines but i want to data keep in three line as we give data data in three line and same
structure one by one line
As I praised in your other thread, I really like that you provide usable example data in the form of data steps.
However, the rest of your question, including the title of your question, makes very little sense to me? Please elaborate and specify what you want your desired result to look like.
SAS character variables hold character strings, not lines. You may have seen your variable represented on two lines in the dataset viewer, but expand the field and you will see that it is realy only one line of text.
If you want separate lines, you must read them as such.
data s;
wishes_1='happy new year';
wishes_2='happy birthday';
wishes_3='congrats my baby';
run;
/* OR */
data s;
wishes='happy new year'; output;
wishes='happy birthday'; output;
wishes='congrats my baby'; output;
run;
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!
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.