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'
)

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

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
  • 665 views
  • 0 likes
  • 2 in conversation