sql loader script runs outsd, but not insd Datastage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
jherr22
Premium Member
Premium Member
Posts: 56
Joined: Mon Jan 29, 2007 3:24 pm
Location: Denver
Contact:

sql loader script runs outsd, but not insd Datastage

Post by jherr22 »

My unix script:
sqlldr user/pswd@dbase control=<path>myfile.ctl data=<path>mydata.dat

I can run this script on unix cmd line and it works fine.
The data is loaded into the Oracle table (identified in the .ctl file)

Then I use an Execute Command stage, calling this same unix script.

In the log "Event Detail" window, it shows successful logical record counts, up to 21077 records.

The next Event Detail log window says <script name> did not finish OK, return = '2'

I then go to Oracle and do a "Select Count(*) ..." and I get 21062 records. So they did not all load.

This is consistent every time I run the stage.
And the from unix, it works w/o error every time.

It is as if DataStage decided to stop the load after 21062 records.

Any ideas?
Thanks
-- john herr
W: 303-977-3955
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What does your ".bad" file show? Anything?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply