SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

Error while loading data into ORACLE form SAS DI

Reply
Frequent Contributor
Posts: 77

Error while loading data into ORACLE form SAS DI

Hello All,

 

I am facing problem while loading data into Oracle database using SCD Type 2 in SAS DI.

But I got error

 

"Variable ***** has different lengths on BASE  and DATA files ( Base 512 DATA 128) 

 

I searched on past error but I cant solve this error also I tried Force option and used some options.

But dint get any solution.

 

If anyone has solution for this then please Help me out.

 

Thank you,

 

Super User
Posts: 9,873

Re: Error while loading data into ORACLE form SAS DI

Posted in reply to india2016

Specify the correct length of 512 for this variable in your newly created dataset (which is appended to the existing table, as this is a WARNING from PROC APPEND).

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Respected Advisor
Posts: 4,668

Re: Error while loading data into ORACLE form SAS DI

[ Edited ]
Posted in reply to india2016

@india2016

That the length difference between the variable in the base and the data table is exactly of factor 4 makes me think that you might have a problem with "byte semantics".

 

Below 4 libname options - defined as part of the libname metadata definition - are what was required in an actual project to make it work. What's right for you depends on your environment but below should give you a good start.

DBCLIENT_MAX_BYTES=1 
ADJUST_BYTE_SEMANTIC_COLUMN_LENGTHS=NO 
ADJUST_NCHAR_COLUMN_LENGTHS=NO 
DBSERVER_MAX_BYTES=1 

Another option worth considering:

UTILCONN_TRANSIENT=YES

And if you're using bulk loading then it's also worth to explicitly define some of the bulk load options, especially BL_DEFAULT_DIR

BL_DEFAULT_DIR='/data/saswork/BulkloadTemp/'

 

Ask a Question
Discussion stats
  • 2 replies
  • 179 views
  • 0 likes
  • 3 in conversation