Highlighted
Absent Member.
Absent Member.
3077 views

ACUCOBOL windowing in Visual COBOL?

Jump to solution

[Migrated content. Thread originally posted on 19 August 2011]

I'm looking into migrating a system to Visual COBOL (at which I am a complete newbie) from Server Express 5.1. I threw the 268 programs that I have into the evaluation copy of VC for Eclipse and 265 of them compiled. The remaining three are quite important, as they are routines to handle pop-up windows, which we use a fair bit. They use the ACUCOBOL windowing syntax, which is implemented on Server Express by using the "window1" preprocessor directive. However, VC isn't happy with this. My understanding is that VC was partly introduced as a way of bringing ACUCOBOL, RM/COBOL and MF COBOL together, so I imagine that there is a way of using this syntax. I've tried omitting the preprocess directive completely, but that throws up compilation errors. Could anyone tell me what I need to do?
0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.

RE: ACUCOBOL windowing in Visual COBOL?

Jump to solution
What I did in the end was rewrite the modules concerned to use PANELS. The documentation is here. I only had four modules to rewrite, it would have been a different proposition if we'd had large numbers.

View solution in original post

0 Likes
7 Replies
Highlighted
Absent Member.
Absent Member.

RE: ACUCOBOL windowing in Visual COBOL?

Jump to solution
Thanks for that. I've now tried compiling with the ACU directive (after removing the SPZERO which is incompatible with ACU, which has been used as a substitute for proper coding by my predecessors) and I get

COBCH1544E ACU ACCEPT/DISPLAY extension is not supported

so I suspect I might need to use the ACUOPT directive and specify a particular ACUCOBOL directive but the documentation tells me to look at my ACUCOBOL documentation, of which I am sadly devoid.

I've also found that one of the programs crashes VC Eclipse when I try to load it into the IDE editor. It's not exactly huge but VC Eclipse disappears while building the object model:

$set acu

program-id. pnclosew.

linkage section.

01 lk-active-window pic x(10).

procedure division using lk-active-window.

main section.

close window lk-active-window.

goback.


Is it something I'm doing? Other programs (including the other two using ACUCOBOL syntax) don't crash it, though I haven't been through every single one.
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: ACUCOBOL windowing in Visual COBOL?

Jump to solution
I have tried your program in the latest sources of the Eclipse IDE and can confirm that it does indeed crash during the creation of the SourceModel while background parsing the program.
Out of interest, it seems to be the 'close' statement in this particular program which is sending it off into an infinite loop.
I have raised a bug report for it (RPI number 585298). Many thanks for bringing this to our attention.

Regards,
Darren.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: ACUCOBOL windowing in Visual COBOL?

Jump to solution
We're also Acucobol customers considering migration to Visual COBOL. Working with an evaluation copy of Eclipse & Visual COBOL, and I'm getting the same error message as MikeF posted in this thread:

COBCH1544E ACU ACCEPT/DISPLAY extension is not supported

I'm running with the ACU directive. Was going to try the ACUOPT directive, but couldn't see how a compiler option would figure in here. I didn't see an answer regarding this error; did it get resolved?
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: ACUCOBOL windowing in Visual COBOL?

Jump to solution
The ACU Windowing syntax which was present under Net Express/Server Express using the window1 preprocessor directive is currently not supported in the Visual COBOL product.

An enhancement request for this feature was made and it is being considered for inclusion in a future version.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: ACUCOBOL windowing in Visual COBOL?

Jump to solution
What I did in the end was rewrite the modules concerned to use PANELS. The documentation is here. I only had four modules to rewrite, it would have been a different proposition if we'd had large numbers.

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: ACUCOBOL windowing in Visual COBOL?

Jump to solution
Mike,

Thanks so much for taking the time to post your solution!
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.