Example Batch File :
@echo off sales.exe if errorlevel==25 goto one if errorlevel==0 goto two goto error :one echo PB App returned 25 goto end :two echo 2 goto end :error echo error goto end :end
PowerBuilder Application CLOSE Event :
// Return code to DOS Message.LongParm = 25
Warning : The return code must be between 0 and 200. There are issues with the return code between 200 and 255.