BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Barkat
Pyrite | Level 9

I have created a SAS code to generate automatic weekly report in an ODS Excel file. The file will contain some tables. The titles of those tables are like,

"Table 1. Number of items sold in the most recent week (start date of the recent week to end date of the recent week)"

"Table 2. Number of items sold in the previous week (start date of the previous week to end date of the previous week)"

 

End date of the recent week will be the system date (the date when the SAS code will be run to generate the report).

 

I would like to use some way so, I do not need to change the dates in the titles every week. For example "&SYSDATE"  print the date of running the code.

 

1 ACCEPTED SOLUTION
1 REPLY 1

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 540 views
  • 1 like
  • 2 in conversation