Skip to content

[JOBS] Error in encoding management in "Submit as JCL" and "Get JCL" functions #3826

@FALLAI-Denis

Description

@FALLAI-Denis

Describe the bug

When a JCL contains specific characters, either at the comment level or at the instream data flow level (sysin), these characters are incorrectly converted at the time of job submission, "Submit as JCL" function, and are also incorrectly converted by the "Get JCL" function.

This issue is relatively minor on comments, but it is major on instream data flow (sysin).

The JCL stream expected by z/OSMF should probably be encoded in UTF-8, and z/OSMF will take care of the translation to the correct encoding.
The API provides a header to declare the encoding to be applied: X-IBM-Intrdr-File-Encoding, IBM-1047 by default.
Zowe SDK supports this header a priori, but Zowe Explorer may not use it.

For retrieving spool files, the z/OSMF API provides a parameter fileEncoding=code-page, IBM-1047 by default.
Zowe SDK also supports this parameter a priori, does Zowe Explorer use it?

To Reproduce

Sample JCL before submit:

Image

Expected behavior

Use the encoding specified in the Zowe profile to submit and retrieve information from z/OS after submission.

Image

Screenshots

Submitted JCL on z/OS:

Image Image

JESJCL view:

Image

"Get JCL":

Image

Desktop (please complete the following information):

  • OS: Windows
  • Zowe Explorer Version: 3.2.2
  • (Optional) Zowe CLI Version: N/A
  • (Optional) Do you have secure credentials enabled? default
  • (Optional) Are you using a custom credential manager? no

Additional context

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestpriority-mediumNot functioning - next quarter if capacity permits

Type

No type

Projects

Status

Review/QA

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions