how to use DB2 function in stage

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
yimwai
Participant
Posts: 46
Joined: Thu Jul 01, 2010 9:34 pm

how to use DB2 function in stage

Post by yimwai »

Can I use DB2 function to transform a column in Transformer stage?
MT
Premium Member
Premium Member
Posts: 198
Joined: Fri Mar 09, 2007 3:51 am

Re: how to use DB2 function in stage

Post by MT »

yimwai wrote:Can I use DB2 function to transform a column in Transformer stage?
Hi,

no DB2 functions are SQL and the Transformer uses C-Code (or Basic if it is a Basic--Transformer).

Use your DB2 stage for SQL stuff or a stored procedure (separate stage)...

If you describe a little more what your problem is you will get better (more detailed) help though

kind regards
Michael
manoj_23sakthi
Participant
Posts: 47
Joined: Tue Feb 23, 2010 12:16 am
Location: CHENNAI

Re: how to use DB2 function in stage

Post by manoj_23sakthi »

Hi,

no DB2 functions are SQL and the Transformer uses C-Code (or Basic if it is a Basic--Transformer).

U can use stored procedure or u hve to write routine to obtain this

Regards
Manoj
MT
Premium Member
Premium Member
Posts: 198
Joined: Fri Mar 09, 2007 3:51 am

Re: how to use DB2 function in stage

Post by MT »

manoj_23sakthi wrote:Hi,

no DB2 functions are SQL and the Transformer uses C-Code (or Basic if it is a Basic--Transformer).

U can use stored procedure or u hve to write routine to obtain this

Regards
Manoj
Hi manoj_23sakthi

copying my answer is without quoting is NOT the way it works!
Write your own stuff or mark it as quote!

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

Post by ray.wurlod »

You can use DB2 functions in DataStage in the same way you use it in any other client - within a SELECT statement. This implies that the stage type is a DB2 or ODBC stage of some kind.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

What function are you interested in. Maybe we can help you achieve that without the use of db2 functions.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sounds more like DDL than DML. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply