BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
PhilC
Rhodochrosite | Level 12

@PeterClemmensen wrote:

Like the other responders, I am unsure what you actually want to do and what fails.

 

The subject title however leads my mind to the implicit array, which can be created using other arrays. See a small example below.

 

data _null_;
   array a a1-a5;
   array b b1-b5;
   array ab a b;
run;

This is interesting to me, but I could not get the above code to work like I expected it to.  I found this on SASnrd.

 

data d;
   array a (i) a1-a5  (1:5);
   array b (i) b1-b5  (6:10);
   array ab a b;
 
   do over ab;
      do i=1 to 5;
         put ab=;
      end;
   end;
run;

Implicit Vs Explicit Array Explained in SAS - SASnrd

 

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 15 replies
  • 3631 views
  • 3 likes
  • 7 in conversation