BookmarkSubscribeRSS Feed
LineMoon
Lapis Lazuli | Level 10

Hello expert,

I would like to get from you

- the avantage of prompt on sas EG

- the disavantages of prompt on sas EG

Thank you

3 REPLIES 3
LinusH
Tourmaline | Level 20
According to what? What is your requirement?
Data never sleeps
ballardw
Super User

I'm going to make a general observation that may help.

Since a Prompt is user entered text the advantage is that the user gets to enter what he wants (he thinks) and can be flexible.

 

The disadvantages are all related to how and what is entered that is not expected. You may expect a single value such as 2, the users enter multiple values such as1 2 3 or attempt to enter a range "1 to 3" or "1 - 3". Or the value should be numeric but users enter $45 (they think it is numeric but the $ isn't expected) or entering words. There are many permutations of this behavior.

 

So who ever writes the program code needs to add either constraints on what can be entered or check the values after entering for validity. Then provide nice feedback about the values entered don't work.

LinusH
Tourmaline | Level 20
I just want to add that prompts are of different types. Wich means that basic validation can take place, like selecting a date from a calendar, of chose from a predefined set of valid values.
Data never sleeps

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 3 replies
  • 1291 views
  • 0 likes
  • 3 in conversation