This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Compile Result about Visual Cobol

Hi , I'm using Visual Cobol for Eclipse on Redhat, trying to migrate from Server Express to Visual Cobol,

so I have to compare the Compile Result between them. and find out all reasons if difference exists.

I set verbose = true, then the compile result outputted,

On Server Express, here's the compile results for [list]

* Accepted - nolist
* Accepted - list("XXX1.lst")

but on Visual Cobol,

[cobol] * Accepted - NOLIST

[cobol] * Accepted - LISTPATH"Listing"

1  The [NOLIST] is the same , but why [list("XXX1.lst")] outputted on Server Express ?

    How to set compile option that makes Visual Cobol output it too ?

2  Visual Cobol outputted [LISTPATH] and Server Express did not. It is effect anything?

    If [LIST PATH] is only a message for reminding something, then I don't have to change it.

Thanks

Parents
  • Hi Zhang Xin,

    In Visual COBOL for Eclipse, the IDE sets a few compiler directives based on options offered in the COBOL settings dialogs. For example, the settings for the overall project can be set within Project Properties, at Micro Focus->Project Settings->COBOL.

    In that dialog, one of the options under Output is "Generate listing file". By default, this is set to No, but if you set it to Yes, your build within the IDE will create a listing file.  For example:

    You've noted the LISTPATH directive, which is internally set by the IDE. This specifies that when listing files are created, they are created in a "Listing" folder that's created within the Project directory at build time. 

    Hope that helps,

    Blair

  • Thanks for your response

    I've tried set [Generate listing file = Yes] on Visual Cobol, But if I did that, the [NOLIST]  not been outputted....

    Here's the difficult thing to understand, since the Server Express outputted [NOLIST],

    that means already set [Generate listing file = No]. But at the same time,[ Accepted - list("XXX1.lst")] outputted.

    So I think [list("XXX1.lst")] didn't means [Generate listing file = Yes] on Server Express.....

    I also checked Server Express Document, not found anything about [list("XXX1.lst")]

    Waiting for your response, thank you.

  • Suggested Answer

    The Eclipse IDE adds directives based on your selections on the COBOL dialog. These are added after any other directives you have specified. So even though you have specified NOLIST, it's overridden by the  [Generate listing file = Yes], which adds LIST("<pgmname>.lst") to the set of directives seen by the checker/compiler. This is why you no longer see NOLIST in the list of directives when using the Eclipse IDE in that case.

    You've mentioned not seeing [list("XXX1.lst")] in the Server Express documentation. The option for specifying a value with the LIST directive is mentioned in the docs, but it's called "destination", and described as a way of controlling which device the listing is sent to. However, in Server Express (and Visual COBOL), you can also use the LIST directive with a value to specify the name of the produced listing file. Here's a link to the page in the Server Express Docs:

    https://www.microfocus.com/documentation/server-express/sx51ws02/sx51ws02/rhcdir43.htm

  • Thanks for the response.

    Now I know the [listing file] is only for output errors and warnings.

    and the reason why Visual Cobol didn't output [NoList]

    Thank you.

Reply Children
No Data