I want to create a popup window with message based condition once sas program done on putty.
Write a .bat that runs putty with a script file. See https://stackoverflow.com/questions/39361444/automating-command-script-execution-using-putty for hints. When putty has finished, use the appropriate Windows command to show a message. See hints here: https://stackoverflow.com/questions/12514475/how-can-you-create-pop-up-messages-in-a-batch-script
Thanks for the response....
Actually i need sas code which i will use while running sas macro on putty and once the sas program done...will receive message like done or exit 1...and popup will generate on desktop/laptop after receiving message on putty......
Hope you are getting my points....
SAS macros cannot be run on putty, they are parts of SAS programs. Putty is just a terminal emulator/SSH client that can't run any SAS code.
Please describe in detail what you are trying to do, where SAS programs will run, and where putty comes into play.
eg do you want to use putty from within a SAS program to control actions on another computer, or do you want to use putty from the commandline to run a SAS program on another computer?
We are using putty for command line to run sas program (UNIX command)..and once sas program done, we are receiving massage like done / exit 1....so for the same we will require SAS code which directly popup on desktop screen.....
Also we have sas macro which indicating through email...but my specific requirement is sas code which shows popup once my sas program done on putty...
AFAIK, putty (and other telnet type clients) does not have a mechanism that allows to trigger a pop-up on the client side when something happens on the server. You can only write a .bat that executes a putty with a script (which includes a "exit" command to the server when the SAS batch has finished) and displays a message once putty terminates.
PS I get the notion that you are trying to reinvent the wheel here. Things like that (messages when jobs terminate etc) are best handled by a proper scheduling system. No need to waste brain-cycles on that particular problem, that's been solved for a long time.
Yes..batch file would be the best option to generate popup...thanks for the solution..
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.