Greetings, I have a data step that calculates the maximum number of days. Then I use this code works perfectly and capture that value to be used in an array: data _null_; set have; call symput("xbarmac",max_number); run; %put &xbarmac; The Problem: I can't figure out how to use the value to replace the 3200 in the array below. The max number captured for example is 3562, I would like to replace the 3200 string with 3562. Before data want(drop=day366-day3200); set have; array daydummy(*) day1-day3200; end; run; After data want(drop=day366-day3562); set have; array daydummy(*) day1-day3562; end; run; I would like to use some sas code to programmatically find the 3200 and replace it with whatever the max_number. Regards
... View more