DATA Step, Macro, Functions and more

id variable in arrays?

Reply
Occasional Contributor mj5
Occasional Contributor
Posts: 18

id variable in arrays?

proc transpose data=_adds out=_trans(drop=_name_ _label_) ;
      by studyid usubjid;
     id paramcd;
     var aval;
run;

if i dont know how many values are there in paramcd how can i assign arrays to transfer?

Any suggestions

Super User
Super User
Posts: 9,842

Re: id variable in arrays?

What does this mean: "if i dont know how many values are there in paramcd how can i assign arrays to transfer?"

 

Secondly, if you have an ADaM dataset = ADDS, why do you need to transpose it at all?  Almost all functions should work on the ADaM domain as given, both efficiently and simply, so why make it all harder by transposing?

Ask a Question
Discussion stats
  • 1 reply
  • 103 views
  • 0 likes
  • 2 in conversation