Skip to content

Instantly share code, notes, and snippets.

@BirgittaHauser
Created December 21, 2022 12:54
Show Gist options
  • Save BirgittaHauser/f0751929e9bef825d043e756ed6be9b5 to your computer and use it in GitHub Desktop.
Save BirgittaHauser/f0751929e9bef825d043e756ed6be9b5 to your computer and use it in GitHub Desktop.
Replace Characters in an IFS file
-- 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