Hi
if I try to set a WSCST outside the QSYS.LIB it trows an exception.
printParms.setParameter(PrintObject.ATTR_WORKSTATION_CUST_OBJECT, "/MYLIB.LIB/MYCST.WSCST");
...
com.ibm.as400.access.IllegalPathNameException: /MYLIB.LIB/MYCST.WSCST: Object not in QSYS file system.
...
On the ISeries we are allowed to do so.
Kind regards
are there any news?
Giancarlo, because JTOpen only accepts the input path in "/QSYS.LIB/" and MYLIB.LIB is the sub-library of QSYS.LIB, so the reason is that you miss the prefix "/QSYS.LIB", please change the code as:
printParms.setParameter(PrintObject.ATTR_WORKSTATION_CUST_OBJECT, "/QSYS.LIB/MYLIB.LIB/MYCST.WSCST");