Using DataStage Job to Generate Value Files

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
tomengers
Participant
Posts: 167
Joined: Tue Nov 19, 2002 12:20 pm
Location: Key West

Using DataStage Job to Generate Value Files

Post by tomengers »

Hi Folks ...

Before I spend a ton of design time, can anyone tell me whether it is possible to use a DataStage job to generate the contents of a Value File?

I need to email the appropriate user based on the specific (Customer, Invoice, Product, etc.) error found in an earlier DataStage process.

Thanks for your input.

... tom
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

it is possible. use notificaton activity stage .......
Srinu Gadipudi
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Please be more specific about what you mean by a Value File. It's not a term that I understand a single meaning for. In what way do you intend to "generate"? And what has to be generated?

The email part is easy now that the Notification Activity supports attachments.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

Are you talking about value file related to paramter set ?
Nag
tomengers
Participant
Posts: 167
Joined: Tue Nov 19, 2002 12:20 pm
Location: Key West

Post by tomengers »

Sorry ... I was misusing the term Value Set. What I need to do is pass a value from a DataStage shared container to a Sequence.

The DataStage container is a validator - I want to pass a result to a sequence so that the correct email address may be used.

... again thanks.

... tom
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

You can write the records into separate bad files and send each to appropriate team. Thus a team will receive a blank file if there is no record for them to look into.
tomengers
Participant
Posts: 167
Joined: Tue Nov 19, 2002 12:20 pm
Location: Key West

Post by tomengers »

Sainath ... thanks for the response. Can I interrogate the contents of these "bad files" from within the Sequence?

... tom
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Yes. You can call the OS commands to check the file properties and its contents.

You can also have conditional logic based on that.
tomengers
Participant
Posts: 167
Joined: Tue Nov 19, 2002 12:20 pm
Location: Key West

Post by tomengers »

Sainath ...

You say I can write the records into separate bad files and send each to appropriate team.

I don't understand 'bad' file ... how does the sequence access this 'bad' file?

... tom
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

The bad file - in this case - will be your validation results from your shared container.
Post Reply