J R,
In the same manual: Return values The return value points to static data that is overwritten by subsequent calls. A pointer to a hostentstructure indicates success. A NULL pointer indicates an error or EOF. When a NULL pointer or 0 is returned, the value of errno is indeterminate, and, therefore, the output from a tcperror() call is also not valid. Global variable h_errno identifies the specific error. h_errno ValueDescriptionHOST_NOT_FOUNDThe name specified is unknown. TRY_AGAINTemporary error; information not currently accessible. NO_RECOVERYFatal error occurred. Related calls gethostent(), sethostent(), endhostent() The h.errno should be returned. ALso depends on the language being used. C or Assembler or Cobol. Our calls are in Cobol and its not unusual to se see a errno = J with a modified return code in another field as indicated above. Maybe he just missed a variable, the OP didn't code. Regards, Scott P.S. Be nice I was trying to help .. From: J R Sent: Friday, March 21, 2014 11:15 AM To: IBM Mainframe Discussion List The ones at the back are the ERRNO descriptions, which don't apply to GETHOSTBYNAME. As Don said, the only RETCODE values for GETHOSTBYNAME are 0 and -1. === > Date: Fri, 21 Mar 2014 14:49:14 +0000 > From: [email protected] > Subject: Re: EZASOKET RETCODE > To: [email protected] > > Don, > > > They are in the back of the Communication Server IP Socket Programmer’s > manual, I use them all the time. > > > Regards, > > Scott > > > > www.identityforge.com > > > > > > From: Don Poitras > Sent: Friday, March 21, 2014 9:47 AM > To: IBM Mainframe Discussion List > > > > > > Dean, > First, you'll get a better response if you send your question to the > listserv rather than the mirrored newsgroup. See the note at the > bottom of this email for instructions to do that. > Second, this call can only return 0 or -1. Check that you're really > looking at RETCODE. Also, gethostbyname isn't going to send email, no > matter what the return code. > > > In article <[email protected]> you wrote: > > I need help....I'm not fimilar with socket prgramming and can't find these > > codes documented anywhere....anything would be aprreciated. This is holding > > up a migration to Exchange 2010. > > > Thanks > > > > On Wednesday, March 19, 2014 11:37:33 AM UTC-4, [email protected] wrote: > > > Hi, > > > > > > > > > > > > On this socket call: > > > > > > > > > > > > CALL EZASOKET(SOC_GETHOSTBYNAME, > > > > > > HNAMELEN, > > > > > > HOSTNAME, > > > > > > HOSTENT_PTR, > > > > > > RETCODE); > > > > > > > > > > > > I get a RETCODE=21 or 43 depending on what DNS host is passed to the > > > call. I can't find these codes anywhere. The RETCODE=21 is sending an > > > email with 'no body', the RETCODE=43 is successful. Can anyone help me > > > with these RETCODES? > > > > > > > > > > > > Thanks, > > > > > > Dean > > -- > Don Poitras - SAS Development - SAS Institute Inc. - SAS Campus Drive > [email protected] (919) 531-5637 Cary, NC 27513 > > ---------------------------------------------------------------------- ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
