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 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 1261 views
  • 0 likes
  • 2 in conversation