Hi All,
I have tried to change a string of length 3 with another string of length 4 but the output is not coming as expected. I have tried with findrep parameter of sort utility but it didn't give the desired result.
Example:
Input:
DEVTEST
DEVUAT
DEVPROD
Expected output:
DEV1EST
DEV1AT
DEV1ROD
Note: postition of start of DEV string in input file is not known.
Please assist. Thanks!
Replace a string with another string with different length
-
Devrana
- Posts: 17
- Joined: Tue May 17, 2022 12:57 pm
- Skillset: Mainframe Developer
- Referer: Through Colleague
- sergeyken
- Posts: 473
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: Replace a string with another string with different leng
JCL has no operations for such manipulation.
Please, choose the forum section for different tools: COBOL? Assembler? PL/I? REXX? SORT? Whatever else?
The important issue: you must present here the exact code of your attempts, plus all input/output/log data of its execution. Otherwise there is no base for any discussion.
Please, choose the forum section for different tools: COBOL? Assembler? PL/I? REXX? SORT? Whatever else?
The important issue: you must present here the exact code of your attempts, plus all input/output/log data of its execution. Otherwise there is no base for any discussion.
Javas and Pythons come and go, but JCL and SORT stay forever.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 4
- 3477
-
by sergeyken
View the latest post
Mon Jun 26, 2023 12:56 am
-
-
How To display the count based on a specific string?
by Chintu333 » Fri Aug 19, 2022 12:59 am » in DFSORT/ICETOOL/ICEGENER - 3
- 3131
-
by sergeyken
View the latest post
Fri Aug 19, 2022 8:52 pm
-
-
-
Finding duplicate in variable lenght string in cobol
by kanipriya2785 » Fri Jun 17, 2022 10:02 pm » in IBM Cobol - 8
- 5199
-
by sergeyken
View the latest post
Wed Jun 22, 2022 3:10 am
-
-
-
Copy partial record after a string in a record using SORT.
by Esmayeelhusen » Thu May 04, 2023 3:03 pm » in DFSORT/ICETOOL/ICEGENER - 16
- 10007
-
by Esmayeelhusen
View the latest post
Mon May 22, 2023 3:50 pm
-
-
-
Convert fixed-length input records to variable-length output
by xcspg3 » Wed Oct 23, 2024 1:45 pm » in DFSORT/ICETOOL/ICEGENER - 5
- 3273
-
by sergeyken
View the latest post
Wed Oct 30, 2024 1:09 pm
-