JCL symbols trimmed: "CMD=' test '"
= "CMD='test'"
#1718
Labels
bug
Something isn't working
priority-low
Legit issue but cosmetic or nice-to-have
severity-low
Bug that makes the usage of the Zowe less convenient but doesn't impact key use cases
Describe the bug
The
--jcl-sysmbols
options is (basically).trim()
-ing the provided symbols.Expected and actual results
Assume the following job:
Running the following CLI commands...
zowe jobs sub ds "USERID.DS(symbols)" --js "CMD1='sh /bin/sleep 1'"
test000
always works since the spaces are not at the beginning or the endtest000: IEFC653I SUBSTITUTION JCL - PGM=BPXBATCH,PARM='sh /bin/sleep 1'
zowe jobs sub ds "USERID.DS(symbols)" --js "CMD1=sh CMD2='/bin/sleep' CMD3=1"
test001
works since the CMDs are spaces out in the JCL steptest001: IEFC653I SUBSTITUTION JCL - PGM=BPXBATCH,PARM='sh /bin/sleep 1'
zowe jobs sub ds "USERID.DS(symbols)" --js "CMD1=sh CMD2=' /bin/sleep ' CMD3=1"
test002
doesn't work (and throws a JCL error) since the spaces (in CMD2) are trimmed outtest002: IEFC653I SUBSTITUTION JCL - PGM=BPXBATCH,PARM='sh/bin/sleep1'
Describe your environment
zowe --version
): 7.15.0zowe plugins list --short
): N/Anode --version
,npm --version
): node 18.x & npm 9.xAdditional context
FYI, the method in question (
getSubstitutionHeaders
) has not been touched since April 2021, hence the priority-low label.zowe-cli/packages/zosjobs/src/SubmitJobs.ts
Lines 337 to 346 in e7f4484
The text was updated successfully, but these errors were encountered: