PDA

View Full Version : VBA code running on Emulator to FTP



abhi999
11-01-2007, 07:39 AM
Hello All Gurus ,
I need a samll help from you guys , I had been running a VBA script which is via emulator 3270 for z/OS .
Problem is it is all working till FTP connect but when I am trying to do FTPSend it is failing , the Input file is also getting created properly.
There are no syntax error nothing , I am not able to figure out what is the issue ,Please help asap, respective code is enumerated as mentioned below ::banghead:
FTPConnect FTPHost ,User, pass
If NM_ResultCode = 4 Then
Print NM_ResultText
End If
If NM_ResultCode = 0 Then
(Failing below, no Syntax error but it is not able to send the Output_file)
FTPSend "Output_File","Output_Mvs", "ASCII","REPLACE"
FTPDisconnect
Else
Print NM_ResultText
End If
HandelError:
Print "Error receiving text or cursor postion. Script terminated."

Ivan F Moala
11-19-2007, 02:09 PM
What is the routine for the FTPSend