[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: writef issues
Hi Tim,
Sorry, I don't understand. Is this related somehow related to HTTPAPI
or FTPAPI? Or, are you telling me that you think you found a bug in
one of IBM's APIs?
If it's the latter... well, I'd be very skeptical, since I've been
using that API for about 18 years in hundreds of programs, and have
never seen what you're referring to. But... if you have indeed found
a bug, wouldn't it make more sense to report it to IBM rather than me?
If it's in FTPAPI or HTTPAPI, then you're in the right place. But,
I'll need more details... which product you're using (FTPAPI or
HTTPAPI), which version you're using, and most importantly, how I can
reproduce the error.
Thanks!
On 5/23/2014 9:50 AM, Tim Hull wrote:
Scott,
I have occasional issues using the writef procedure. Sometimes it
"hiccups" and produces a second (and sometimes a third) record when it
writes. In about 1 out of a hundred times it will do this. I have
deleted the IFS file and run in debug and it will work fine.
The first record is good with CRLF. Here are examples of the file:
[[1]cid:image003.jpg@01CF7674.C6E34220]
But the second and third lines are the tail of the first record.
[[2]cid:image005.jpg@01CF7674.C6E34220]
Here is my version of the witef API: (Is this the current version?)
436+ *----------------------------------------------------
437+ * Write to a file_____________________
438+d writef PR 10I 0 extproc('write')
439+d fildes 10I 0 value
440+d buf * value
441+d nbyte 10U 0 value
I'm not in a DO loop, and only execute the writef once. The length
parm must change also because the CRLF is on the end of the partial
data where it should be. Here is my code:
[[3]cid:image009.jpg@01CF7674.C6E34220]
Tim Hull
CONFIDENTIALITY: This e-mail (including any attachments) may contain
confidential, proprietary and privileged information, and unauthorized
disclosure or use is prohibited. If you received this e-mail in error,
please notify the sender and delete this e-mail from your system.
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
[4]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
References
1. cid:image003.jpg@01CF7674.C6E34220
2. cid:image005.jpg@01CF7674.C6E34220
3. cid:image009.jpg@01CF7674.C6E34220
4. 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
-----------------------------------------------------------------------