|
>> For this to work, you would need to create a CL program that does your >> override and then calls your program. Use the toolbox command call to >> execute this new CL program. >OVRSCOPE(*JOB) works for me, Marshall. Not for me ... I thing that my problem is more relative to my second command which is a call to DTM. Here is my code run in the VAJ's scrapbook: AS400 as400 = new AS400(***, ****, ***); CommandCall cmdCall = new CommandCall(as400); String cmd1 ="OVRPRTF FILE(QSYSPRTF) SAVE(*YES) OVRSCOPE(*JOB)"; String cmd2 = "DTM400/PRTDTMDOC DOC(K05092.001) DIR('/qdtm/docf021') OUTQ(QUSRSYS/PRTBP01) HOLD(*YES) DATASTM(*AFP)"; System.out.println(cmdCall.run(cmd1)); System.out.println(cmdCall.run(cmd2)); as400.disconnectAllServices(); Thanks for your support Pascal
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.