Re: Segmentation error: was: SAS Error Message

Short answer: this probably is not a problem with SAS.

Segmentation errors usually arise when there is a bug in the program.

Have you run the shell script from an interactive session to verify it

Are you either writing the shell script, or writing a parameter file for
the shell script from within your SAS session?  If so, look again at the
syntax of the created script or inclusion file.

Usually, these errors occur where array references are out of bounds or
use pointers that are corrupt or uninitialised.

Modifying your shell script with a series of PrintF() statements will
help you diagnose how for the program is working before it crashes, and
let you verify key variables.

You can also use a debugger such as dbx.

If I had a strong hunch, it would be that you are building a script or
inclusion file in SAS, it includes content that you are resolving from
SAS macro references, and you have an unresolved macro reference that is
porting an ampersand before a variable name that is not available in the
shell script.  Once again, reviewing carefully the content of the script
or inclusion, and running it from an interactive host session will
identify the problem.

Kind regards


The Moving Finger writes; and, having writ,
Moves on: nor all your Piety nor Wit
Shall lure it back to cancel half a Line,
Nor all your Tears wash out a Word of it

Omar Khayyam (trans: Edward Fitzgerald)

-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Bruce Allen
Sent: Friday, 23 March 2007 7:13 AM
Subject: SAS Error Message

Has anyone ever seen the below error?  It's a crazy Segmentation Fault
error that I get in the log when trying to execute a shell script from
SAS.  The actual log is at the bottom.  We can't seem to figure it out.
I'm running SAS for windows version 9.

I am getting the error when I run the following code:

x '/users/apps/ssg1/data_archive/green_net/run_ftp.sh';


REMOTE(WFSAS): /users/apps/ssg1/data_archive/green_net/appr_comm_ftp.sh:
401836 Segmentation


Thanks in advance...

************** IMPORTANT MESSAGE *****************************
This e-mail message is intended only for the addressee(s) and contains information which may be
If you are not the intended recipient please advise the sender by return email, do not use or
disclose the contents, and delete the message and any attachments from your system. Unless
specifically indicated, this email does not constitute formal advice or commitment by the sender
or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries.
We can be contacted through our web site: commbank.com.au.
If you no longer wish to receive commercial electronic messages from us, please reply to this
e-mail by typing Unsubscribe in the subject line.
3/22/2007 11:54:06 PM
comp.soft-sys.sas 142828 articles. 3 followers. Post Follow

0 Replies

Similar Articles

[PageSpeed] 38