Skip to main content

Problem:

Sometimes when executing a Cobol program under a deployment environment you may encounter an Application Server for Net Express Semaphore error.

Resolution:

One way that this can be accomplished would be to use a BAT file to drive the execution of the program.

An example would be as follows;

@echo off

rem 0001 The license database for Net Express Application Server does not exist

rem 0002 ASLM: No license database header

rem 0003 The license database for Net Express Application Server cannot be opened

rem 0004 The license database for Net Express Application Server has been moved from its original location or removed and recreated

rem 0005 A checksum has failed in the license database for Net Express Application Server

rem 0026 No App Server License available for CGI

rem 0027 No license is installed for Net Express Application Server

rem 0028 All number Application Server Licenses are in use

rem 0044 ASLM: Semaphore failure.

rem 0045 No license is installed for Net Express Application Server

rem 0046 number system and number user license installed number in use

rem 0047 ASLM: Errno number

rem 0051 Your developer license for Net Express Application Server has lapsed

rem 0053 No license key was detected for Net Express Application Server

myprogram.exe

echo errorlevel: %errorlevel%

if errorlevel 53        goto err53

if errorlevel 51        goto err51

if errorlevel 47        goto err47

if errorlevel 46        goto err46

if errorlevel 45        goto err45

if errorlevel 44        goto err44

if errorlevel 28        goto err28

if errorlevel 27        goto err27

if errorlevel 26        goto err26

if errorlevel 5         goto err5

if errorlevel 4         goto err4

if errorlevel 3         goto err3

if errorlevel 2         goto err2

if errorlevel 1         goto err1

goto end

:err53

:err51

:err47

:err46

:err45

:err44

:err28

:err27

:err26

:err5

:err4

:err3

:err2

:err1

REM ***** do whatever action that you feel neccessary to stop further process

echo errorlevel was set to %errorlevel%

goto end

:end

Old KB# 1308