IFSFile fails to function when using IFSFile to determine QSYS file attributes (subtype, source physical file) and the library for the file is *LIBL:
QSYSObjectPathName filePath = new QSYSObjectPathName("*LIBL", "QEGSRC", "FILE");
IFSFile ifsFile = new IFSFile(as400Connection, filePath.getPath());
if(!ifsFile.exists()) {
System.out.println("Does not exist");
} else {
if(ifsFile.isSourcePhysicalFile()) {
//File is a source physical file
} else {
//Not a source physical file
}
}
What do you mean when you say fails to function? Are you sure the the file is on the LIBRARY list for the IFS Server job servicing the request?
Closing. No requested information provided.