BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi!

I created a SAS file on the server but now when I am trying to run this SAS file , it says the query is truncated.
However, if I see the actual SAS file the query is not truncated and looks perfect . Any suggestions to fix this? Given below is the job log
35 rsubmit SAS1;
NOTE: Remote submit to SAS1 commencing.
293 %dbcon(teradata);

DBCON - teradata macrovariable resolves to:
teradata as teradata (user=XXXX password="XXXXXXXX" tdpid=grp2 mode='teradata' )

294 option nosgen nomlogic nosource2 compress=yes;
295 %inc "server name/test.sa_&dt..sas" ;
NOTE: SQL Statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds

NOTE: SQL Statement used (Total process time):
real time 0.43 seconds
cpu time 0.01 seconds

WARNING: Truncated record.
ERROR: Teradata prepare: Syntax error, expected something like an 'ON' keyword between the word 'c'
and ';'. SQL statement was: SELECT A.* FROM USER_WORK.table1 A INNER JOIN USER_work.table2 B ON A.ID = B.ID AND INNER JOIN
user_wrk.table 3 c.

My SAS file has the entire query in a single line? Will this cause truncation?
1 REPLY 1
Doc_Duke
Rhodochrosite | Level 12
Generally yes. We can't tell without the code, but it looks like it might be a pass-through query. In that case the line size limit of teradata is likely to come into play.

You should check the teradata companion for SAS. Message was edited by: Doc@Duke

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!

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