Setting a variable in a job to dynamically set filename

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
MT
Premium Member
Premium Member
Posts: 198
Joined: Fri Mar 09, 2007 3:51 am

Setting a variable in a job to dynamically set filename

Post by MT »

Hi,

is there an option to set a variable (i.e. environment variable) within a job based on a certain logic to be used as a filename in an (output) FTP stage?

I got some logic on which I would like to decide wether Environment variable var1 oder var2 should be used as filename of the output stage.
The aim is to be able to set the output filename dynamically based on some logic.

It is important to do it in a single job and not in a sequence!

Thanks in advance
MT
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

1.) Do it via the sequencer
2.) Write in a common file and move to the name in after-job activity
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

1.) Do it via the sequencer
2.) Write in a common file and move to the name in after-job activity
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Within a job? No.
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