BookmarkSubscribeRSS Feed
Rohit12
Obsidian | Level 7

Can we create prompts in SAS 9.4 as we do in SAS enetrprise guide 

7 REPLIES 7
Reeza
Super User

SAS 9.4 is a version, while SAS EG is a tool to access SAS. 

SAS EG can use SAS 9.4. 

 

Are you referring to SAS Studio? Or Base SAS? 

Rohit12
Obsidian | Level 7

I am refering to base SAS . I need to create prompts in SAS 9.4 tool 

Reeza
Super User

SAS 9.4 doesn't have prompts the same way EG does. You can look at %Windows for Base SAS. There is a multitude of papers on lexjansen.com with sample code. 

Cynthia_sas
SAS Super FREQ
Hi:
Typically, if you are creating stored processes, with the intent of using the Prompting interface, then any macro variables you use in your program can be defined as prompts when you register the stored process. However, the Display Manager interface does not have a way to define prompts. The Enterprise Guide interface allows you to define prompts that can be used through the entire project and EG also has the prompting interface as an interface layer on top of SAS. Once you have defined your prompts in EG (based on macro variables), then if/when you create a stored process from that project, your prompt is automatically carried over to the stored process.

The bottom line answer to your question is that SAS Display Manager does not have a prompting interface like EG. But you can still use Macro variables in your code. You just can't prompt users for the values when you run the program without using some other interface, such as SAS/AF or the %WINDOW facility.

cynthia
LinusH
Tourmaline | Level 20
DMS (Display Manager System) or in everyday language Base SAS (UI) is no longer developed, so I would recommend not to develop any UI on top of it.
Data never sleeps
mnjtrana
Pyrite | Level 9

Hey,

 

you can use %window macro to interact with the user, through the window prompt.

 

you can see below paper for more example.

 

http://www2.sas.com/proceedings/sugi27/p192-27.pdf


Cheers from India!

Manjeet
Cynthia_sas
SAS Super FREQ
But typically %WINDOW will not work with EG installations. So if the developer has SAS DMS, but the end users have EG, then %WINDOW might not be the best choice.

cynthia

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 7 replies
  • 1927 views
  • 2 likes
  • 5 in conversation