If you run FILEDATA with a CONTAINER modifier, FILEDATA accesses the internal file attributes of wrapped files within a container. A container is a byte stream data file that holds one or more wrapped or packaged files. If the container is encrypted, only the names of the files within it are available.
When the container is accessed to obtain the internal file attributes of wrapped files, FILEDATA uses the DIRECTORY or TITLE modifier to select the files. The DIRECTORY or TITLE modifier is specified using WFL syntax. When no DIRECTORY or TITLE modifier is specified, the default is an equal sign (=). If FILEDATA is run under a privileged usercode, ‘‘*='' must be specified to access all files in a container. FILEDATA accesses only those files that can be copied under the user's security privileges.
When FILEDATA calls the MCP to unwrap files from a container, the MCP might issue error messages. These messages do not show in the report that FILEDATA prints but can be found in the job summary.
Examples
The following commands produce file information on all the files in the container C/SOURCES if one of the following conditions applies to the program:
-
It is being run under a privileged usercode (specify the directory using “*=”)
RUN *SYSTEM/FILEDATA("FILENAME: DIRECTORY=*= CONTAINER=C/SOURCES")
-
It is being run from an ODT
RUN *SYSTEM/FILEDATA("DEFINEOUTPUT:MEDIATYPE=SPO; ATTRIBUTES:CONTAINER=C/SOURCES ALTERDATE CREATIONDATE")
The following example shows how any user running under a usercode, privileged or not, can obtain file information about his files in a container.
RUN *SYSTEM/FILEDATA("ATTRIBUTES: ALL CONTAINER=C/SOURCES")