Kalan
Member
When an output stream is directed to a file with the OUTPUT statement, and characters are written to the stream with the PUT statement, the output file is created but some or all of the data is missing from the file.
UNBUFFERED option when the stream is opened for output. This will force each individual byte to be written to the file immediately. Even though its not writing the output to file. Also I have added an OUTPUT CLOSE statement to the code, after all statements that write to the output file. Closing the output stream at the earliest opportunity force any remaining data in the output buffer to be written to the file and frees up the associated resources. But still its failing to write the output to file. There is no error reported in appserver log.
Could you pls advice me the reason of possibilities on failure case?
Thanks,
Alan
UNBUFFERED option when the stream is opened for output. This will force each individual byte to be written to the file immediately. Even though its not writing the output to file. Also I have added an OUTPUT CLOSE statement to the code, after all statements that write to the output file. Closing the output stream at the earliest opportunity force any remaining data in the output buffer to be written to the file and frees up the associated resources. But still its failing to write the output to file. There is no error reported in appserver log.
Could you pls advice me the reason of possibilities on failure case?
Thanks,
Alan