BookmarkSubscribeRSS Feed
rogerjdeangelis
Barite | Level 11

Interesting post on stackoverlow. I can't post on stackoverflow so here it is with my answer.

 

http://stackoverflow.com/questions/38099663/user-interface-in-sas

 

I want to build an user interface on SAS for logistic regression in which we provide the data - or upload the data with the variables and the dependent variable and it gives an output which gives us the Regression table and a few other desire metrices.

What should be the most efficient way of doing this? Does SAS have such a provision of doing it?

 

No need to upload the data to the server?

 

%MACRO YESNO/DES="Simple Yes/No interative window" ;                                                                                     
                                                                                                                                        
  %window CHOOSE color=white irow=4 rows=25                                                                                             
                                                                                                                                        
     #4 @12 "DO YOU WANT A REPORT ON THE CLASS DATSET?"                                                                                 
     #5 @12  choice 1 attr=underline  @14 "(YN)"                                                                                        
    ;                                                                                                                                   
                                                                                                                                        
    %DISPLAY CHOOSE;                                                                                                                    
                                                                                                                                        
    %IF &CHOICE=Y %THEN %DO;                                                                                                            
      proc print data=sashelp.class;                                                                                                    
    run;                                                                                                                                
 %END;                                                                                                                                  
                                                                                                                                        
%MEND YESNO;                                                                                                                            
                                                                                                                                        
%yesno;                                                                                                                                 
run;                                                                                                                                    
              
4 REPLIES 4
SASKiwi
PROC Star

Please note this solution will only work on PCs using the SAS Windowing System aka Display Manager. It won't work in any other SAS interface like SAS EG (prompts could be used here instead) and SAS Studio.

Reeza
Super User

Instead of building your own I'd recommend SAS EG or SAS Studio.

 

SAS Studio also allows you to build custom tasks so that's probably the route I'd recommend these days. It's a powerful option/feature. Since SAS UE is based on SAS Studio it's also easily available to learn to anyone.

 

 

Ksharp
Super User

Roger,

If you want build a customize UI for SAS, You need IOM (intelligent platform),that is another framework. So you can write it by Java or C# .

I don't know if SAS Viya can do it .

rogerjdeangelis
Barite | Level 11

Hi Team

 

I am a novice at sophisticated UIs.

 

  I like to think in terms of a local UI and and a remote web based UI. Some very simple single user UIs can built when you have full SAS on the local machine, using 'html', pmenu, %window and window. I have even built colorfull large buttons, sort of like a poor mans dashboard using the simple windowing functions in full local SAS.  The local UI tends to be more powerful because it can leverage the server resources via SAS connect (PuTty SSH), the reverse is more difficult.

 

For Web based server work  I like to use SAS 'html' and open source javascript libraries like 'overlib' along with SAS intranet and other interesting specialized open source libraries like the MIT dygraph package. SAS proc stream is also interesting.

SAS intranet(CGI)  just because it is easy and predates others.

 

You can even do all your web development using apache products like xamp with localhost. Port to the server later.

 

With so much volatility, I fear spending my time on a loser,  .NET,  SAS stored processes, Rshiny, Django, NODE.js, C#, SOAP,  Python, JAVA+Javascript, SAS metadata this and metadata that, IOM(which seems to MS)

 

What will the winning combination look like?

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
  • 4 replies
  • 1044 views
  • 0 likes
  • 4 in conversation