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