BookmarkSubscribeRSS Feed
tonywu
Calcite | Level 5

Hi Community,

 

i am writing a macro to extract some data for different months as per below

however i keep receiving error like this? seems to be wrong date format?

ant ideas to tackle this? i have been having difficulties with date format 😞

thanks 

 

tonywu_0-1633926934126.png

 

tonywu_1-1633926952260.png

 

 

1 REPLY 1
Tom
Super User Tom
Super User

If you are using the macro to generate TERADATA code then make sure you are generating valid TERADATA syntax.

%zvps
(month=201909
,date_start=date '2019-09-01'
,date_end=date '2019-09-30'
)

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1 reply
  • 634 views
  • 0 likes
  • 2 in conversation