简体   繁体   中英

Create a IBM i Java Toolkit RecordFormat from an IBM i File

Can a jt400 RecordFormat object be created just by pointing to a System i db file with a Path?

I can create the RecordFormat and add the Field definitions but I'd like to just say "create a RecordFormat just like that File in that Library"

I did not see anything like that when looking at the RecordFormat and Record classes.

Look at the AS400FileRecordDescription class, specifically the retrieveRecordFormat method.

        AS400FileRecordDescription recordDescription = new AS400FileRecordDescription(
                as400, path);

        RecordFormat[] formats = recordDescription.retrieveRecordFormat();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM