Getting cobconfig to work.

I saw a post on how to get MF Visual Cobol to print to a USB printer, instead of the default LPT1. However, it was not as descriptive as I would have hoped. Since I have not worked with Cobol since 1995 and went into the business world using Fortran after that class, I never found the need to set environment variables. I also never used MF Cobol before now. The one post states to create a file called cobconfig.cfg and then set the cobconfig environment variable to point to that file. Well, I have tried a couple of ways on my own and could not get it to set the environment variable of cobconfig and work. Any help that someone can provide in getting the cobconfig environment variable to work in MF Visual Cobol for Visual Studio 2012 would be greatly appreciated. I've looked far and wide on the net and have not yet found any specific help. I did get the old program to work via sending the output to a file, but I want to get it to work as originally intended to a printer and not to the old LPT1 port. A specific example of how to set the variable would be great.

Parents
  • I will implement this suggestion. I was trying to set cobconfig from within the program itself and that seems to be my problem. Since I was not using a command line compiler like I did in the old days, setting it from what I will call the DOS prompt way totally slipped my mind and the Visual Studio tip will most likely do the trick. I set it in Windows and that did not work. I will let you know how it turns out. Thank You!

Reply
  • I will implement this suggestion. I was trying to set cobconfig from within the program itself and that seems to be my problem. Since I was not using a command line compiler like I did in the old days, setting it from what I will call the DOS prompt way totally slipped my mind and the Visual Studio tip will most likely do the trick. I set it in Windows and that did not work. I will let you know how it turns out. Thank You!

Children
No Data