BookmarkSubscribeRSS Feed
cmajorros
Calcite | Level 5

Dear All

My workplace has just upgraded SAS Version from EG 4.1 to EG 5.1.  Many functions are changed  and I have some question about using parameter in Advance filter.

Basically, when we compute a column such as finding duration of  Birth date to Specific date. It can be done by  INTCK("DAY" ,t1.Birth_date , &Selected_Date) . It was work in EG 4.1, but not for EG 5.1

I have tried  this INTCK("DAY", t1,Birth_date, "&Selected_Date"d) , It works well.   I think we have to add the tag at the end of parameter right?  In this case it is "d" because it is date format. Therefore,

Is there any Ideas about the syntax of using parameter?

If the  parameter types are not date, but they are numeric or character, what are the correct syntax? I dont think they are "&Parameter_Name"n  in case it is numeric type or "&Parameter_Name"s for string or character type. Is there any topic talking about this?

Moreover, I still have a question about generated code when I add parameter in simple Filter the program generate (%_eg_WhereParam( t1.B_Date, Start, EQ, TYPE=D, IS_EXPLICIT=0 ) .The box "Generate filter for a prompt Value (only applied a prompt type)”  is automatically selected. When I unchecked it, the syntax of parameter was change to &Start instead, but it still shown an error due to incorrect of syntax,  Is there any topics talking about the meaning of this? I really need fully explanation about this. This will be helpful. I have talk to my consultant, but this issue is still unsolved.

Hope this will be clarified soon. 

Thanks for your kindness in advance

1 REPLY 1
cmajorros
Calcite | Level 5

I have already got the answer. Thanks

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