[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Re HELP



Using open you are getting back a file descriptor. If the file descriptor is -1, something went wrong. If it is positive, it is the file descriptor. A 3 or 4 is perfectly valid file descriptor. Error codes are in the infocenter - specifically they point you to C files that contain copy books for C programs. Easier approach is to read through Scott's IFS e-book. You can find the error handling code there.

http://www.scottklement.com/rpg/ifs_ebook/



-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Donnie Barrow
Sent: Tuesday, December 2, 2014 11:20 AM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Re HELP

is there a list of the error codes. I am getting fd = 3 or 4 
      From: Gerald Magnuson <gmagnuson@xxxxxxxxxxxxx>
 To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx> 
 Sent: Tuesday, December 2, 2014 12:12 PM
 Subject: RE: Re HELP
   
The FIRST file handle returned is ZERO....
A error condition is LESS THAN ZERO...



Gerald Magnuson | Senior System I Admin
The Knapheide Manufacturing Company | 1848 Westphalia Strasse | P.O. Box 7140 | Quincy | IL | 62305-7140
Phone: 1-217-592-5291 | www.knapheide.com


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Donnie Barrow
Sent: Tuesday, December 02, 2014 10:58 AM
To: HTTPAPI and FTPAPI Projects
Cc: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re HELP

I have a xml file in the IFS and I am trying to open with fd=open(xmlfile:O_RDONLY); if (fd<0);  the xmlfile = '/tmp/QACX8RRYQC ' and this value is passed into the parsing program when I code like this fd=open('/tmp/QACX8RRYQC ':O_RDONLY);this will open the file anyone see anything like this? suggestions?   
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------


  
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------