If %ERRORLEVEL% GTR 0



  • We had an issue with our static data repository last night but no failure in Control-M (batch monitoring).
    Investigation led me to this special piece of code in our batch file to submit our request to Bloomberg.. (we are an investment bank)


    time /t

    Java -jar importbloombergdata.jar

    time /t

    If %ERRORLEVEL% GTR 0 (

      exit /B 1
    

    )

    It's good to know that once our important line of code has run we check to make sure there was no error in printing the time.



  • That's just there for the apocalypse did you not know your supposed to check for time not existing now ?



  • It's the getLastError/errorNum story all over again! When will people learn to stop using global variables for error information? It always leads to "Error: Success".


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.