Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Send Network File (SNDNETF) command sends a save file or a member of a physical database file to another user on the local system or on a remote system through the SNADS network. This command can be used to:
When the file arrives at its destination, a notification message is sent to both the recipient and sender of the file.
When a source physical file is sent, the source sequence number and change date in positions 1 through 12 of the record are sent with the file. These are kept if the file is received into a source physical file, and are truncated if the file is received into a nonsource physical file. When a file that was originally a nonsource physical file is received into a source physical file, the source sequence numbers are created and placed in front of the records.
Note: Save files created on the AS/400 system cannot be distributed to System/38. However, save files created on System/38 can be distributed to the AS/400 system.
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 current job CCSID to the multinational character set 697/500.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FILE | File | Qualified object name | Required, Positional 1 |
Qualifier 1: File | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
TOUSRID | User ID | Values (up to 50 repetitions): Element list | Required, Positional 2 |
Element 1: User ID | Character value | ||
Element 2: Address | Character value | ||
MBR | Member | Name, *FIRST | Optional, Positional 3 |
TOTYPE | To file type | *FROMFILE, *DATA | Optional |
CLASS | VM/MVS class | A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 | Optional |
FORMAT | Send format | *V, *F, *U | Optional |
PTY | Send priority | *NORMAL, *HIGH | Optional |
Top |
Specifies the name and library of the file that is sent. The file being sent can be a physical file or a save file; logical files and device files are not allowed. Overrides to the specified file are ignored.
This is a required parameter.
The possible library values are:
Top |
Specifies the two-part user ID of one or more users to whom the file is being sent, or the name of one or more distribution lists containing the user IDs of one or more users to whom the file is being sent. A combination of user IDs and distribution lists can be specified on the same command. Each user ID or distribution list is specified as a two-part name, and both parts are required.
This is a required parameter.
You can enter multiple values for this parameter.
Top |
Specifies the member that is sent from the file. A member name is not allowed if the file is a save file.
Top |
Specifies, when you send a source file, whether the sequence numbers and date fields are to be removed from the transmitted copy of the file. The source file is not changed. This parameter is not valid for non-source files.
The possible values are:
Top |
Specifies the VM/MVS SYSOUT class for distributions sent to a VM host system or to an MVS host system.
The possible values are:
Top |
Specifies the record format in which the network file is transmitted.
The possible values are:
Note: Specifying FORMAT(*F) may increase the amount of storage and time required when transmitting the network file. Specifying FORMAT(*U) also requires that the receiving system must have a database file created with the identical field mappings as the file being sent, in order to receive the file correctly.
Top |
Specifies the queuing priority used for this file when it is being routed through a SNADS network.
The possible values are:
Top |
Example 1: Sending a Member
SNDNETF TOUSRID((JONES SYSTEM1)) FILE(EMPLOYEE) MBR(PGMR)
This command sends member PGMR of file EMPLOYEE to the user identified to the network with a user ID of (JONES SYSTEM1). The library list is used to locate the file.
Example 2: Sending a Nonsource File
SNDNETF TOUSRID((JONES SYSTEM2)) FILE(EMPLOYEE) MBR(PGMR) TOTYPE(*DATA)
This command sends member PGMR of file EMPLOYEE to the user identified to the network with a user ID of (JONES SYSTEM2). The library list is used to locate the file. The file is being sent as a nonsource file removing the sequence numbers and date fields.
Top |
*ESCAPE Messages
Top |