Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

RMCobol Compiler Output Question

RMCobol Compiler Output Question

RMCobol Compiler Output Question

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.

RE: RMCobol Compiler Output Question

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.

RE: RMCobol Compiler Output Question

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 -->

rmcobol source_file.cbl L=. 
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 -->

rmcobol source_file.cbl ~K L=. 

RE: RMCobol Compiler Output Question

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

RE: RMCobol Compiler Output Question

Thank you for sharing the information. You are very kind to do so and I greatly appreciate you taking time to share your expertise.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close