Absent Member.
Absent Member.
1586 views

CobolJVM with EXEC SQL and XML GENERATE

Jump to solution

[Migrated content. Thread originally posted on 16 February 2011]

Hi,

i'm trying to make a sample in Visual Cobol with CobolJVM.
I want to use SQL and generate XML files.

But when i use XML GENERATE i get the following compilation error :

[cobol] COBCH1545S Feature not yet supported when compiling for JVM

Is this for a next release ?

When i want to use EXEC SQL i get the following compilation error :

[cobol] * ILOUTPUT"C:\viscob\RMCobolJava\bin\" ERRFORMAT(2) NOQUERY NOERRQ
[cobol] COBES0123S Invalid ILTARGET - can not use ILTARGET(ANYCPU) - must specify ILTARGET(X86), ILTARGET(X64) or ILTARGET(ITANIUM)


Now when using CobolJVM we just want to avoid having multiple versions of the software for multiple platforms,
so adding X86 or X64 is not really want one wants to do for a java application.

After adding $set ILTARGET(X86) in the source i get the following when compiling :

[cobol] Execution error : file 'ilgen'
[cobol] error code: 114, pc=0, call=1, seg=0
[cobol] 114 Attempt to access item beyond bounds of memory (Signal 11)

Am i using the wrong directives ?

Regards,

Renzo
0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert
The COBOL JVM product is in an early release state and as such it does not currently support all the features that are available in the Visual COBOL for Visual Studio or Visual COBOL for Eclipse native Windows or Unix versions.

I don't believe that the EXEC SQL embedded preprocessors are available yet.

The IL set of directives are for generating managed code in the .NET environment only.
They cannot be used when generating JVM code.

If you wish to maintain one set of source between the two environments you will need to remove the IL directives from the source itself and place them in a directives file such as COBOL.DIR.

You can then maintain a separate set of directives between the two platforms, if necessary.

Product Management will have to chime in here to tell you about future availability of product features in the JVM product as I am really unsure about the roadmap for this.

View solution in original post

0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert
The COBOL JVM product is in an early release state and as such it does not currently support all the features that are available in the Visual COBOL for Visual Studio or Visual COBOL for Eclipse native Windows or Unix versions.

I don't believe that the EXEC SQL embedded preprocessors are available yet.

The IL set of directives are for generating managed code in the .NET environment only.
They cannot be used when generating JVM code.

If you wish to maintain one set of source between the two environments you will need to remove the IL directives from the source itself and place them in a directives file such as COBOL.DIR.

You can then maintain a separate set of directives between the two platforms, if necessary.

Product Management will have to chime in here to tell you about future availability of product features in the JVM product as I am really unsure about the roadmap for this.

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.