Consulting

Results 1 to 2 of 2

Thread: VBA code running on Emulator to FTP

  1. #1
    VBAX Newbie
    Joined
    Nov 2007
    Posts
    1
    Location

    Question VBA code running on Emulator to FTP

    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 :
    [VBA] 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."[/VBA]

  2. #2
    VBAX Contributor Ivan F Moala's Avatar
    Joined
    May 2004
    Location
    Auckland New Zealand
    Posts
    185
    Location
    What is the routine for the FTPSend
    Kind Regards,
    Ivan F Moala From the City of Sails

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •