01-22-2016 03:29 AM
There are no structure objects in SAS tables or in the SAS data step language. SAS programming is less procedural like C, but more database-like.
If you need to group variables, you might take a look at macro variables.
%let struct_a = var_1 var_2 var3; proc sort data=whatever; by &struct_a; run;
01-22-2016 11:47 AM
01-22-2016 07:02 PM
I agree with @LinusH . It may be better if you could post a little bit of example start data, the desired output and business rules involved.
You may be more familiar with C but many of the approaches C users might propose are 1) almost "unnatural" for SAS and 2) may well not take advantage of SAS features.
My favorite example for comparing with other languages similar to C: You have a data set with a largish number of records and about 1000 numerical variables that you want to calculate mean, min, max, number of non-missing values. How many lines of code would you estimate to accomplish that in C?
SAS: Proc means dataset=setname; run;