how to use DB2 function in stage
Moderators: chulett, rschirm, roy
how to use DB2 function in stage
Can I use DB2 function to transform a column in Transformer stage?
Re: how to use DB2 function in stage
Hi,yimwai wrote:Can I use DB2 function to transform a column in Transformer stage?
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
-
- Participant
- Posts: 47
- Joined: Tue Feb 23, 2010 12:16 am
- Location: CHENNAI
Re: how to use DB2 function in stage
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
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
Re: how to use DB2 function in stage
Hi manoj_23sakthimanoj_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
copying my answer is without quoting is NOT the way it works!
Write your own stuff or mark it as quote!
Michael
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.