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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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