I am using the IBM JZOS API to access PDS members and now I need some information about the members. There is the class PdsDirectory.MemberInfo.Statistics, so that I can create a PdsDirectory, iterate over it and get the Statistics of each member (e.g. modification date, last editing user,...) like so:
PdsDirectory dir = new PdsDirectory(args[0]);
for (Iterator iter = dir.iterator(); iter.hasNext(); ) {
PdsDirectory.MemberInfo info = (PdsDirectory.MemberInfo)iter.next();
System.out.println(info);
}
But I need those statistics only for one single file. Is there a way with
ZFile zFile = new ZFile("//DD:INPUT", "rb,type=record,noseek");
or creating a reader, to access those information? Or is the only way to create the directory and find the file I need?