Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding management when submitting a job (for site not un EBCDIC IBM-037) #876

Closed
FALLAI-Denis opened this issue Dec 17, 2020 · 5 comments · Fixed by #2139
Closed

Encoding management when submitting a job (for site not un EBCDIC IBM-037) #876

FALLAI-Denis opened this issue Dec 17, 2020 · 5 comments · Fixed by #2139
Labels
community-upvoted enhancement New feature or request priority-medium Not functioning - next quarter if capacity permits

Comments

@FALLAI-Denis
Copy link

FALLAI-Denis commented Dec 17, 2020

A Job contains technical information such as the JCL, but can also include Data in inline sysins.

This Data is sensitive to the encoding used on the z/OS mainframe system. When sending the Job, this Data must be correctly transcoded.

Use case:

  • locally the Job is encoded in UTF-8
  • on the z/OS mainframe system, we want the Job, and Data in sysins, to be encoded in EBCDIC IBM-1147 (France)

However, encoding management is not provided for in the processing of Jobs by Zowe CLI (and probably z/OSMF) . It seems to us that the transcoding is done from UTF-8 to EBCDIC IBM-037 (US) or (EBCDIC IBM-1047 ?), which does not suit us.

The same problem arises for the retrieval of reports and outputs produced by the execution of a Job. In our case we must apply a transformation from EBCDIC IBM-1147 to UTF-8 and not from EBCDIC IBM-037 (or EBCDIC IBM-1047) to UTF-8.

@t1m0thyj t1m0thyj added the enhancement New feature or request label Sep 27, 2022
@github-actions
Copy link

Thank you for raising this issue.
The community has 90 days to upvote 👍 the issue.
If it receives 5 upvotes, we will move it to our backlog. If not, we will close it.

@t1m0thyj
Copy link
Member

This would be a nice enhancement on the z/OS Jobs SDK:

Once the enhancement is made on the SDK, we can also add an --encoding option to the relevant CLI commands.

@t1m0thyj t1m0thyj added the for-review To be reviewed in an Eng & Prod Mgmt meeting label Sep 27, 2022
@FALLAI-Denis
Copy link
Author

FALLAI-Denis commented Sep 28, 2022

Hi,

About X-IBM-Intrdr-Mode header of submit job z/OSMF API:

X-IBM-Intrdr-File-Encoding
This optional header specifies that the EBCDIC code page is to be used for encoding the data that is written to the internal reader.
If not specified, the default is IBM-1047. 
This header is ignored when optional header X-IBM-Intrdr-Mode is set to RECORD or BINARY.
This header is effective only when the JCL for the job to be submitted is included in the HTTP request body.
This header is ignored when the job to be submitted resides in a data set or UNIX file.

For spool retrieval, there is no equivalent header. So spool file must be retrieve with a mode=text;fileEncoding=code-page query parameter on the URI.

mode=text;fileEncoding=code-page
Specifies an alternative code page (EBCDIC) for the spool file on z/OS; the encoded text is converted to the client's request encoding. 
If not specified, the default code page is IBM-1047. 

Regarding sites that work with the IBM-037 code-page on MVS (default code-page), I wonder about the conversion problems they may have when submitting a job or when recovering a spool, because we also have to apply a transcoding from IBM-1047 to UTF-8, and I don't think there is any equivalence between IBM-037 and IBM-1047.

@zFernand0 zFernand0 added priority-medium Not functioning - next quarter if capacity permits and removed for-review To be reviewed in an Eng & Prod Mgmt meeting labels Oct 7, 2022
@zFernand0 zFernand0 added enhancement New feature or request and removed enhancement New feature or request labels Mar 8, 2023
@github-actions
Copy link

github-actions bot commented Mar 8, 2023

Thank you for raising this enhancement request.
The community has 90 days to vote on it.
If the enhancement receives at least 5 upvotes, it is added to our development backlog.
If it receives fewer votes, the issue is closed.

@awharn
Copy link
Member

awharn commented May 16, 2024

This change has been staged, and will be available in version 7.25.0 with the --job-encoding IBM-1147 option on the zowe jobs submit local-file and zowe jobs submit stdin commands. For downloading spool files, we also now accept the --encoding option on the download commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-upvoted enhancement New feature or request priority-medium Not functioning - next quarter if capacity permits
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants