I have used the Fujitsu COBOL for same time. And it has a very usefull feature. On the assign item, I can use a ID without declare it. So, on a external file, I can define it as a ALIAS. Let say if a use the ID like "SELECT DADOS-EMPREGADOS ASSIGN TO FIL-EMP-TIME.", the external file will has a line like "FIL-EMP-TIME=C:\DATA\EmpWorkTime.dat". But there is some compilers that allow me to use a ENVIMENT variable with the "FIL-EMP-TIME", and make it point the full file path ("SET FIL-EMP-TIME=C:\DATA\EmpWorkTime.dat").
I guess it will be a nice feature to implement on OpenCOBOL. It'll allow us to have the same code for PC and mainframe and we can test the code without changes.
Log in to post a comment.