sas - How to determine the length of an array? -


if dont know exact length of array after transpose, there way output it? or use it, without manually looking through output data? example, if transpose on number of pills dispensed, number variable each 'id' , want specify array in regression, there way without finding value via manual visual inspection?

proc phreg data=...; array start{*} start1-start????; i=1 ?????; if  start{i}<t2event var=1; end; model ......... 

as corollary if know less say, 100, , specify 100, there consequence? thanks!

the dim() function returns dimensions of array. can use : suffix make variable list of names start same letters.

 array start{*} start: ;  i=1 dim(start); 

Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -