ReceiveFile

Initiates an IND$FILE file transfer download from the Mainframe host system.

Parameters
ReceiveStr
IND$FILE Receive 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 ReceiveStr command parameters correspond to what you would normally enter at the DOS prompt. The following example, receives the file SLSREPRT from the host system to the PC file C:\BlueZone\Transfer\Sales.Rpt through a BlueZone session having the short name session ID of "A":
Example
Set bzhao = CreateObject( "BZWhll.WhllObj" )
bzhao.Connect "A"
bzhao.ReceiveFile "C:\BlueZone\Transfer\Sales.Rpt A:SLSREPRT (ASCII CRLF)"