Skip to main content

Hi, we are working with Visual cobol in aix and we are starting with the generation of a json file with json statement of visual cobol.

We want exclude all the occurrs without value ( spaces in string case).

we write de supress condition

supress camp1 when spaces

but return a compilation error, ¿is this option of supress posible in visual cobol?

Hi, we are working with Visual cobol in aix and we are starting with the generation of a json file with json statement of visual cobol.

We want exclude all the occurrs without value ( spaces in string case).

we write de supress condition

supress camp1 when spaces

but return a compilation error, ¿is this option of supress posible in visual cobol?

Hi,

The WHEN phrase of the JSON GENERATE statement is supported in the upcoming version of Visual COBOL which is V8.0.

This version is due to be released within the next few weeks.


Hi,

The WHEN phrase of the JSON GENERATE statement is supported in the upcoming version of Visual COBOL which is V8.0.

This version is due to be released within the next few weeks.

Thank you very much for the clarification.
I have another question related to json.


From which version is it available the json parse statement?
whe are testing with visual cobol 3.0 and compilation returns error



Thank you very much for the clarification.
I have another question related to json.


From which version is it available the json parse statement?
whe are testing with visual cobol 3.0 and compilation returns error


JSON Parse was added in Visual COBOL 5.0. Just FYI, that's documented on this page.


JSON Parse was added in Visual COBOL 5.0. Just FYI, that's documented on this page.

However, if you are going to upgrade now, we recommend upgrading to the latest version currently available, Visual COBOL 7.0 Patch Update 9. Or as Chris mentioned, you may want to wait for Version 8, which is expected within the next few weeks.


However, if you are going to upgrade now, we recommend upgrading to the latest version currently available, Visual COBOL 7.0 Patch Update 9. Or as Chris mentioned, you may want to wait for Version 8, which is expected within the next few weeks.

it´s a great news.We know that we are working with a very old version and we plan to change as soon as possible.

our idea is to move to version 6 , and it is already a very big jump, we think that going to a hihger version is a bit risky