Page 1 of 1

Regarding Use of ICONV/OCONV Functions in the Parallel Jobs.

Posted: Wed Jul 24, 2013 7:08 pm
by moalik


Hi All,

In many of the date conversions, i have seen the usage of ICONV/OCONV functions as the solutions.

But when i am developing a parallel job, we don't have the option of above Functions in Transformer stage, where as in server jobs we have the same in the transformer as well in the sequence jobs.

Is there any way to implement ICONV/OCONV functions in the parallel jobs in the transformer stage or we need to use a basic transformer to use this function?

Please let me know your views.

Posted: Wed Jul 24, 2013 8:21 pm
by ray.wurlod
You need to use BASIC Transformer stage if you want to use Iconv() or Oconv() functions.

They are simply not available in the parallel Transformer stage, and never will be.

Posted: Wed Jul 24, 2013 10:26 pm
by chulett
You need to learn the Parallel date handling functions, of which there are many. Primarily look into StringToDate() and DateToString() but a quick check of "Appendix B. Parallel Transform functions" in the Parallel Job Developer's Guide should be high on your list as well.

Posted: Wed Jul 24, 2013 11:40 pm
by moalik
Hi Ray/Chulett,

Thanks for the information.
I am really learning most of the things from this forum.

Thanks once again for your time.

Posted: Thu Jul 25, 2013 8:24 am
by arunkumarmm
ray.wurlod wrote:They are simply not available in the parallel Transformer stage, and never will be. ...
Hi Ray, I was hoping to see these functions in parallel transformer one day, just like ereplace made it in 9.1

Is there any particular reason why you mentioned that they will never be available?

Posted: Thu Jul 25, 2013 1:36 pm
by asorrell
The ICONV and OCONV functions converted data to and from a semi-proprietary internal storage format. Though the internal format made some data manipulations easier (like comparing dates), it takes CPU cycles to do the conversions back and forth.

DataStage PX doesn't use that methodology, so it avoids the overhead of the conversions.

Posted: Thu Jul 25, 2013 4:54 pm
by ray.wurlod
To clarify what Andy has written, the engines (server and parallel) use different internal storage mechanisms.

There's nothing to prevent you from creating parallel routines that perform Iconv() or Oconv() functionality, but that would be re-inventing the wheel - in general there are other ways to achieve the same results in parallel jobs.

Posted: Fri Jul 26, 2013 4:25 am
by arunkumarmm
Thanks for the info, Ray & Andy!