LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2008, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 30 Apr 2008 10:54:09 -0700
Reply-To:   Wing9897@HOTMAIL.COM
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Wing9897@HOTMAIL.COM
Organization:   http://groups.google.com
Subject:   Printing Carriage Returns
Comments:   To: sas-l@uga.edu
Content-Type:   text/plain; charset=ISO-8859-1

Hello,

I would like to print a variable that contains 2 carriage returns and have it actually execute the carriage returns so that there are 3 lines for that 1 observation. How can this be accomplished? Thanks.

data test;

line1= 'line1'; line2= 'line2'; line3= 'line3';

text= cat(line1,'0D0A'x,line2,'0D0A'x,line3,'0D0A'x);

run;

proc print data=test; run;


Back to: Top of message | Previous page | Main SAS-L page