BookmarkSubscribeRSS Feed
JDMTX
Fluorite | Level 6
Can someone adivse how to implement a date range prompt via a filter in the query builder interface in EG 4.3? I understand how to use prompts in open code but it is not clear how the date range prompt macro variables of _MIN and _MAX should be setup via the filter setup screen. Any help would be greatly appreciated.

jdm
2 REPLIES 2
tomrvincent
Rhodochrosite | Level 12

I'm trying to do this as well.  QB adds a where clause like this:

 

WHERE %_eg_WhereParam( t1.CLCL_PAID_DT, Paid_Dates, EQ, TYPE=D, IS_EXPLICIT=0 );

 

but I haven't gotten it to work and it doesn't show Paid_Date_Min or _Max as available prompts.

 

I might have to get rid of the date range macro variable or add a redundant begin_paid_dt and end_paid_dt.

 

 

tomrvincent
Rhodochrosite | Level 12

I solved it!

 

use a 'between range' and you can use a date range macro variable.

 

it'll generate this filter:  WHERE %_eg_WhereParam( t1.CLCL_PAID_DT, Paid_Dates, BETWEEN, TYPE=D, IS_EXPLICIT=0 );

 

here's a video to explain it.  https://www.youtube.com/watch?v=zgk3lJzcIPo

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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