Posted: Wed Jun 04, 2003 7:17 am Post subject: XML to MRM-CWF (BLOB to Character)
Newbie
Joined: 30 May 2003 Posts: 2
I have a cobol PIC X(10) field which contains packed data. When I convert that to XML I used the following cast
SET CHAR_ID = cast(InputBody.MRM.CHAR_ID as BLOB ccsid 500).
This produced the following result.
<CHR_ID>11200210241607600078</CHR_ID>
To convert it back to PIC X(10) from XML I am trying something like this.
SET OutputRoot.MRM.CHR_ID =
cast(InputRoot.XML.CHR_ID as CHARACTER ccsid 500 encoding 785);
Can anyone help me how can do this conversion back to PIC X(10) field?
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
The cast command does not work when converting BLOB to CHAR.
I had faced the same problem while working on S390 - NT platforms.
So then I had used the CREATE command.
But I was using BLOB to XML conversion and the parameters on the Create allowed me to do that.
If someone else has other solutions I'll be more than happy for their input.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum