Using file name from data area for reading IFS file [email protected] (Simon Hutchinson)

​[[{“value”:”The idea of this post came from a question I was asked. The questioner had a scenario where the name of an IFS file they needed read is in a data structure. They were unable to work out how to use the value from the data structure as the path name to read of the IFS file.
Let me start using ACS’s “Run SQL Scripts”, RSS, tool.
Before I can read a file in the IFS I need to create it. I can use the IFS_WRITE SQL procedure to do so:

01 CALL QSYS2.IFS_WRITE(‘/home/MyDirectory/test.txt’,
02 ‘First line’,
03 END_OF_LINE => ‘CRLF’)

Read more »”}]] Read More 

Verified by MonsterInsights