Forked from BirgittaHauser/ReplaceCharactersInIFSFile
Created
January 3, 2023 00:47
-
-
Save dancarlosgabriel/55a9c040361b8e2dfb0ffea113bd28ad to your computer and use it in GitHub Desktop.
Replace Characters in an IFS file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Retrieve the IFS file with GET_CLOB_FROM_FILE | |
-- Replace & with & | |
-- Write a new IFS file with the same name as the original file and replace the existing IFS file | |
Call Qsys2.Ifs_Write_Utf8(Path_Name => '/Home/Dir1/Dir2/YourIfsFile.csv', | |
Line => Replace(Get_Clob_From_File('/Home/Dir1/Dir2/YourIfsFile.csv'), | |
'&', '&'), | |
Overwrite => 'REPLACE', | |
End_Of_Line => 'NONE'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment