How to assign a output column to an Environmental variable a

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
Vignesh Shanmugam
Participant
Posts: 10
Joined: Mon Feb 22, 2010 1:58 am
Location: Chennai

How to assign a output column to an Environmental variable a

Post by Vignesh Shanmugam »

Hi all,

I have requirement in which.I have to assign the output count of a query to a variable and have the same included in the Body of Email notification stage.

(E.g).

1).select count(*) as COUNT from xxxx

2).This Output "COUNT" has to be assigned to some variable say "ENV_Variable"

3).This "ENV_Variable" has to be assigned to the Email body of Email notification.

How can this be achieved.Please give your inputs on this.

Thanks In advance.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I don't think this is possible using DataStage, but it would indeed be possible using a script.
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