Retrieve the IFS Stream File (Magic xpa 3.x)
Note: Make sure the connection to IBM i is established before proceeding.
Use this function to retrieve the stream file text from an IFS directory. This function is similar to DSPF (Display a Stream File) and EDTF (Edit a Stream File). The syntax of the UDP is Invoke UDP ('MGEAC32.RTVSTMF', A, B, C, D, E), where:
-
A - A string variable representing the system name.
-
B - A string variable representing a stream file name, including a full directory path of a stream file location.
-
C - A string variable representing the temporary table library location.
-
D - A string variable representing the temporary table name for the retrieved stream file text. This is a required entry.
-
E - A numeric variable representing one of the following return codes, 0=successful or -1=Error.
The following example retrieves the stream file sample.txt from the /home directory:
Invoke UDP ('MGEAC32.RTVSTMF', SystemName, '/home/sample.txt', 'QTEMP','F255',retcode)
The retrieved file text can be viewed in the QTEMP/F255 file.
Display IFS Directory Entries
Update the IFS Stream File