SendFile

Initiates an IND$FILE file transfer upload to the mainframe host system.

Parameters
SendStr
IND$FILE Send command string.
Returns
0 for success; or a non-zero error code. Refer to Error codes for a complete listing of error code descriptions.
Remarks
Script execution is suspended until the file transfer is complete. The SendStr command parameters correspond to what you normally enter at the DOS prompt.

The following example, sends the file SALES.RPT from your machine to the CMS file SLSREPRT on the host system through a BlueZone session having the short name session ID of “A”:

Example
Set bzhao = CreateObject( "BZWhll.WhllObj" )
bzhao.Connect "A"
bzhao.SendFile "C:\BlueZone\Transfer\Sales.Rpt A:SLSREPRT (ASCII CRLF)"