From: kasa on
Hi,
I have the following data
data have;
length char $200.;
infile cards dlm= '#';
input num char $;
cards;
1 #body mass index (BMI)can be determined
#by the following calculation:
# Weight (kg)
#BMI= --------------
# [Height (m)]²
;;;;

if I use the proc print the data then it should look like
1 body mass index (BMI)can be determined
by the following calculation:
Weight (kg)
BMI = --------------
[Height (m)]²

Is there a way to insert the solid line in between the weight and
height.
Thanks in advance for any suggestion.
From: Ya Huang on
Try replace '-' with '83'x:

data xx;
infile cards dlm= '#' dsd truncover;
input num char $char80.;
cards;
1 #body mass index (BMI)can be determined
#by the following calculation:
# Weight (kg)
#BMI= --------------
# [Height (m)]?
;;;;

data xx;
set xx;
if char='BMI= --------------' then char='BMI= '||repeat('83'x,13);
run;

proc print;
format char $80.;
run;


On Thu, 18 Feb 2010 12:17:12 -0800, kasa <venkatrkasa(a)GMAIL.COM> wrote:

>Hi,
> I have the following data
>data have;
>length char $200.;
>infile cards dlm= '#';
> input num char $;
> cards;
> 1 #body mass index (BMI)can be determined
> #by the following calculation:
> # Weight (kg)
> #BMI= --------------
> # [Height (m)]?
> ;;;;
>
>if I use the proc print the data then it should look like
>1 body mass index (BMI)can be determined
> by the following calculation:
> Weight (kg)
> BMI = --------------
> [Height (m)]?
>
>Is there a way to insert the solid line in between the weight and
>height.
>Thanks in advance for any suggestion.