Seems overly complex. You are in the PASE environment, so why do you want to exit to the native environment and run the QShell command?

I suspect what's happening is that some of the quotes are being consumed by one of the shells you're going through, so they don't exist when it reaches the QSH command.

consider doing something like:
CHGVAR &COMAND (&RMTUSR *BCAT 'qsh /MDS/utilities/Websphere-Commands/customer/batch.sh')

This runs QShell directly from PASE. Of course, if your script runs in PASE, you could run it directly, as well...

-SK


On 2/28/2013 9:09 AM, Andrew.Smith@xxxxxxxxx wrote:
Hello,

Hope someone can help me on this.

I have script file which runs fine when I run an interactive ssh
connection
here are the commands:-

ssh -Tvvvv Userid@remoteiseries
/MDS/utilities/Websphere-Commands/customer/batch.sh

This works fine and runs the script.

Now in my test CL I have:-

CHGVAR &RMTUSR ('ssh -Tvvv -n Userid@remoteiseries')

CHGVAR &COMAND (&RMTUSR *BCAT '''system "QSH
CMD(''/MDS/utilities/Websphere-Commands/customer/batch.sh'')"''')

Yet when I run the CL program in batch it does not work and gives me a
CPD0011 - Qualifier missing from qualified name 'MDS ' & CPF0006
errors

Can anyone help please ?

Thankyou

Regards
Andy


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.