WebSphere Liberty on z/OS에서 ZFile API를 사용하는 방법을 더 일반적으로 묻는 것처럼 들릴 수 있습니다. 당신은 분명으로, 원래의 실행에 처음으로 만들어지는 새 파일에 쓰기를 구별해야 할 수도 있습니다,
String pdsName = ZFile.getSlashSlashQuotedDSN("X.Y.Z");
ZFile zfile = new ZFile(pdsName , ...options...)
지금까지와 같은 배치 별 사용 사례 :
당신이 뭔가를 시도 되세요 재시작시 이미 존재하는 것에 추가하는 것에 반대합니다.
게시 한 원래 링크와 함께 doctorbatch.io repo에 유용한 스 니펫 세트를 찾을 수도 있습니다.
는 참고로, 나는 ZFile Javadoc에서 복사/붙여 넣기합니다 :
ZFile dd = new ZFile("//DD:MYDD", "r");
Opens the DD namee MYDD for reading
ZFile dsn = new ZFile("//'SYS1.HELP(ACCOUNT)'", "rt");
Opens the member ACCOUNT from the PDS SYS1.HELP for reading text records
ZFile dsn = new ZFile("//SEQ", "wb,type=record,recfm=fb,lrecl=80,noseek");
Opens the data set {MVS_USER}.SEQ for sequential binary writing. Note that ",noseek" should be specified with "type=record" if access is sequential, since performance is greatly improved.
마지막으로 참고, ZFile 도우미 메서드 유용한 또 다른 커플과 같습니다 bpxwdyn() 및 getFullyQualifiedDSN()를.