NewPhysicalFile Method

Create a new physical file on the FTP server.

ConnectionObject.NewPhysicalFile(Name[, FileType], SourceLibrary, SourceFile[, SourceMember], RecordLength, Member)

Version Support

Obsolete from Version 11.0 onwards. Some older solutions may contain instances of this action. Run the compatibility report to identify any use of this action and remove it from your solution.

TIP:

For solutions that contain obsolete FTP methods (NewLibrary, NewMember or NewPhysicalFile), a potential work-around is to call the Quote method with the host command that is the equivalent of the obsolete method.

Client support

   Newlook Smartclient only.

Arguments

Name – (String, Required)

Name of the new physical file.

File Type – (String, Optional)

Specifies whether the file contains data records or source records (statements). Valid values are:

Source Library – (String, Required)

Specifies the library name of the file that contains the DDS used to create the physical file. This parameter should be set to one of the Source Library constants.

Source File - (String, Required)

The name of the source file that contains the DDS definition.

Source Member – (String, Optional)

Specifies the name of the file member that contains the DDS definition. The file can be typed here otherwise specify the constant FTPFileSrcMbrFile to use the same name as that specified in the file name argument.

Record Length – (Integer, Required)

If no source file has been used (no DDS definition) then this parameter specifies the length (in bytes) of records stored in the physical file.

Member – (String, Required)

Specifies the name of the physical file member added when the physical file is created. This parameter should be set to one of the Member constants.

Applies to

FTP Connection object

See Also

FTPConnect Method | Disconnect Method | Upload Method | ChangeFolder Method | Download Method | NewFolder Method | NewLibrary Method | NewMember Method | NewPhysicalFile Method | Quote Method | Rename Method


© 2004-2021 looksoftware. All rights reserved.