DATA Step, Macro, Functions and more

Prompts in Base 9.4 (DMS)?

Reply
Contributor
Posts: 35

Prompts in Base 9.4 (DMS)?

[ Edited ]

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

Super User
Posts: 17,784

Re: SAS 9.4

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? 

Contributor
Posts: 35

Re: SAS 9.4

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

Super User
Posts: 17,784

Re: SAS 9.4

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. 

SAS Super FREQ
Posts: 8,742

Re: SAS 9.4

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
Super User
Posts: 5,255

Re: SAS 9.4

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
Contributor
Posts: 52

Re: Prompts in Base 9.4 (DMS)?

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
SAS Super FREQ
Posts: 8,742

Re: Prompts in Base 9.4 (DMS)?

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
Ask a Question
Discussion stats
  • 7 replies
  • 295 views
  • 2 likes
  • 5 in conversation