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