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 have been fighting with the VA, so my mind is not all there right now. This is one of the reasons why I decided to mess around with my old programs, is to forget about it for a while. So, I forgot to add this information as well. My cobconfig,cfg file contains only this on a single line. set printer_redirection=TRUE. Is the all caps a problem? It may be this that you mentioned, since I don't know what that character is. newline character after the tuneable  My printer is set to the default printer and plugged into the port when executing the program in debug. I appreciate your time in helping me tackle this problem.

    Steven

Reply
  • I have been fighting with the VA, so my mind is not all there right now. This is one of the reasons why I decided to mess around with my old programs, is to forget about it for a while. So, I forgot to add this information as well. My cobconfig,cfg file contains only this on a single line. set printer_redirection=TRUE. Is the all caps a problem? It may be this that you mentioned, since I don't know what that character is. newline character after the tuneable  My printer is set to the default printer and plugged into the port when executing the program in debug. I appreciate your time in helping me tackle this problem.

    Steven

Children
No Data