× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Barbara,

I think you're right -- I changed your program into a procedure and added it to Scott K's HSSFR4 service program, and gave it the option of named stream files instead of null just to see if it was using them. The files all got created, and remained empty even after they were closed.

*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
pdow@xxxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxxx> /

Barbara Morris wrote:
Jon Paris wrote:
 >> ... mentions that three file descriptors should be opened in the job for
Java I/O to work when the JVM is started by the invocation API

I notice that in your RPG code Barbara that all files are opened read/write
whereas the C example only opens null1 that way, the others are write only.
Is that another error in the C example or doesn't it make any difference ?


Hmm, good catch.  I had another version of the program that opened one
for read and two for write; I forgot about that when I merged them to
use a loop.  The new version does seem to fix up the various problems
with Java I/O.  (I originally wrote it because the os400.stdout and
os400.stderr Java properties seemed to be ignored unless the file
descriptors were opened before any I/O was done by Java.)

I'm not sure if it makes a difference, but I suspect not.  I don't think
it could be the case that these file descriptors are actually used for
stdin, stdout and stderr; I think that for some reason they just have to
exist.  If they were actually used, you would probably have to ensure
(somehow) that file descriptor 0 was stdin (read-capable), 1 was stdout
(write capable) and 2 was stderr (write capable).



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.