Skip to main content

json supress clause in Visual Cobol

  • June 24, 2022
  • 5 replies
  • 0 views

M Carmen De Paz
Forum|alt.badge.img+2

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?

5 replies

Chris Glazier
Forum|alt.badge.img+2

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.


M Carmen De Paz
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • June 27, 2022

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



Blair McDonald
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.


Blair McDonald

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.


M Carmen De Paz
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • June 27, 2022

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