STRPCO can’t recognize batch commands

15 pts.
Tags:
Batch jobs
CL Program
STRPCO
V5R3
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

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following