15 pts.
 STRPCO can’t recognize batch commands
Hi, I have this program in CL using STRPCO to call a batch file on my PC, but when the CL program with strpco starts to call the batch file the dos black screen shows an error message saying "choice" command is unrecognizable, but when i manually execute it by double clicking the batch file from PC it works just fine.

Software/Hardware used:
AS400 V5R3, CL program
ASKED: March 29, 2011  8:34 AM
UPDATED: March 29, 2011  7:12 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:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

It’s not clear what you are asking, but I think it is something like this:

You have a .bat file named CHOICE.BAT,either on your PC or on a Windows share, that you want to run by naming it on a STRPCCMD command (not STRPCO).

When you run STRPCCMD, you get an error message on the PC that says it doesn’t recognize CHOICE.BAT. Yet if you simply double-click CHOICE.BAT on your PC, it runs fine.

Most likely, you aren’t sending the path for the .bat file in your STRPCCMD, and CHOICE.BAT is not stored in the default path for your emulator session.

Please show us the STRPCCMD that you are running. Also, show the path that is used for STRPCCMD.

You should be able to see the path by running this command:

STRPCCMD PCCMD('set   PATH')

Tom

 110,165 pts.