Can we use a table name in custom routine

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
mohiddin
Participant
Posts: 5
Joined: Mon Feb 04, 2008 4:11 am
Location: Bangalore

Can we use a table name in custom routine

Post by mohiddin »

I have a requirement to use the table name in the custom routine.If we can use please give me the solution
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

You haven't really explained the problem. Why can't you use the table in a custom server routine?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

"Use" the table name? That's a bit vague.

You can pass the table name as an argument. You can load up the table name into a job parameter or environment variable and interrogate that. You can use a number of system variables, like @USER0. The best approach may even be to have the routine code interrogate the job design to determine the table name.

It really depends on what "use" means in your context.
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