Hi Guys
I have a question
user open SAS application who gets a message
Ex:User Name +Welcome
Alfred Welcome to SAS
A google search for "base sas splash screen" gave me this as second hit, which led me to this
and this
As you can see, information is just a Google search away (Maxim 6).
From the SPLASHLOC documentation, I take it that you would need to create a separate bitmap for each user and determine in the configuration files from the system User-ID which one to take. Not very practical.
In Display Manager sessions (desktop SAS) you can use Proc GROOVY to directly access the power and gamut of Java, which includes Swing components for message dialogs.
proc groovy; submit; import javax.swing.JOptionPane; JOptionPane.showMessageDialog( null, "Hello there " + System.getProperty("user.name"), "Welcome to SAS", JOptionPane.INFORMATION_MESSAGE ); endsubmit; quit;
Will pop up the dialog window
Other SAS clients:
The dialog will be modal and block the SAS session until the OK button is clicked, or the dialog is closed. The dialog might be on a second screen or behind the SAS window -- if Windows, does the dialog appear in your Alt-Tab process list ?
How are you starting SAS ?
What does the LOG window show ?
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.
Ready to level-up your skills? Choose your own adventure.