Help using Base SAS procedures

separating character and numeric obs.

Reply
N/A
Posts: 0

separating character and numeric obs.

data test;
input name$;
cards;
test1895tested
gen256general
main416516556tened
run;

now i wnat to move the charater and numeric variables in ot two variables

output
char num
testtested 1895
gengenereal 256
maintened 416516556
SAS Employee
Posts: 160

Re: separating character and numeric obs.

data two;
set test;
char = compress(name,,'d');;
num = compress(name,,'dk');;
run;
Ask a Question
Discussion stats
  • 1 reply
  • 105 views
  • 0 likes
  • 2 in conversation