2016-12-15 7 views
1

경로가있는 System i db 파일을 가리켜 jt400 RecordFormat 오브젝트를 작성할 수 있습니까?IBM i 파일에서 IBM i Java Toolkit RecordForm 작성

나는 RecordFormat를 만들고 필드 정의를 추가하지만 난 RecordFormat 볼 때 단지 말을

내가 그런 아무것도 보지 못했다 "그냥 도서관에서 해당 파일 같은 RecordFormat을 만들"싶습니다 수 있습니다 및 레코드 클래스.

답변

2

AS400FileRecordDescription 클래스, 특히 retrieveRecordFormat 메서드를 살펴보십시오.

 AS400FileRecordDescription recordDescription = new AS400FileRecordDescription(
       as400, path); 

     RecordFormat[] formats = recordDescription.retrieveRecordFormat();