BookmarkSubscribeRSS Feed
steph_
Fluorite | Level 6

Hello!

 

I am trying to run a code that pulls in a large amount of data from a macros statement. It's not working and I keep getting these errors

 

ERROR: CLI prepare error: Unable to retrieve error message. SQL statement: SELECT * FROM....

 

Any suggestion of how to fix this? My understanding of SAS is limited so basic language would be appreciated.

 

Thanks!

4 REPLIES 4
Reeza
Super User
Yeah, we can't help with what you've posted here either.
Please post more of the code and log.

When running macros, make sure to use the debugging options:

options mprint symbolgen;

steph_
Fluorite | Level 6

Do you know what that specific error code generally means?

 

I did use options mprint symbolgen;

Reeza
Super User
It means your SQL isn't valid typically. Since you show nothing else, I can't really guess why beyond that.
Patrick
Opal | Level 21

Add the following options on the top of the code, run it and then share the SAS log with us (please as an attachment and not just copy/past into the body of the conversation).

Before attaching the log: Make sure you browse over it and remove anything confidential/internal from it.

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1069 views
  • 0 likes
  • 3 in conversation