CL Command Reference - SNDNETF

CL Command List > SNDNETF Reference

Description:

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:
. Send data files to a user.
. Send source files to a user. Source sequence information is kept in the file sent.
. Send other object types stored in a save file to a user.

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:

1. The user must be enrolled in the system distribution directory.

2. The maximum size of a file that can be sent using the SNDNETF command is approximately 2 billion bytes.


Examples:

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.