Encoding issues with zos_job_submit #1003
Replies: 2 comments 1 reply
-
Hi @fabiobncbb - I believe you have encountered this issue #677, my assumption is what is happening is that there is nothing wrong with the job such that you should be trying to change the encoding, the issue I believe is that the jobs output contains a non-printable UTF-8 char and when Python encounters a character it can not convert, it prints this error. According to this error its the start byte in the job log, try to view the job in HEX and then search a UTF-8 list of HEX values and likely what you will find is that there does not exist a corresponding value, hence the error. I often see this happen when compile and linking is in the job such as your second posted job which is performing a LINKEDIT. The fix will come in approximately at the end of Q1 2024. Some other work arounds might be to try to use |
Beta Was this translation helpful? Give feedback.
-
Hi @ddimatos ! I believe this is exactly my problem! |
Beta Was this translation helpful? Give feedback.
-
I'm having a coding problem when using the zos_job_submit module.
I have two tasks that perform practically the same thing: edit a unix file, copy it to a pds library as a member and then submit the job.
One of the tasks is executed normally.
The other returns the following error:
I've already tried changing the encoding everywhere (when copying from unix to pds, when running the job, etc.). I used everything that made any sense (utf-8, iso8859-1, ibm1047).
I've already checked the pds profile and they are exactly the same (the job that works and the one that doesn't).
I checked in the job that doesn't work if there is any special character that could be causing a problem and I didn't find it either.
This is the job submited and thats ends ok:
CICALOC.txt
This is the job that receive the error:
CICEZAC.txt
Does anyone have any ideas on how I can identify what is causing this?
Beta Was this translation helpful? Give feedback.
All reactions