Hi i have sas code abc.sas i want to ask person executing code couple of questions under UNIX Command line before SAS goes ahead and executes the code.
Example of scenario
Lets say person is executing code under UNIX environment
sas abc.sas -noterminal &
(questions before executing code)
Have you checked database table refresh time(Y/N) ?
if answer is Y then execute
if answer is N then quit with custom message "Please check refresh time and try again"
Thanks
It should be possible to code the questions using shell-commands and call the sas program as final step.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.