How to Pass values from a table to Parameters?

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
sasikiran
Participant
Posts: 17
Joined: Wed Dec 14, 2005 3:20 am
Location: Australia
Contact:

How to Pass values from a table to Parameters?

Post by sasikiran »

Hi,

We are working on Datastage7.5.1. We have a senario where we have to get the values for parameters from a table.

InDetail:

We have to parameterize the Sourcefile FolderPath, path is stored in one table(tablename :parameters column:Sourcefilepath).


How can we do this? Please help us out.

Thanks for Reply
SasiKiran
sb_akarmarkar
Participant
Posts: 232
Joined: Fri Sep 30, 2005 4:52 am
Contact:

Post by sb_akarmarkar »

Kiran,

Create 2 jobs call one job from another in transformer by passing agrument filename and Foldername.....


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

Post by ray.wurlod »

You have to get the parameter value from the table. That's one job, that has to store the value somewhere accessible, such as its user status area.

The second job has to be passed two values decoded from that pathname. You could use Field() functions, or FinalDelimitedString() routine - search the Forum - or, ideally, a routine that invokes the !GET.PATHNAME subroutine so that the decoding is platform-agnostic. You can pass the directory path and entryname back as a dynamic array or through user-definable system variables such as @USER1 and @USER2.

The job sequence then uses these results to supply values to the parameters in the second Job activity.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I land them into a hashed file just like this post viewtopic.php?t=105239
Mamu Kim
Post Reply