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

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 3773 views
  • 3 likes
  • 7 in conversation