Write failed for Hashed File

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

This is a CHAR(252) character, which internally is a @SM or @SVM reserved character. I don't know why it's generating this message. You do have to deal with this as an issue, though.

Do you have NLS installed?
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
spracht
Participant
Posts: 105
Joined: Tue Apr 15, 2003 11:30 pm
Location: Germany

Post by spracht »

Another workaround is doing the lookup against a uv table. Nevertheless you would not be able to take the field in question as part of the key, because uv tables use the same hashing algorithm. But afterwards you can do the lookup using any columns. For performance reasons, you might consider to create a secondary index.
Kind Regards
Stephan
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I think Stephan's is the wisest course. You can create a UniVerse table with an automatic key as follows (edit the DDL in the UV stage to add the DEFAULT clause on the pkey column):

Code: Select all

CREATE TABLE tablename (
  pkey INTEGER NOT NULL DEFAULT NEXT AVAILABLE,
  col1 VARCHAR,
  col2 VARCHAR, 
  col3 INTEGER,
  col4 VARCHAR,
  col5 VARCHAR);
You can create the index with a regular CREATE INDEX statement:

Code: Select all

CREATE INDEX COL4_IDX ON tablename(col4);
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply