Hello Tony
Take care using Api calls.
There are few things you have to know before use any Api calls.
First of all, search on the "Kernel32.lib" file with a normal text editor like Notepad, for the word (function) you want to use: "CallNamedPipe".
Normally, an Api call can be made in Ascii mode.
Seeing the result editing, we found that the "CallNamedPipe" has an "A" suffix at end of its name.
This could means the call must be done in Ascii mode like:
CALL "CallNamedPipeA" WITH STDCALL LINKAGE
USING by value parm1
by value parm2
by value parm2
Of course, the "Kernel.lib" file must be included on the project as an external resource.
Each of these "parm" fields must be defined PIC S9(9) COMP-5.
The value "28" you will find searching on the "Kernel32.lib", means that the call need 3 parameters passed from the caller and each parm must be declared as a long field (S9(9) COMP-5).
An advice: you can download a good api reference from
This guide offers a variety of the best and used api calls as in Vb and, of course, you can use them also with Fujitsu cobol or Powercobol.
Let me know if this hints help you.
Regards
Gianni