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

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.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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