sqlcode - 1480

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
ds_ram
Participant
Posts: 30
Joined: Fri Apr 06, 2007 6:04 am
Location: Bangalore

sqlcode - 1480

Post by ds_ram »

Hi All,
We are using DS EE 7.5.

We have a parallel job where we are just doing an update on a varachar column. We are getting sqlcode -1480. Even though it has a not null value,
still we are getting the same.
Also I checked my environment variable APT_STRING_PAD_CHAR which is having 0x00.

We used an oracle enterprise stage and in that we tried both automatic update stmt as well as user defined update statement.

Can some one help as it is a show stopper?
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

What is your table name and column name?
richdhan
Premium Member
Premium Member
Posts: 364
Joined: Thu Feb 12, 2004 12:24 am

Post by richdhan »

Hi,

Import the APT_STRING_PAD_CHAR environment variable as job parameter and try to use 0x20 as the parameter value and let us know what happens.

HTH
--Rich
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Any chance the table name you used in the stage is longer than 30 characters?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ds_ram
Participant
Posts: 30
Joined: Fri Apr 06, 2007 6:04 am
Location: Bangalore

Post by ds_ram »

The table name and column are less than 20 characters in length.
We will try this APT_STRING_PAD_CHAR as parameter and let you know.
We tried to hard code value, used parameters and also NULL for the columns. But same issue.

There is no abort or warning. We saw 1480 code using peek.
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

I suspect changing the APT_STRING_PAD_CHAR might work since Oracle thinks an empty string is the same as NULL :roll: ... 0x00 probably gives you the equivalent of an empty string. But a string full of spaces kind of defeats the purpose of having the column defined as varchar2. You might want to consider alllowing NULL in the column or providing a single character default value.

Mike
ds_ram
Participant
Posts: 30
Joined: Fri Apr 06, 2007 6:04 am
Location: Bangalore

Post by ds_ram »

Hello,
We changed that also and still we are getting the same problem. It works only when we use completely hard coded values for the update columns including the where clause. But when we pass the values from transformer stage into the Oracle stage, it is not working.
All we do is update two varchar columns and in where clause we have a numeric and date.
Target database is Oracle.
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

ds_ram wrote:Hello,
We changed that also and still we are getting the same problem. It works only when we use completely hard coded values for the update columns including the where clause. But when we pass the values from transformer stage into the Oracle stage, it is not working.
All we do is update two varchar columns and in where clause we have a numeric and date.
Target database is Oracle.
can you post the query when passing the values from transformer and also 1 or 2 records of the values passed?
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
Post Reply