I am having a query. I am having a Sequential File which is Pipe Delimited (|) Having LREL = 80 & Recfm=FB. I need to look for a specific String & replace with new string. Below is example & my requirement.
ABCDEFGH Store Board Hello How R U|Great To See You All In Mainframeforum|I am Having Problem with String|Need to Replace word Store Board|
Here I need to Replace the Word "Store Board" with "Giant". Issue is when I am using FIND / REPLACE Option I am able to Replace the word but O/P file is not having correct format i.e. Position of Pipe Delimiter (|) gets Disturbed. Is there a way to over come the issue i.e. Spaces can be padded. Below is Exapmple.
ABCDEFGH Store Board Hello How R U|Great To See You All In Mainframeforum|I am Having Problem with String|Need to Replace word Store Board| --> I/P String
ABCDEFGH Giant Hello How R U|Great To See You All In Mainframeforum|I am Having Problem with String|Need to Replace word Giant| --> This is the O/P I am getting (Pos. Of Pipe Delimter Changed)
Expected: Spaces to be padded.
ABCDEFGH Giant Hello How R U |Great To See You All In Mainframeforum|I am Having Problem with String|Need to Replace word Giant |
O/P file has same attribute as I/P file.
Rgd's