|
I notice most people in this mailing list seem to like using QShell to run
Java pgms, why is this? Why bother with
SBMJOB CMD(QSH CMD(java Test= 1 "anystring"))
when you can cut QShell out of the equation and just do
SBMJOB CMD(JAVA CLASS(Test) PARM('anystring'))
Just something I've always been curious about. I've never found a reason
to need QShell yet, is it just personal preference?
Thanks,
Nigel Gay,
Computer Patent Annuities.
|---------+------------------------------------------------->
| | Keith.McCully@xxxxxxxxxxxx |
| | Sent by: |
| | java400-l-bounces+ngay=cpaglobal.com@m|
| | idrange.com |
| | |
| | |
| | 21/07/2005 07:59 PM |
| | Please respond to Java Programming on |
| | and around the iSeries / AS400 |
| | |
|---------+------------------------------------------------->
>--------------------------------------------------------------------------------------------------------------|
|
|
| To: Java Programming on and around the iSeries / AS400
<java400-l@xxxxxxxxxxxx> |
| cc:
|
| Subject: Re: submit java job in batch question
|
>--------------------------------------------------------------------------------------------------------------|
You could pass the string as a parameter into the main method and= ,
from
there, invoke the constructor, Test1= (String name), including this
string.
<DI= V>Command would be:
</DIV= >
SBMJOB CMD(QSH CMD(java Test= 1 "anystring"))
-----java400-l-bo= unces@xxxxxxxxxxxx wrote: -----
To: java400-l@xxxxxxxxxxxx
From: Ashish Kulkarn= i <kulkarni_ash1312@xxxxxxxxx>
Sent by: java400-l-bounces@midran= ge.com
Date: 07/21/2005 10:14PM
Subject: submit java job in batch que= stion
Hi
suppose if i have a java= class
like
public class Test
{
public Test()
= {
}
}
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
public class Test1
{
public Test1(String n= ame)
{
}
}
how do i submit it= in batch from CL,
how do i get it working
Ashish
<SP= AN>
_________________________ _________________________ __
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs</= A>
--
This is the Java Programming on and around the iSeries / A= S400
(JAVA400-L) mailing list
To post a message email: JAVA400-L@midrang= e.com
To subscribe, unsubscribe, or change list options,
visit: <A hr ef="
http://lists.midrange.com/mailman/listinfo/java400-l"
target=blank = >http://lists.midrange.com/mailman/listinfo/java400-l
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
http://www.orbisplc.com
Sales : 0845 3= 45 7877
----------------------------------------------------------------------
This email transmission is confidential and int= ended solely for the
person or organisation to whom it is addressed. If you= are not the
intended recipient or have received this e-mail in error pleas= e
delete
it immediately and notify the sender, Any disclosure including=
copying
or distribution of the information contained herein is strictly pr
ohibited. Any opinions, instructions or advice contained in this email
may not necessarily be those of the company. Although this email and any
at= tachments are believed to be free 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.
--
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.
********************************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.
If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy 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.
********************************************************************************
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.