BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Looks like my SQL where clause is being truncated which causes an error when I run it in SAS. The syntax is correct when checked. Was wondering if there is a max length for the where clause of the proc SQL statement? If so, do you know what it is?
Message was edited by: Suitland at May 5, 2006 2:42 PM
3 REPLIES 3
David_SAS
SAS Employee
Our SQL expert says:

From what I can remember there isn't a max length that PROC SQL sets. However, the forum question didn't say what context that the WHERE clause was being used in. That could make a difference, especially with some of the SAS/ACCESS engines. These engines can actually have varying amounts of space set aside for predicates.

-- David Kelley, SAS
deleted_user
Not applicable
Hi, my WHERE clause consists of a great number of comparison (><,eq) statements, and joining them by AND/OR, and is nested extensively.
David_SAS
SAS Employee
I recommend that you report your problem to Technical Support. See http://support.sas.com/techsup/intro.html .

-- David Kelley, SAS

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2039 views
  • 0 likes
  • 2 in conversation