|
Hi Following is the code i am trying to get file field description for a file, but i am getting following error I have already set the library list and i am sure the file is in library list. Is there any other way to get all the fields in this file [code] QSYSObjectPathName filePath = new QSYSObjectPathName("/QSYS.LIB/%LIBL%.LIB/CF6001.FILE";); AS400File file = new SequentialFile(as400, filePath.getPath()); AS400FileRecordDescription recordDescription = new AS400FileRecordDescription(as400, file.getPath()); RecordFormat[] format = recordDescription.retrieveRecordFormat(); RecordFormat recordFormat = format[0]; [/code] com.ibm.as400.access.AS400Exception: CPF3012 File CF6001 in library *LIBL not found. at com.ibm.as400.access.AS400FileRecordDescriptionImplRemote.retrieveRecordFormat(AS400FileRecordDescriptionImplRemote.java:1147) at com.ibm.as400.access.AS400FileRecordDescription.retrieveRecordFormat(AS400FileRecordDescription.java:488) A$HI$H ____________________________________________________________________________________ Need Mail bonding? Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=list&sid=396546091
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.