× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I think this is what you're looking for:
"How to Call PASE Commands/Scripts from a Command Line, CL Program, or in a Submitted Job"
https://www.ibm.com/support/pages/how-call-pase-commandsscripts-command-line-cl-program-or-submitted-job


HTH


-----Original Message-----
From: Rob Berendt [mailto:rob@xxxxxxxxx]
Sent: Wednesday, October 02, 2019 12:46 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: How to call QP2TERM with parameters?

How do I bypass the interactive work of CALL QP2TERM ssh -T -v -v -v -i .ssh/id_rsa_user ADOPT@as2edi01 "dir >/users/ADOPT/testdirout.txt"

I tried
CALL PGM(QP2TERM) PARM('ssh -T -v -v -v -i .ssh/id_rsa_user ADOPT@as2edi0 1 "dir >/users/ADOPT/testdirout3.txt"') And, along with some unseemly references to my dear sainted mother, it gave me CPFB9CA
Message . . . . : Batch job ended in error.
Cause . . . . . : Program QP2TERM starts a batch job to run a PASE for i
shell program. An exception caused the batch job to end abnormally.
Recovery . . . : Check the job log for the batch job to determine what
error occurred. Correct the error, and then try the request again.

I didn't see any 'job submitted' type messages in this joblog so I'm assuming we're talking about a spawn process instead. That, and DSPLOG shows no new related jobs in that time frame.
WRKSPLF PERIOD((133440 *CURRENT)) was bereft of any entries.
WRKSPLF SELECT(*ALL) PERIOD((133440 *CURRENT)) didn't seem to show any related to the user signed on, nor any IBM type user

Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.