Unsigned BigInt Out_format,right justify (write to seq file)
Moderators: chulett, rschirm, roy
Unsigned BigInt Out_format,right justify (write to seq file)
Been trying the whole day. (things like %llu, %Lu, %20u etc...) No luck. It always ends up left justified. And it doesn't make any difference if I don't specify the Out_format at all.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
What are you trying to accomplish? These samples are strings, not BigInt. Therefore they will be left-justified. Please provide more detail of your job design, and any transformation expressions you may be using.
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.
I'm trying to write an unsigned BigInt column to a sequential file (fixed width)
The column comes out from a Modify stage where it is converted from decimal(38,0) (I know, possible range limitation) to uint64 using "uint64_from_decimal". I have also tried implicit conversion inside a transformer.
If I change it to an ordinary integer (unsigned 32 bit) it works fine with "%10u" format specified. And it comes out right justified. It's only that this type is too small. So I need uint64.
What do you mean by "These samples are strings"?
The column comes out from a Modify stage where it is converted from decimal(38,0) (I know, possible range limitation) to uint64 using "uint64_from_decimal". I have also tried implicit conversion inside a transformer.
If I change it to an ordinary integer (unsigned 32 bit) it works fine with "%10u" format specified. And it comes out right justified. It's only that this type is too small. So I need uint64.
What do you mean by "These samples are strings"?
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: