|
When I run your code (using v. 9), I get all missing values. Why? Because
the compiler makes TEXT a numeric variable by default, so the alphabetic
values are all invalid. Of course, SASKSTITTEL values are also missing,
because it is never initialized.
Perhaps there was a dollar sign after "text" in the INPUT statement. Then
the result I get is
This
life
l
I can't come up with plausible code which will generate your results (that
is, step over the embedded blanks in your first line but fail to do so in
your third line).
On Sat, 8 Nov 2003 13:52:42 -0800, Rune Runnestoe <rune@FASTLANE.NO> wrote:
>When I run the following code in the SAS editor:
>
>data my_life;
> length sakstittel $20;
> input text;
> cards;
>This is my life
>life
>l i f e
>;
>run;
>
>I get
>text
>------
>This is my life
>life
>l
>
>How do I get "l i f e" instead of just "l" ?
>
>
>Regards
>Rune Runnestoe
|