BookmarkSubscribeRSS Feed
RonTrimnell
Calcite | Level 5


We're trying to bulk load Netezza data using the SAS/ACCESS interface.  We've found one problem we can't resolve.  If the date in a data source is 12/31/9999, the value gets treated as null and loads into Netezza as a Null.  We want the actual date.  We added the BL_DATAFILE option to keep the datafile.  SAS is stripping out the date field.  Does anyone know if there is some way to get the date to pass through without getting changed?

4 REPLIES 4
TomKari
Onyx | Level 15

From a quick look at Netezza doc'n, it appears that 12/31/9999 is the maximum date value allowed in Netezza.


It looks like you're trying to do something legal. If it were me, I'd try a quick test of copying a small table from SAS to Netezza with date values 12/30/9999 and 12/31/9999, not using bulk load. They should both be loaded successfully. If they aren't, open a case with Tech Support.


If they both load successfully, maybe try loading the same small table, using bulk load?


These inter-product transfers can be tricky, but once they're resolved they usually work well.


Tom

SASKiwi
PROC Star

What is the data source and what is the column type of the date in the source?

It sounds like a data translation problem as SAS can store 31 Dec 9999 OK:

data _null_;

date = '31dec9999'd;

  format date date9.;

  put date = ;

run;

gra_in_aus
Quartz | Level 8

Try formatting the date to be datetime25.6 (from memory).  I have tried in the past creating tables in Netezza using SAS kept getting the same sort of issues. When I used the datetime format it resolved.

LinusH
Tourmaline | Level 20

You are sure that yo are trying to fill a DATE column in Netezza?

What format do have on that column in SAS?

Data never sleeps

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 4 replies
  • 1685 views
  • 0 likes
  • 5 in conversation