LIANT RM/COBOL and accessing C Routines

From: Bill J. (NO~~~SPAM)
Date: 02/13/04


Date: Fri, 13 Feb 2004 15:29:48 GMT

Does anyone have a brief example of how to access a C routine from an
RM/COBOL program...in Micro Focus I can do this:

set dllPPtr to entry 'C:\PVSW\Bin\w3btrv7.dll'.
       MOVE ZEROS TO FILL.
      *OPEN THE FILE
       MOVE 0 to OPCODE.
       MOVE "C:\PVSW\samples\sample.btr" to KBUF.
       MOVE 26 to KEYLENGTH.

       CALL "BTRCALLID" USING
             BY VALUE OPCODE
             BY REFERENCE POSBLOCK
             BY REFERENCE DBUF
             BY REFERENCE DBLENGTH
             BY REFERENCE KBUF
             BY VALUE KEYLENGTH
             BY VALUE KEYNO
             BY REFERENCE CLIENTID
             RETURNING BTR-STATUS

Is there an equivalent in RM?COBOL?

Thanks,

Bill Jacaruso
Solutions Manager
Pervasive Software



Relevant Pages

  • Re: STICKY LINKAGE
    ... compatibility expert at Micro Focus), the MAIN reason for this (truly UGLY ... but rather the case of where the (IBM mainframe) ENTRY statement ... is used with different parameters on the ENTRY USING statement. ...
    (comp.lang.cobol)
  • Re: STICKY LINKAGE
    ... compatibility expert at Micro Focus), the MAIN reason for this (truly UGLY ... but rather the case of where the (IBM mainframe) ... ENTRY statement is used with different parameters on the ENTRY USING ...
    (comp.lang.cobol)
  • Re: LIANT RM/COBOL and accessing C Routines
    ... > set dllPPtr to entry 'C:\PVSW\Bin\w3btrv7.dll'. ... > Bill Jacaruso ... > Pervasive Software ... This program is used to call Btrieve directly from an RM/COBOL program. ...
    (comp.lang.cobol)
  • Re: Micro focus Net Express with .Net
    ... SET W-TML-PTR TO ENTRY "xyz_c.dll". ... How do you access that library from a MF .Net program? ... Go to the Micro Focus site, sign up for the Forum and post your query under Net Express. ...
    (comp.lang.cobol)