Saturday, 7 September 2013

SAS Numbered Range Variable Lists with Character Variables and Column input

SAS Numbered Range Variable Lists with Character Variables and Column input

I am trying to use a Numbered Range Variable List with character values
and column input.
Data question;
input ques1 $ 1 ques2 $ 2 ques3 $ 3 ques4 $ 4 ques5 $ 5;
datalines;
ABCDE
AACCE
BBBBB
CABDA
DDAAC
CABBB
EEBBB
ACACA
;
How can I re-write that input line in the form of a variable list
input ques1-ques5;
And specify both the columns and characters $?
Thanks!

No comments:

Post a Comment