SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
milts
Pyrite | Level 9

I have a dataset extracted from a SQL table which contains nvarchar(max) fields. My DBMAX_TEXT is set to 32000 and bulkload for the libname is set to YES.

 

When I writeback to another SQL table, I get the error "Invalid field size for datatype".

 

I actually saw an old post asking a similar question but seems left unanswered.

 

https://communities.sas.com/t5/General-SAS-Programming/How-to-load-large-text-fields-into-SQL-Server...

 

Appreciate any resolution into this issue.

 

Thanks!

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

Do you get no error if DBMAX_TEXT=8000 but you get an error with 8001, as implied in the other post?

 

 

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!

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