Skip to main content

This article explains how to determine the status of an Enterprise Server server when issuing a command in .bat.

Problem:

While issuing an Enterprise Server command in .bat, there is no function to evaluate the status of the ES server. It is not known whether the server has been started before. Is there a way to find out?

Resolution:

The status of the Enterprise Server server may be determined indirectly after calling a function like CASSI or CASFILE. If a server is not started, the errorlevel will be greater than zero.

For example:

runm casfile -rESZVKPA -dZRAKTBE -oc -ed

(IF errorlevel 01 GoTo Closerror)

(IF errorlevel 12 GoTo nofile)

(IF errorlevel 16 GoTo noserver)

Old KB# 14305

#Enterprise
#netexpress
#Server
#EnterpriseServer
#COBOL