BookmarkSubscribeRSS Feed
Davoz7
Calcite | Level 5

I would like the following to happen:

When I run my SAS project, I want to see a pop-up where I can fill in a reference date, a start date and an end date. And I want those three values to occur in a table like this:

 

   REF                BEGIN           END

1 01/02/2018     02/02/2018     20/02/2018

 

Is this possible?

 

I made three tables with all dates between 1996 and today on which I used my prompt but I don't think this the right way...

 

Thanks in advance

 

 

 

1 REPLY 1
Kurt_Bremser
Super User

Create the three prompts as data prompts, and use a data step like this:

data want;
ref = "&ref"d;
begin = "&begin"d;
end = "&end"d;
format ref begin end ddmmyy10.;
run;

The prompts need to be named ref, begin and end, respectively.

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