Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Work with Network Files (WRKNETF) command displays or prints a list of files that have arrived for a user, or creates an output file containing a list of the files. When the list is shown, you can:
This command does not perform any CCSID translation on the contents of the file. However,the user ID and address of both the recipient and the originator are translated from the multinational character set 697/500 to the current job CCSID.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
USER | User | Name, *CURRENT, *ALL | Optional, Positional 1 |
OUTPUT | Output | *, *PRINT, *OUTFILE | Optional, Positional 2 |
OUTFILE | File to receive output | Qualified object name | Optional |
Qualifier 1: File to receive output | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
OUTMBR | Output member options | Element list | Optional |
Element 1: Member to receive output | Name, *FIRST | ||
Element 2: Replace or add records | *REPLACE, *ADD |
Top |
Specifies the user for whom the files are shown.
Top |
Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.
The possible values are:
Top |
Specifies the name and library of the database file to which the output of the command is directed. If the file does not exist, this command creates a database file in the specified library.
The possible library values are:
Top |
Specifies the name of the database file member that receives the output of the command.
The possible name values are:
The possible values for how information is stored are:
Top |
Example 1: Working with User's Network Files
WRKNETF
This command allows you to work with all network files for the user running this command. If the command is issued as an interactive job, the list of files is shown at the requesting work station. If the command is issued as a batch job, the list of files is printed with the job's spooled output.
Example 2: Printing Output
WRKNETF USER(USR1) OUTPUT(*PRINT)
This command allows you to work with the network files for USR1 and prints the output with the job's spooled output. This command can only be issued by USR1, a member of the USR1 group, or a user with security officer authority.
Example 3: Working with Network Files for All Users
WRKNETF USER(*ALL) OUTPUT(*OUTFILE) OUTFILE(NETFILES)
This command allows you to work with the network files for all users and is written to the first member of a database named NETFILES. If the file exists in a library on the library list, the existing file is used; otherwise, the file is created in the QGPL library. If the file did not exist, or did not contain any members, a member with the same name as the file is added to the file; otherwise, the first member of the file is cleared and used. This command can be issued only by a user with security officer rights.
Top |
*ESCAPE Messages
Top |