Hi,
I need to populate Hex(15) character in file.
ASCII Value for this is -21
Char Value is -NAK
CTRL-char Value - CTRL-U
Expecting comments from you guys.
How to generate Hex(15) in Seq File
Moderators: chulett, rschirm, roy
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can use the function Char(21) to generate this value.
The argument to the Char() function must be a decimal number.
Tip: If you are going to use this a lot, initialize a stage variable (in a Transformer stage) with this function, and do not provide a derivation for that stage variable. This way the function need only to be evaluated once for the entire job run.
The argument to the Char() function must be a decimal number.
Tip: If you are going to use this a lot, initialize a stage variable (in a Transformer stage) with this function, and do not provide a derivation for that stage variable. This way the function need only to be evaluated once for the entire job run.
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.
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Thanks ArndW and ray for your suugestions.
I am able to do now using CHAR(21),initially i also tried CAHR(21) & CHAR(15) but character it generates looks similar until you not open it in Hex Editor.
Solution-use CHAR(DECIMAL of the HEX).
Eg :For HEX(15) use CHAR(21),where 21 is DECIAML value for 15.
I am able to do now using CHAR(21),initially i also tried CAHR(21) & CHAR(15) but character it generates looks similar until you not open it in Hex Editor.
Solution-use CHAR(DECIMAL of the HEX).
Eg :For HEX(15) use CHAR(21),where 21 is DECIAML value for 15.
</a>