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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 650 views
  • 0 likes
  • 2 in conversation