105 pts.
 STRQSH Not working in CL for JDE Server Manager Stop and Start
Hello,

I hope someone can please assist and let me know why when we run the submit command for STRQSH in CL, it does not work?  But when we execute the command from the command line, it works fine.

Here are the commands,

SBMJOB     CMD(STRQSH CMD('CD +                                    /JDEDWARDS/JDE_HOME/bin;./stopAgent &')) +               JOB(ENDSMAGENT) JOBQ(JDESVRML/JDESVRMQ) +               USER(JDESVRPD)                           

SBMJOB     CMD(STRQSH CMD('CD +                                    /JDEDWARDS/JDE_HOME/bin;./startAgent &')) +              JOB(JDESMAGENT) JOBQ(JDESVRML/JDESVRMQ) +               USER(JDESVRPD)                            

Here is the error we get,

WHEN STOPPING,

qsh: 001-0019 Error found searching for command CD. No such path or directory. qsh: 001-0014 Command ./stopAgent not found.            

WHEN STARTING,

qsh: 001-0019 Error found searching for command CD. No such path or directory.    qsh: 001-0014 Command ./startAgent not found.                                    

As fyi, these are the jobs that runs when command to start works.

JDESVRM        QSYS        SBS      .0                   DEQW   JDESMAGENT   JDESVRPD    BCH      .0  CMD-STRQSH       TIMW   QP0ZSPWP     JDESVRPD    BCI      .0  PGM-QZSHSH       EVTW   QP0ZSPWP     JDESVRPD    BCI      .0  PGM-QZSHSH       EVTW   QP0ZSPWP     JDESVRPD    BCI      .0  JVM-com.jdedwa   THDW

Thanks in advance for your help.



Software/Hardware used:
i5O/S
ASKED: May 30, 2012  10:25 PM
UPDATED: May 31, 2012  10:43 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I can’t quite tell what QSH commands you’re trying to run. As far as I can tell, the commands aren’t valid. It looks as if you want this Qshell utility in your first command:

CD /JDEDWARDS/JDE_HOME/bin;./stopAgent &

The Qshell cd utility can't handle a semi-colon in the middle of a path, and the ampersand at the end has no meaning unless you're trying to run the utility 'in the background' which doesn't make much sense in a SBMJOB of a single utility.

Further, there is no Qshell utility named 'CD' unless you created one or you have an installed product that supplies one. The utility names are case-sensitive, so it needs to be 'cd' in lower-case.

Now, if you actually have created a 'CD' utility, then we need to know more about what it is, where it is and what the path settings are for the job or profile that has success. Any submitted jobs will need the same settings.

Tom
 108,330 pts.

 

Let’s see if I can clean that up…

I can’t quite tell what QSH commands you’re trying to run. As far as I can tell, the commands aren’t valid. It looks as if you want this Qshell utility in your first command:

CD /JDEDWARDS/JDE_HOME/bin;./stopAgent &

The Qshell cd utility can’t handle a semi-colon in the middle of a path, and the ampersand at the end has no meaning unless you’re trying to run the utility ‘in the background’ which doesn’t make much sense in a SBMJOB of a single utility.

Further, there is no Qshell utility named ‘CD’ unless you created one or you have an installed product that supplies one. The utility names are case-sensitive, so it needs to be ‘cd’ in lower-case.

Now, if you actually have created a ‘CD’ utility, then we need to know more about what it is, where it is and what the path settings are for the job or profile that has success. Any submitted jobs will need the same settings.

Tom

 108,330 pts.

 

Thanks Tom for your help. The issue was with the utility cd. As you said it is case sensitive so I tested and ran it in lower case and worked ok.

 105 pts.