Display IFS Directory Entries (Magic xpa 3.x)
Note: Make sure the connection to IBM i is established before proceeding.
Use this function to retrieve a list of names of specified objects in the IFS directories. This function is similar to IBM i command WRKLNK (Work with Object Link). The syntax of the UDP is Invoke UDP ('MGEAC32.DSPIFSDIR', A, B, C, D, E)
Where:
-
A - A string variable representing the system name.
-
B - A string variable representing a directory name.
-
C - A string variable representing the temporary table library location. The default library name is QTEMP.
-
D - A string variable representing the temporary table name for the retrieved IFS directory entries. The default table name is MGDIRLST.
-
E - A numeric variable representing one of the following return codes, 0=successful or -1=Error.
The following example retrieves all entries from the IFS root directory. The root entries can be viewed in the QTEMP/MGDIRLST file:
Invoke UDP ('MGEAC32.DSPIFSDIR', SystemName, '/', ", ",retcode)
Retrieve the IFS Stream File
Update the IFS Stream File