Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: Visual COBOL Environment Variables Not Working on Linux

$
0
0

Thank you, Blair

   I tried your instruction,  it still did not work for me.  I found the reason for that issue:

In COBOL code, no matter I use Upper or Low case for Environment Variable.  The COBOL executable is always looking for UPPER CASE variable, e.g.

Select InFile assign datain.   --- > at run-time, COBOL expects DATAIN (not datain)

On Windows System, it does not matter if the environment variable is defined as

datain   = PATH to the file

or

DATAIN = PATH to the file

Because Windows is case-insensitive OS, but on LINUX, datain and DATAIN mean 2 things.

I think it would be better -- in Visual COBOL, automatically convert any environment variable with all CAPITAL letters. (force to use UPPER case at design time, or convert to UPPER case at run-time, either is good)

With that way, developer can easily move COBOL project between Windows and Linux.]

Thank you again for the help.

-Jack


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>