|
RUNJVA is better for submitted jobs but if you try RUNJVA interac= tively
from a CLP then the error monitor screen is displayed. This doesn't
happen if you execute the java program via QSH.
= Cheers,
Keith
---= --java400-l-bounces@xxxxxxxxxxxx wrote: -----
= I notice most people in this mailing list seem to like using QShell to
run<= BR>Java pgms, why is this? Why bother with
SBMJOB CM= D(QSH CMD(java Test= 1 "anystring"))
when you can cut QShell out o= f the equation and just do
SBMJOB CMD(JAVA CLASS(Test) PAR= M('anystring'))
Just something I've always been curious about.  = ;I've never found
a reason
to need QShell yet, is it just personal prefe= rence?
Thanks,
Nigel Gay,
Computer Patent Annuities.
<B= R>
|---------+-------------------------------------------------><= BR>|
| Keith= .McCully@xxxxxxxxxxxx |
|  = ; | Sent by: = &nbs= p;
|
| | &= nbsp; java400-l-bounces+ngay=cpaglobal.com@m|
| &= nbsp; | idrange.com = &nbs= p;
|
| | =  = ; |
| &nb= sp; | = &nbs= p;
|
| &n= bsp; | 21/07/2005 07:59 PM = |
| &nbs= p; | Please respond to Java Progr= amming on |
| | = and around the iSeries / AS400 |
| &nb= sp; | = &nbs= p;
|
|---------+--------------= ----------------------------------->
>------------------------
---------------------------------------------------------------------------
-----------|
|
|
| To: = Java Programming on and around the iSeries / AS400
<JAVA4= 00-L@xxxxxxxxxxxx> &= nbsp;|
| cc:
|
| &n= bsp; Subject: Re: submit java job in batch question
|
>-
---------------------------------------------------------------------------
----------------------------------|
You could= pass the string as a parameter into the main method and=
,
from
&n= bsp; there, invoke the constructor, Test1= (String name),
including this<= BR> string.
<DI= DESIGNTIMESP="27754" V>Command wou= ld be:
</DIV=>
SBMJOB CMD(QSH CMD= (java Test= 1 "anystring"))
-----java400-l-bo= unces@mid= range.com wrote: -----
To: java400-l@xxxxxxxxxxxx
&= nbsp; From: Ashish Kulkarn= i <KULKARNI_ASH1312@xxxxxxxxx>
&n= bsp; Sent by: java400-l-bounces@midran= ge.com
 = ; Date: 07/21/2005 10:14PM
Subject: submit java job in bat= ch que= stion
Hi
suppose if= i have a java= class
like
public class= Test
{
public Test()
&nb= sp; = {
}
= }
then i can use command
SBMJOB &nb= = sp; CMD(QSH CMD(java Test))
and it will work= fine
but suppose = if i have a class
p= ublic class Test1
{
public Test1(St= ring n= ame)
{
= }
}
how do i submit it= in ba= tch from CL,
how do i get it working
= Ashish
<SP= DESIGNTIMESP="27795" AN>
&= nbsp; ________________ _________ ___________
______________ __
&= nbsp; Start your day with Yahoo! - make it your home page
= http://www.yahoo.com= /r/hs
--
This is the Java Program= ming on and around the iSeries / A= S400
(JAVA400-L) mai= ling list
To post a message email: JAVA400-L@midrang= = e.com
To subscribe, unsubscribe, or change list optio= ns,
visit: ht= tp://lists.midrange.com/mailman/listinfo/java400-l"
tar= get= blank=
>http://lists.midrange.com/mailman/listinfo/java400-l<= BR> or email:
JAV= A400-L-request@xxxxxxxxxxxx
= Before posting, please take a moment to revi= ew the archives
= at http://archive.midrange.com/java400-l.
 = ; </BL= ockquote>
Orbis Property Protection
&n= bsp; http://www.orbisplc.com
Sales : 0845 3= 45 7877<= BR>
------------------------------------------------------
----------------
This email transmission is confidenti= al and int= ended solely
for the
person or organisation = to whom it is addressed. If you= are not
the
intended re= cipient or have received this e-mail in error pleas=
e
delete
 = ; it immediately and notify the sender, Any disclosure
including=<= BR>copying
or distribution of the information contained he= rein is strictly pr
ohibited. Any opinions, instructions or advice conta= ined in this email
may not necessarily be those of the company. Although= this email and
any
at= tachments are believed to be f= ree of any virus or other
defects,
which = might affect = any computer or system it is the
responsibility
of
the = recipie= nt to ensure they are virus free. E&OE.
--<= BR>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.mid= range.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@midrang= e.com
Before posting, please take a moment to review the archives
at = http://archive.midrange.com/java400-l.
*
***************************************************************************
****
The information in this message is confidential and may be lega= lly
privileged. It is intended solely for the addressee; access to this<
BR>email by anyone else is unauthorised.
If you are not the intended= recipient: (1) you are kindly requested
to return a copy of this messag= e to the sender indicating that you
have received it in error, and to de= stroy the received copy; and (2)
any disclosure or distribution of this = message, as well as any action
taken or omitted to be taken in reliance = on its content, is prohibited
and may be unlawful.
******************
**************************************************************
-= -
This is the Java Programming on and around the iSeries / AS400 (JAVA40
0-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
= To subscribe, unsubscribe, or change list options,
visit: http://lists.m= idrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@midra= nge.com
Before posting, please take a moment to review the archives
a= t http://archive.midrange.com/java400-l.
--
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, un= subscribe, or change list options,
visit: http://lists.midrange.com/mail= man/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Befor= e posting, please take a moment to review the archives
at http://archive= .midrange.com/java400-l.
<b= >Orbis Property Protection
http= ://www.orbisplc.com
Sales : 0845 345 7877
----------------------------------------------------------------------
= This email transmission is confidential and intended solely for the
person = or organisation to whom it is addressed. If you are not the
intended recipi= ent or have received this e-mail in error please delete
it immediately and = notify the sender, Any disclosure including copying
or distribution of = the information contained herein is strictly
prohibited. Any opinions, = instructions or advice contained in this email
may not necessarily be those= of the company. Although this email and any
attachments are believed to be= free of any virus or other defects, which
might affect any computer or= system it is the responsibility of the
recipient to ensure they are virus = free. E&OE.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.