Formatting VarChar in EBCDIC for Parallel Jobs

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
saragaul
Participant
Posts: 3
Joined: Wed Apr 30, 2008 4:30 pm

Formatting VarChar in EBCDIC for Parallel Jobs

Post by saragaul »

In Server Jobs we used the OCONV function to format a VarChar length into a binary number.

Is there a function in DataStage to format a Number into a Binary Number inside a parallel transformer? How would you code a VarChar field with a length of 500?
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard.

There are explicit conversion functions in parallel jobs, such as StringToDecimal() or StringToFloat(). I doubt that any of these has the ability to handle a 500-digit number without loss of precision, however.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
saragaul
Participant
Posts: 3
Joined: Wed Apr 30, 2008 4:30 pm

Post by saragaul »

Would creating an additional two character fields to hold the length of the field work and then find the length of the field and populate the length field by converting the length to hex?
Post Reply