BookmarkSubscribeRSS Feed
sasuser101
Obsidian | Level 7

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

1 REPLY 1
error_prone
Barite | Level 11

It should be possible to code the questions using shell-commands and call the sas program as final step.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 444 views
  • 0 likes
  • 2 in conversation