Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RMCobol Compiler Output Question

Status
Not open for further replies.

klophockey

Programmer
May 25, 2016
41
US
I am compiling a Cobol program with the RMCobol compiler in the Unix Linux environment.

I have successfully compiled the program with RMCobol but I would like to see text for the warning messages it generates.

The output of the compile is: Compilation complete -- Programs: 1, Errors: 0, Warnings: 131.

The program executes and puts out the expected program results, so the warnings do not seem to affect the results.

However, I was wondering how/where I could see a compile listing with the warning messages shown.

Seeing these messages may help me to make the code clean in the event I am not using the best practices in coding.

Thank you very much.
 
It appears that the 'K' option is being put in the configuration file which says Suppresses the banner message and the terminal error listing. I would assume that is where the warning messages would be. Am I correct? If I am correct, I could take this out during testing and put it back when ready to run the program in a Production environment.
Further information regarding the 'K'option says Use the K Option to suppress the banner message and the terminal error listing. This is useful when you are running under batch files or shell scripts
I am running the program under batch files. Therefore, I think it would be prudent to keep the 'K' option after I have done my test session analysis.
Do you agree with that statement as well.

Thank you very much for responding to my question. I am a novice regarding RMCobol but certainly willing to learn how to use it.
 
Unfortunately I have no experience with this COBOL compiler either.
But in my opinion the K-option suppresses output which otherwise will be printed every time when the program runs (banner and terminal error listing - don't know what is terminal error listing).
The compiler listing will be produced only once when the program is compiled and in my opinion, the L-option is for this purpose (see description of both options - manual p.150).
I would try on the command line
this command
Code:
[b]rmcobol [i]source_file.cbl[/i] L=.[/b]
which should produce the compiler listing in the current directory (see the manual p.149)
or this with negating the K-option with tilde (~)
Code:
[b]rmcobol [i]source_file.cbl[/i] ~K L=.[/b]
 
I have a LOT of experience with RM/COBOL.[bigsmile]

Use the L option to specify a listing directory. So, to use mikrom last example, L=. produces a listing in the current directory. You may also use the E option to specify an 'error only' listing directory.

You may find RM/COBOL documentation here. Micro Focus acquired Liant (nee Ryan McFarland) some years ago and continues to publish RM/COBOL. Compile options are described in the User's Guide.

Tom Morrison
Consultant
 
Thank you for sharing the information. You are very kind to do so and I greatly appreciate you taking time to share your expertise.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top