In
<[EMAIL PROTECTED]>,
on 06/27/2008
   at 04:43 PM, "Ward, Mike S" <[EMAIL PROTECTED]> said:

>I was looking at the sample code(ezacicas) in sezainst listed below for
>cics sockets programming. The takesocket is supposed to return the socket
>number in retcode+2 a halfword. If that's the case and socket number 1
>was returned in retcode+2 wouldn't the error check after the call be
>incorrect?

That would depend on what's in bytes 0-1 of RETCODE; if it's always either
a positive success code or a negative error code then the sample code is
sloppy[1] but correct. 

[1] Using three instructions where two would do, plus an extraneous
    fetch of a constant zero.
 
-- 
     Shmuel (Seymour J.) Metz, SysProg and JOAT
     ISO position; see <http://patriot.net/~shmuel/resume/brief.html> 
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to