Skip to content

Regex in zos_lineinfile #907

Closed Answered by ddimatos
fabiobncbb asked this question in Q&A
Jul 21, 2023 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

I tried this on the supported ZOAU 1.2.2 and ibm_zos_core version 1.6.0 and found that there is a bug in our dependency, thus I have opened a bug with them and noted this is a community reported issue #913 , please follow the issue 913 for resolution. I am provide some work around below, I am happy to discuss them further but for now it seems we can consider this mitigated and close the issue.

The are some work arounds I can think of:

  1. Use zos_copy and copy the content to USS, tag it (*chtag) as UTF-8 and then use the community blockinfileorshellmodule to runsedorawkcommands from USS, thenzos_copy` the data back to the data set.
  2. Use zos_encode to encode the data set to USS as UTF8, then u…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@fabiobncbb
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ddimatos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Bug Something isn't working as designed.
2 participants