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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 298 views
  • 0 likes
  • 2 in conversation