[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: writef issues
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:
[cid:image003.jpg@01CF7674.C6E34220]
But the second and third lines are the tail of the first record.
[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:
[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:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------