You're trying to make QSH run a CL command - won't happen. You need to use 

java 

and whatever its parameters will be. Go to QSH, type java -h on the command 
line, and see what the help tells you. Then put the items from the RUNJVA 
command into corresponding locations with the appropriate flags. 

Good luck, and come on back for more - I don't have the details in front of me, 
and others will also know how.

-------------- Original message -------------- 
From: "John" <jallen@xxxxxxxxxxx> 

> First off I want to let you know that I am just starting to 
> play around with java on the iSeries 
> so please forgive my ignorance on this one 
> 
> 
> 
> I do not want to say how much time I have spent trying to 
> change a CL program 
> from using RUNJVA to using QSH to run it. 
> 
> It seems to me it should be very easy, but I have spent a 
> lot of time trying different formats and reading and re-read 
> midrange archives trying to find the correct format. 
> 
> With my current example I am getting error: 
> 
> qsh: 001-0050 Syntax error on line 1: token "(" not 
> expected. 
> 
> 
> 
> Here is what works 
> 
> DCL VAR(&inFileFlg) TYPE(*CHAR) LEN(20) + 
> 
> VALUE('-inputfile') 
> 
> DCL VAR(&outFileFlg) TYPE(*CHAR) LEN(20) + 
> 
> VALUE('-outputfile') 
> CHGVAR VAR(&fulPathIn) VALUE('/drjc/java/testin.txt') 
> 
> CHGVAR VAR(&fulPathOut) VALUE('/drjc/java/testout.txt') 
> 
> 
> 
> CHGVAR &classPath 
> ('/QIBM/ProdData/OS400/jt400/lib/jt400Native.jar:+ 
> 
> 
> /drjc/java/commons.jar:/drjc/java:/drjc/java/convertf.jar:.' 
> ) 
> 
> 
> 
> ** The following works ** 
> 
> 
> RUNJVA CLASS('convert') PARM(&inFileFlg &fulPathIn + 
> 
> 
> &outFileFlg &fulPathOut) 
> CLASSPATH(&classPath) 
> 
> 
> 
> ** The following does not work ** 
> 
> 
> CHGVAR VAR(&CMD) VALUE('RUNJVA CLASS(convert) + 
> 
> PARM(' *TCAT + 
> 
> &inFileFlg *BCAT &fulPathIn *BCAT + 
> 
> &outFileFlg *BCAT &fulPathOut *BCAT + 
> 
> ')' *BCAT 'CLASSPATH(' *TCAT &classPath *TCAT ')' ) 
> 
> 
> 
> STRQSH CMD(&CMD) 
> 
> 
> ** This causes error: 
> 
> qsh: 001-0050 Syntax error on line 1: token "(" not 
> expected. 
> 
> Press ENTER to end terminal session. 
> 
> 
> 
> 
> Can anyone give me the correct format for &CMD? 
> 
> 
> 
> Thanks 
> 
> John 
> 
> 
> 
> 
> 
> 
> 
> -- 
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list 
> To post a message email: MIDRANGE-L@xxxxxxxxxxxx 
> To subscribe, unsubscribe, or change list options, 
> visit: http://lists.midrange.com/mailman/listinfo/midrange-l 
> or email: MIDRANGE-L-request@xxxxxxxxxxxx 
> Before posting, please take a moment to review the archives 
> at http://archive.midrange.com/midrange-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.