WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: winbatch2017u on May 18, 2017, 01:26:45 PM

Title: moving winbatch scripts from window 2003 server to window 2012 r2 server
Post by: winbatch2017u on May 18, 2017, 01:26:45 PM

line 127 on script error  below begin=ibegin(0,"", "")
ConnectToCHPMainframe


     BeginHandle=iBegin(0, "", "")
     MFHandle=iHostConnect(BeginHandle, MFHostname, @FTP, MFUser, MFPW)

     If MFHandle == 0
          CurrentDateTime=TimeYmdHms()
          FileWrite(LogHandle, "***** ERROR! Failed to Connect to CHP Mainframe - Aborting Job - %CurrentDateTime% *****")
          ESPReturnCode=16
          GoTo FinishJobWithError
     EndIf
Title: Re: moving winbatch scripts from window 2003 server to window 2012 r2 server
Post by: td on May 18, 2017, 01:34:51 PM
The AddExtender function will generate a 1394 error, if a you do not have the extender installed - or 1437 if you are loading an extender with the wrong bitness.  So either the AddExtender call to load the WinInet extender is not getting called or it is wrapped in an error handler so that it doesn't get a chance to display an error.
Title: Re: moving winbatch scripts from window 2003 server to window 2012 r2 server
Post by: winbatch2017u on May 19, 2017, 04:31:29 AM
thanks for help i will check these things