IBM Support

RUN TASK/JOB using cmd() sysopts fails when command contains "/C"

Troubleshooting


Problem

RUN TASK/JOB using cmd() sysopts fails when command contains "/C"

Symptom

RUN TASK or RUN JOB using cmd() sysopts fails when the specified command line contains "/C", for example:

RUN TASK SNODE (PGM=Windows)
    SYSOPTS="CMD(echo A B /C D >C:\output.txt  2>~&1)"

The output file shows the following message:
'D' is not recognized as an internal or external command,operable program or batch file.

Error Message
LSMG402I   A user RUNTASK step completed. Exit code = 1.

[{"Product":{"code":"SSRRVY","label":"IBM Sterling Connect:Direct for Microsoft Windows"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF033","label":"Windows"}],"Version":"4.6;4.5;4.4","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Historical Number

NFX11480

Document Information

Modified date:
24 July 2020

UID

swg21560207