Highlighted
Absent Member.
Absent Member.
1410 views

Dialog System with Visual Cobol

Jump to solution

Hello,


i'm trying to migrate from NetExpress 5.1 to Visual Cobol.
Our program uses Dialog System Screens.

In NetExpress runtime and delevopment environment everything is working fine.

Bur when I run the migrated program under Visual Cobol development or runtime environment I get an error message.

The error message which shows up is from the dsrunner.

"Sub-program call failles. Continuing without. Sub-program name is .\BFSSMAIN"

The error happens on the first call of the dsrunner.

The code of call looks like:

Working Storage:

01      MAIN-PARAMETERS.

           03    main-param-version-no           pic    9(2)    value zero.

           03    main-initial-screenset              pic    x(256)    value space.

           03    main-options                              pic    9(4)    value zero.

Procedure Division:

move            1                      to        main-param-version-no

move      screenset            to        main-initial-screenset                      (screenset is filled with the name of the screen "BFSSMAIN")

move            0                      to        main-options

call 'DSRUNNER' using MAIN-PARAMETERS

When i click on "OK" on the error Message the Dialog System screen "BFSSMAIN" will be loaded and everything is working fine.

The behavior is on both environments eaqual development and runtime.

I need to appologize my poor english.

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Dialog System with Visual Cobol

Jump to solution

Hello,

The problem is that you do:

move 0 to main-options

You should do instead:

move 1 to main-options

According to the documentation "Options should contain 0 for launch and 1 for load."

Regards,

–Ғɑɳօ

View solution in original post

0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Dialog System with Visual Cobol

Jump to solution

Hello,

The problem is that you do:

move 0 to main-options

You should do instead:

move 1 to main-options

According to the documentation "Options should contain 0 for launch and 1 for load."

Regards,

–Ғɑɳօ

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Dialog System with Visual Cobol

Jump to solution

Thank you very much. This has solved the problem.

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.