× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Pascal,

I am not clear on what the problem is here, but if you want to use the
same 
job repeatedly with the CommandCall class, you need to set thread safe
to true. 
This limits the commands that can be run (can't run CRTRPGMOD for
example), 
but fits most situations. You can look at a command using DSPCMD to
determine 
if it is thread safe.

David Morris

>>> pal@gfdi.be 01/23/03 11:55PM >>>
> From: Alberty Pascal
>
> 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();

>Have you tried running these two commands from a green screen command
line
>to see if the spooled file ends up with the SAVE attribute set?


These commands (but first one without ovrscope(*job)
run from a greeen screen generate a spool with save attribute

I'm still searching. Thanks for your help

Pascal


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.