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
- sergeyken
- Posts: 458
- 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
-
-
Add a string depending on pattern
by Prasanna G » Mon Jul 05, 2021 8:48 am » in DFSORT/ICETOOL/ICEGENER - 1
- 1344
-
by Prasanna G
View the latest post
Mon Jul 05, 2021 11:07 am
-
-
- 2
- 8422
-
by prino
View the latest post
Sat Mar 13, 2021 4:47 am
-
- 1
- 2987
-
by oliver07
View the latest post
Sat Oct 30, 2021 2:32 pm
-
- 4
- 2239
-
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
- 2104
-
by sergeyken
View the latest post
Fri Aug 19, 2022 8:52 pm
-