|
There is a programmer in my shop working on a program that opens a file in the IFS to read in a template for an email. Now remember, this file already exists and is about 2k. We are having very weird results to say the least. When we call it interactively, the first time it returns a file descriptor of 0. The second time we call the program it returns a file descriptor of 3 and we get the desired output. Any ideas? I should mention that the open api is wrapped in a module. The module contains the code that came from "Who knew you could do that with RPG. . ." for the open(), read(), write(), and close(). So right now to fix the problem she calls the #Open procedure twice which in essence is calling the open() api four times(open, close, open; open, close, open). It is almost like it can't find the file the first time, but the second time it finds it just fine. Aaron Bartell
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.