Editting Null field export parameter on Reject Links

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
adscot
Participant
Posts: 12
Joined: Mon Oct 13, 2003 3:04 am
Location: London

Editting Null field export parameter on Reject Links

Post by adscot »

Hello,

I am seeing the following error messaged on rejects link :

Code: Select all

Insert_Rejects: When checking operator: When validating export schema: At field "DT_ADDED": "null_field" length (1) must match field's fixed width (19)
I cannot see a direct way to change the null_field length for individual fields on reject links (you can set it at the file level but not for individual fields). One way around this is to change these fields to be varchar but the extra level of complexity is that the initial information is coming from a nullable date field in an Oracle table so that I have to import it as a timestamp (which then seems to insist on exporting as a char(19)).

Any ideas?

Cheers,

Adrian
bigpoppa
Participant
Posts: 190
Joined: Fri Feb 28, 2003 11:39 am

Editing Null field export parameter on Reject Links

Post by bigpoppa »

Is this for a sequential file export?
-BP
Teej
Participant
Posts: 677
Joined: Fri Aug 08, 2003 9:26 am
Location: USA

Re: Editting Null field export parameter on Reject Links

Post by Teej »

adscot wrote:Hello,

I am seeing the following error messaged on rejects link :

Code: Select all

Insert_Rejects: When checking operator: When validating export schema: At field "DT_ADDED": "null_field" length (1) must match field's fixed width (19)
If it is a database field - Make it Varchar (or something equivalent to this).

If it is a flat file, use the function Space(19).

-T.J.
Developer of DataStage Parallel Engine (Orchestrate).
adscot
Participant
Posts: 12
Joined: Mon Oct 13, 2003 3:04 am
Location: London

Re: Editing Null field export parameter on Reject Links

Post by adscot »

bigpoppa wrote:Is this for a sequential file export?
-BP
Yes it is a sequential file export but it is a reject file...
adscot
Participant
Posts: 12
Joined: Mon Oct 13, 2003 3:04 am
Location: London

Re: Editting Null field export parameter on Reject Links

Post by adscot »

Teej wrote:
If it is a database field - Make it Varchar (or something equivalent to this).

If it is a flat file, use the function Space(19).

-T.J.
The problem is that you can't set field level attributes on a reject file.

:(
1stpoint
Participant
Posts: 165
Joined: Thu Nov 13, 2003 2:10 pm
Contact:

Date Fields/Null

Post by 1stpoint »

If this is a sequential file just change the metadata type to varchar instead of timestamp. Actually you shouldn't bet getting this error since null dates are valid.
Teej
Participant
Posts: 677
Joined: Fri Aug 08, 2003 9:26 am
Location: USA

Re: Editting Null field export parameter on Reject Links

Post by Teej »

adscot wrote:The problem is that you can't set field level attributes on a reject file.
I was referring to doing this BEFORE the flat file output in a Transform Stage. This way, your records will NOT be rejected for that particular reason.

-T.J.
Developer of DataStage Parallel Engine (Orchestrate).
adscot
Participant
Posts: 12
Joined: Mon Oct 13, 2003 3:04 am
Location: London

Re: Editting Null field export parameter on Reject Links

Post by adscot »

Teej wrote:
adscot wrote:The problem is that you can't set field level attributes on a reject file.
I was referring to doing this BEFORE the flat file output in a Transform Stage. This way, your records will NOT be rejected for that particular reason.

-T.J.
Ah ha I understand - sorry me being a bit slow. I can put a transform on the reject link prior to the output to resolve the output issues

Cheer,

Adrian
Teej
Participant
Posts: 677
Joined: Fri Aug 08, 2003 9:26 am
Location: USA

Re: Editting Null field export parameter on Reject Links

Post by Teej »

adscot wrote:Ah ha I understand - sorry me being a bit slow. I can put a transform on the reject link prior to the output to resolve the output issues
Let us know of the results in applying my suggestion.

Thanks!

-T.J.
Developer of DataStage Parallel Engine (Orchestrate).
Post Reply