IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

EIBFN - Clarifcation


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ranjithmainframe

New User


Joined: 21 Jan 2008
Posts: 39
Location: chennai

PostPosted: Fri Aug 21, 2009 1:40 pm
Reply with quote

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
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Fri Aug 21, 2009 1:51 pm
Reply with quote

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
View user's profile Send private message
ranjithmainframe

New User


Joined: 21 Jan 2008
Posts: 39
Location: chennai

PostPosted: Fri Aug 21, 2009 1:58 pm
Reply with quote

Ragu..Thanks for your claifiication..
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Fri Aug 21, 2009 2:05 pm
Reply with quote

You are Welcome

Raghu
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Aug 21, 2009 5:57 pm
Reply with quote

Quote:
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'.


Quote:
Thanks for your claifiication..


too bad that the clarification is completely wrong icon_biggrin.gif

the decimal value for x'0402' is 1026 icon_cool.gif

for the EIBFN values see
publib.boulder.ibm.com/infocenter/txformp/v5r1/index.jsp?topic=/com.ibm.txseries510.doc/erzhai09.htm
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Sat Aug 22, 2009 6:04 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Aug 22, 2009 7:39 am
Reply with quote

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
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Mon Aug 24, 2009 1:42 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Search our Forums:

Back to Top