Passing Substring of Parameter into Table Name

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
grb_garre
Participant
Posts: 17
Joined: Wed Jan 19, 2005 10:49 pm

Passing Substring of Parameter into Table Name

Post by grb_garre »

Hi,

Jobs are writing the Data into a Table /Extracting Data from table
Actual requirement i want to pass table name as dynamic.
Table Name is substring of one of the job parametre

Example :
Parameter Values have like ABC_XYZ
How can i pass 'ABC' as Table Name?


Can anybody share the ideas ?

Thanks in Advance
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
then you'll have to have a job parameter for that table name to be parsed outside the job in a squence job's routine activity and passing it as a parameter to the job or similar.

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Exactly. Since you have no opportunity to manipulate the value of the parameter in the job before it must be used in the stage, then you must do that outside the job and pass in the substringed result ready to use.
-craig

"You can never have too many knives" -- Logan Nine Fingers
grb_garre
Participant
Posts: 17
Joined: Wed Jan 19, 2005 10:49 pm

Post by grb_garre »

roy wrote:Hi,
then you'll have to have a job parameter for that table name to be parsed outside the job in a squence job's routine activity and passing it as a parameter to the job or similar.

IHTH,

Thanks a lot roy ..will try it
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Define the job with 2 parameter. Use them as concatenated when you want the full parameter and use partial for table names.
Post Reply