I have built a SAS project for a client and they want the end date of the previous month to be automatically input in the list of parameters when they open the program. Is there any way to do that in SAS EG 7.13 HF7 (7.100.3.5524) (32-Bit)?
Kind regards,
Stefan
Pass a parameter by creating a macro variable.
data _null_;
call symput('prev_month_end',put(intnx('month', today(), -1,'e'), date9.)); /*replace date9. format with your required format. */
run;
you have to create stored process with input parameters as you required. Refer to stored process guide
@sfmeier wrote:
I have built a SAS project for a client and they want the end date of the previous month to be automatically input in the list of parameters when they open the program. Is there any way to do that in SAS EG 7.13 HF7 (7.100.3.5524) (32-Bit)?
Kind regards,
Stefan
Depending on exactly how an organization runs you might find that you need to write this, and possibly other, values into a data set. Your project would then begin by reading that data set, when present and setting the appropriate value, again when actually in the data set. Then the ending value would have to be updated in the data set very soon after establishing the value.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.