Data Stage Server job- Capturing rejected records

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
ksudhir466
Participant
Posts: 11
Joined: Fri Sep 05, 2008 4:20 am
Location: chennai

Data Stage Server job- Capturing rejected records

Post by ksudhir466 »

Hi,
I am using Sequentuial file stage in server job. I need to capture all the records which are not matched with metadata ( data format such datatype, fixedlength property etc). after capturing all records the job should get abort.
Can anyone pls suggest , Is it possible in server job?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

It is possible to do, but you will need to use a transform stage and write explicit checks on each column since server jobs are not strictly typed as they are in PX jobs.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard.

In addition to what Arnd posted, I would recommend that you create re-usable components (Routines or Transforms) for particular checks.

For example to check for signed integer:

Code: Select all

%Arg1% Matches "1N0N" : @VM : "'-'1N0N" : @VM : "'+'1N0N"
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