UNIX SAS macro - generate popup once sas program done

Reply
New Contributor
Posts: 4

UNIX SAS macro - generate popup once sas program done

[ Edited ]

I want to create a popup window with message based condition once sas program done on putty.

Super User
Posts: 9,924

Re: UNIX SAS macro - generate popup once sas program done

Posted in reply to MonishShah

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

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
New Contributor
Posts: 4

Re: UNIX SAS macro - generate popup once sas program done

[ Edited ]
Posted in reply to KurtBremser

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....

Super User
Posts: 9,924

Re: UNIX SAS macro - generate popup once sas program done

Posted in reply to MonishShah

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?

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
New Contributor
Posts: 4

Re: UNIX SAS macro - generate popup once sas program done

Posted in reply to KurtBremser

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...

Super User
Posts: 9,924

Re: UNIX SAS macro - generate popup once sas program done

Posted in reply to MonishShah

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.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Super User
Posts: 9,924

Re: UNIX SAS macro - generate popup once sas program done

Posted in reply to MonishShah

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.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
New Contributor
Posts: 4

Re: UNIX SAS macro - generate popup once sas program done

Posted in reply to KurtBremser

Yes..batch file would be the best option to generate popup...thanks for the solution..

Ask a Question
Discussion stats
  • 7 replies
  • 123 views
  • 0 likes
  • 2 in conversation