My requirement is to insert the hex char
which is in ASCII looking like ' Í '.
i want to insert it by update sql but i am not getting the correct values updated .
please provide solutions help.
currently iam using
SET COLUMN_NAME = OX'05000C'
but it is not giving correct values.
When i hex on and write the 05000C' in the provided place i getting the correct value
You can convert the hex values to ASCII values using the editor.
Before going to convert the values into ASCII, you have to convert it to HEX. For converting the value into HEX, you can use the function HEX(Column name) in SQL or you can use a calculator available in the PC. For every EBCDIC character there should be two HEX representation. But you have shown only 3.
35C. Perhaps you may be using the decimal value 112 and 860.
Then go to the editor. Open your dataset ie. your SQL for updation.
Type HEX ON on the command prompt.
There you can see the conversion of your char into EBCDIC.
UPDATE T1 SET C1=234 will be converted as follows
Here you want to change the value 234 to ASCII value. For that convert 234 into hex and overtype the HEX value of 234(EA) in the place of F2.
Then change the mode, HEX OFF. You can see the conversion of HEX into ASCII value that you have modified.