DATA Step, Macro, Functions and more

Adding Carriage return during data step

Reply
Regular Contributor
Posts: 243

Adding Carriage return during data step

Hi All,

Is there a way to add a carriage return during data step? I want to concatenate two variable and the concatenated value should appear like below.

 

 

data test;
A = "First Line";
B = "Second Line";
run;

 

Output

      A                     B                 C

First Line    Second Line    First Line

                                           Second Line

 

Super User
Posts: 22,850

Re: Adding Carriage return during data step

What output destination are you using and how are you reporting your data?

 

ie XLSX via ODS EXCEL using PROC REPORT

ie PDF via ODS PDF using PROC TABULATE

 

 

Ask a Question
Discussion stats
  • 1 reply
  • 106 views
  • 0 likes
  • 2 in conversation