Menu

#379 set a WSCST custom object outside the QSYS.LIB

Print-Spooled Files
open
wanghuiq
None
5
2016-12-23
2016-11-08
No

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

Discussion

  • John Eberhard

    John Eberhard - 2016-11-08
    • assigned_to: wanghuiq
     
  • Giancarlo Baracchino

    are there any news?

     
    • Hu Yang

      Hu Yang - 2016-12-28

      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");

       

Log in to post a comment.

MongoDB Logo MongoDB