View previous topic :: View next topic
|
Author |
Message |
ranjithmainframe
New User
Joined: 21 Jan 2008 Posts: 39 Location: chennai
|
|
|
|
Hi,
Can you please explain -
The EIB informaton - EIBFN that contains a code to identify the last CICS command issued by the task. It is given as 2 byte code, then how the 4 bytes codes "0402" for RECEIVE and "0404" for SEND commands are stored. Please explain.
Regards,
Ranjith |
|
Back to top |
|
|
Raghu navaikulam
Active User
Joined: 27 Sep 2008 Posts: 193 Location: chennai
|
|
|
|
Hi Ranjith
The code which is displayed is HEXADECIMAL format, not in DECIMAL format. In the display it is X'0402' not 0402. Here X denote that the number is in HEXADECIMAL format. The DECIMAL value is 42 for X'0402'.
So it is satisfying the 2 byte length.
Hope this will help you
Regards
Raghu |
|
Back to top |
|
|
ranjithmainframe
New User
Joined: 21 Jan 2008 Posts: 39 Location: chennai
|
|
|
|
Ragu..Thanks for your claifiication.. |
|
Back to top |
|
|
Raghu navaikulam
Active User
Joined: 27 Sep 2008 Posts: 193 Location: chennai
|
|
|
|
You are Welcome
Raghu |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
0402" for RECEIVE and "0404" for SEND commands are stored
these values are stored in a 2byte binary field. (Pretty basic stuff). |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
The DECIMAL value is 42 for X'0402'. |
I'm not sure what this means -- the decimal value for 42 is 42 the last I heard. If the hex value is 42, the decimal equivalent is 66 (4 times 16 + 2) -- but that's not what was stated. And all of this is totally irrelevant to the original value posted of x'0402' -- the zero between the 4 and 2 is significant and changes the decimal value of the hexadecimal field since x'42' and x'402' are very different. |
|
Back to top |
|
|
Raghu navaikulam
Active User
Joined: 27 Sep 2008 Posts: 193 Location: chennai
|
|
|
|
Hi Robert Sample, Earl Haigh, enrico-sorichetti
I over looked the matter. That is my mistake. Thanks for your replay.
Regards
Raghu
Hi ranjithmainframe
Sorry for giving you a false information form my side. Since the value is given in X'0404', the conversion should be taken in the power of 16.
So tha decimal value of X'0404' is calculated as 0 * 16**3 + 4 * 16**2 + 0 * 16** 1 + 4 * 16**0 = 1028.
Regards
Raghu |
|
Back to top |
|
|
|