Hi.

We have a program written in Java using JTopen 5.0 which transports files with ftp.

I have understood that a traditional AS/400 file can be either externally described, or not. (I can see externally described files as tables with JDBC, the others not).

The problem is it is necessary to use CPYTOSTMF with one format, and CPYTOIMPF with the other, and we would like to check before hand instead of running first CPYTOSTMF, and if that fails with a "cannot use this kind of file" message, running CPYTOIMPF on it.

Is there a way to check programmatically before hand? I tried looking in the toolbox source and found by looking at IFSFile.isReadOnly() that this might be stowed away in the "fixedAttributes" field in IFSCachedAttributes class, but there is only defined FA_READONLY and FA_HIDDEN to hint the meaning of this field. (1 and 2 respectively).
I would appreciate any pointers.

Best regards,

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2025 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.