Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dancarlosgabriel/55a9c040361b8e2dfb0ffea113bd28ad to your computer and use it in GitHub Desktop.
Save dancarlosgabriel/55a9c040361b8e2dfb0ffea113bd28ad 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