× 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.



Rong Zhang wrote:

Hi Franco,

The problem is that this program didn't throw out any exceptions.

I found this problem by using websphere debug tool, it just hung there when
I reached this statement. Are there any ports or servers or whatever in
AS400 I need to open or enable for this ?

Thanks,


Rong,
try something like this to see if this changes (where loggerFileName=/QSYS.LIB/MYLIB.LIB/MYFILE.FILE):


               as400 = new AS400();
               as400.setSystemName( IniFileManager.getAS400SystemName() );
               as400.setUserId( IniFileManager.getAS400UserId() );
               as400.setPassword( IniFileManager.getAS400Password() );
               as400.setGuiAvailable( false );
               as400.connectService( AS400.RECORDACCESS );

as400File = new SequentialFile( as400, IniFileManager.getLoggerFileName() );
AS400FileRecordDescription recordDescription = new AS400FileRecordDescription( as400, IniFileManager.getLoggerFileName() );
recordFormat = recordDescription.retrieveRecordFormat();
as400File.setRecordFormat( recordFormat[ 0 ] );
record = new Record( recordFormat[ 0 ] );



-- ----------------------------------------------------------------------------- *** This messages was scanned for malicious contents *** ----------------------------------------------------------------------------- Franco Biaggi CH-6807 Taverne



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.