Author |
Message
|
6FA |
Posted: Tue Feb 09, 2016 4:11 am Post subject: Parsing |
|
|
Novice
Joined: 08 Jan 2016 Posts: 21
|
Hi Guys,
Could someone plz let me know what are the below values?
1. X'2C2D'
2. X'2C'
Actually I have some esql code as below
BEGIN
DECLARE msgBlob BLOB ;
SET msgBlob = ASBITSTREAM(InputRoot.DFDL CCSID InputRoot.Properties.CodedCharSetId ENCODING InputRoot.Properties.Encoding);
SET msgBlob = REPLACE(msgBlob,X'2C2D',X'2C');
SET OutputRoot.BLOB.BLOB = msgBlob;
END;
Please let me know what are these values and where I can find info on this.
Thanks  |
|
Back to top |
|
 |
maurito |
Posted: Tue Feb 09, 2016 4:33 am Post subject: Re: Parsing |
|
|
Partisan
Joined: 17 Apr 2014 Posts: 358
|
6FA wrote: |
Could someone plz let me know what are the below values?
1. X'2C2D'
2. X'2C'
|
In what CCSID ?
6FA wrote: |
Please let me know what are these values and where I can find info on this.
|
There is plenty of info on internet about Coded Character Set id and encodings. |
|
Back to top |
|
 |
6FA |
Posted: Tue Feb 09, 2016 5:24 am Post subject: |
|
|
Novice
Joined: 08 Jan 2016 Posts: 21
|
Hi
My question is what are these values
1. X'2C2D'
2. X'2C'
In the code it is converting DFDL msg to BLOB and something it replacing. "What is replacing with what"?
I searched in google but I couldn't find anything  |
|
Back to top |
|
 |
maurito |
Posted: Tue Feb 09, 2016 5:28 am Post subject: |
|
|
Partisan
Joined: 17 Apr 2014 Posts: 358
|
6FA wrote: |
Hi
My question is what are these values
( |
Yes, I know what your question was. And mine was:
IN WHAT CCSID ?
If you cannot answer that, then no one will be able to answer your question with certainty. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Feb 09, 2016 6:02 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Those are hex values representing binary numbers.
In order for those binary strings to relate to anything resembling a character, there needs to exist a mapping from that binary string to a character.
Without knowing what mapping is in use, the only meaningful answer is "Those are hex values representing binary numbers".
Perhaps a CCSID is what provides that mapping. Perhaps different CCSIDs map different binary numbers to different characters.
Perhaps your flow is not doing the right thing when it's serializing something to a BLOB.
Perhaps you should allow the DFDL parser to handle all of your serialization. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
timber |
Posted: Tue Feb 09, 2016 8:36 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
Quote: |
Please let me know what are these values and where I can find info on this. |
So you are looking at some code and wondering 'who wrote this, and what were they trying to do?'
You probably know some or all of the following:
- the business purpose of the message flow
- the name of the message flow
- the name of the data format that DFDL is handling
- the name of somebody in your organisation who knows the answers to the above.
Those are useful pieces of information. We do not know these things. You have to tell us. |
|
Back to top |
|
 |
|