
 
  
         
          
  
            
            The JAVA_SHAREABLE directive indicates whether the WORKING-STORAGE items in the current native COBOL program are accessible to Java programs.
>>JAVA-SHAREABLE=ON|OFF
The default is OFF - no data shared.
If you are using this directive under DIALECT"ENTCOBOL", we recommend that you also compile with the NOFOLDCALLNAME directive, to preserve the case of the PROGRAM-ID name.
In the example below, grp1 below would be accessible to a Java program, but grp2 would not.
       program-id. "demo".
       ...
       working-storage section.
       >>JAVA-SHAREABLE ON 
       01 grp1.
          03 i1 pic 9(8) comp-5 value 88888889.
          03 i2 pic 9(8) comp-5 value 01234578.
       >>JAVA-SHAREABLE OFF
       01 grp2.
          03 i1 pic 9(8) comp-5 value 22222229.
          03 i2 pic 9(8) comp-5 value 08765432.    
       ...