🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

When importing excel files how do I prevent truncation of columns?

User: "Nico Chart_21517"
Altair Employee
Updated by Nico Chart_21517

Issue:

When importing Excel files on Windows when the following WARNING is given

"WARNING: Truncating column COMMENTS to DBMAX_TEXT(1024)".

Solution:

You can change the dbmax_text value using the DBLIBOPTS statement of PROC IMPORT, for example:


PROC IMPORT
DATAFILE="demo.xlsx"
OUT=test
DBMS=EXCEL2007
REPLACE;
SHEET="customers";
GETNAMES=YES;
DBLIBOPTS="DBMAX_TEXT=4096";
RUN;

Find more posts tagged with

Comments

No comments on this post.