Skip to main content

[Migrated content. Thread originally posted on 25 January 2012]

Hello,

I have found that these kinds of call "system" do not work:
                    CALL VisualCOBOLcall "SYSTEM"
                           USING "sh Version.win"

The script is never executed and weird characters appear after the script's name.

I had to change it in the following way:
                    CALL VisualCOBOLcall "SYSTEM"
                           USING "sh Version.win "

Do you see the difference? Isn't it strange?

[Migrated content. Thread originally posted on 25 January 2012]

Hello,

I have found that these kinds of call "system" do not work:
                    CALL VisualCOBOLcall "SYSTEM"
                           USING "sh Version.win"

The script is never executed and weird characters appear after the script's name.

I had to change it in the following way:
                    CALL VisualCOBOLcall "SYSTEM"
                           USING "sh Version.win "

Do you see the difference? Isn't it strange?
The command to be executed must be null-terminated when using call "SYSTEM".

You can do this as follows:

CALL VisualCOBOLcall "SYSTEM" USING z"sh Version.win"