BookmarkSubscribeRSS Feed
SASHunter
Obsidian | Level 7
Hi,

I am using SAS/CONNECT to log on to our LInux machine. I am using SAS 9.2.

I have the following code after a signon attempt to the UNIX machine:


**** Check the error conditon of the SIGNON command;
%macro checkit;
%if &syserr=0 %then %do;
%put SIGNON fine! Continue processing!;
%end;
%else %do;
%put >>>ERROR: SIGNON failed - RC=&syserr;
%put >>> Please check above for ERROR Description;
%ABORT;
%end;
%mend checkit;

%checkit;

So what I want the program to do is to stop at the %ABORT, but not terminate SAS.

There is more data steps after the checkit macro so when I type in a wrong password it prints out the ERROR that I have for the put statements, but it continues trying to do the rest of the data steps, etc. If I put in ABORT ABEND it totally shuts down SAS.

How do I print out the ERROR and abort but also keep my PC SAS up so I can view the log?

Thanks, Nancy
1 REPLY 1
ChrisNZ
Tourmaline | Level 20
Yep, same old gap in the sas toolbox.

See http://support.sas.com/kb/24/825.html for a dodgy workaround.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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