× 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.



Just use the CommandCall class, very easy to use.  You just need to build
the correct SBMJOB string.  You can use this to run any command, the one
limitation is you can pass parameters in, but you cannot receive them back,
as the case with SBMJOB with "normal" CL programming.

Mark



      To:   java400-l@xxxxxxxxxxxx
      cc:
      bcc:
      Subject:    Submit job in batch from Java using toolbox
Ashish Kulkarni <kulkarni_ash1312@xxxxxxxxx>
Sent by: java400-l-bounces@xxxxxxxxxxxx
10/21/2003 04:56 PM MST
Please respond to Java Programming on and around the iSeries / AS400
<font size=-1></font>





















Hi,
I have a RPG program called Test, i have a PCML for
this file and i set the values in PCML and use command
boolean rc = pcml.callProgram(PCMLFile);

this calls the program in interactive mode, is there a
way i can submit this program in batch , like CL
command
Pcmd = 'SBMJOB CMD(CALL PGM(PL615B) PARM(' +
'''' + Parm01A + '''' + ' ' +
'''' + Parm01B + '''' + ' ' +
'''' + Parm01C + '''' + ' ' +
'''' + Parm01D + '''' + '))' + ' '
+ 'Job(' + JobName + ')'
Is is possible to do this from java,
how can i send parameters to the program

Ashish




__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.








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.