Calling BPXWDYN dynamic



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Calling BPXWDYN dynamic

Postby LasseH » Mon Feb 13, 2017 5:49 pm

PGMA compiled with DLL and EXP and Linkedit with DYNAM(DLL)

Calling BPXWDYN by "Call c01-bpxwdyn using...."

Result:

CEE3550S DLL BPXWDYN does not contain a CEESTART CSECT.                        
         From compile unit GAFG030 at entry point GAFG030 at compile unit offset +0000037A at entry offset +0000037A
         at address 1221737A.  


Linkage info:
COMMAND ===>                                                                  
                                                                               
     Dataset:  SYS1.LINKLIB(BPXWDYN)                                          
                                                                               
............................... Directory entry ...............................
     ----+----1----+----2----+----3----+-                                      
Char BPXWDYN .3...4......BB......<.h.....                                      
Zone CDEECED40F120F000000CC05A5A043810000                                      
Numr 2776485003AC0480000022150100C0824100                                      
                                                                               
     SSI:                                                                      
                                                                               
............................. Link edit attributes ............................
   ENTRY POINT    004C30    SIZE (HEX)      0155A0    SIZE (DEC)     87,456    
   REENTRANT      YES       OVERLAY         NO        RLD            YES      
   REUSABLE       YES       SCATTER         NO        1 BLOCK/NORLD  NO        
   REFRESHABLE    NO        TEST            NO        EP ZERO        NO        
   ADDR MODE      31        TESTRAN SYMBLS  NO        ZERO ORIGIN    YES      
   RES MODE       ANY       DOWN COMPAT     NO        REPROCESSABLE  YES      
   EXECUTABLE     YES       PAGE ALIGN      NO        APF CODE       0        
   ONLY LOADABLE  NO                                                          


And CEESTART exists in module
COMMAND ===>                                                  SCROLL ===> CSR  
  Module linkedited on 2015/04/25 03:50:44                                    
C Symbol     Type Offset  Length Textclass  Translator VV RR Date       A/M R/M
  EDCXABND     SD     00      38 B_TEXT     HLASM      01 04 2003/09/30 MIN ANY
                  IDENT  2003/10/06  RSI32731212                              
  ÖÖXABND      LD     00         B_TEXT                                        
  EDCXBTCA     SD     38     9F4 B_TEXT     HLASM      01 04 2003/09/30 MIN ANY
                  IDENT  2003/10/06  RSI32734002                              
  ÖÖXBTCA      LD     38         B_TEXT                                        
  ÖÖXCBLN      LD    978         B_TEXT                                        
  EDCXCEE      SD    A30      2C B_TEXT     HLASM      01 04 2003/09/30 MIN ANY
                  IDENT  2003/10/06  RSI32739635                              
  CEESTART     LD    A30         B_TEXT                                        
  EDCTCM64     SD    A60     98C B_TEXT     HLASM      01 04 2003/09/30 MIN ANY
                  IDENT  2003/10/06  RSI32733937                              
  ÖÖDIVI64     LD    A60         B_TEXT                                        


Anyone succeeded with dynamic call to BPXWDYN?

//Lasse
LasseH
 
Posts: 70
Joined: Mon Nov 08, 2010 2:51 pm
Has thanked: 7 times
Been thanked: 1 time

Re: Calling BPXWDYN dynamic

Postby Robert Sample » Mon Feb 13, 2017 6:31 pm

Your post title is incorrect -- you are calling BPXWDYN dynamically AS A DLL. I've called BPXWDYN many times dynamically and it always works -- but then I do not use the DLL option in my COBOL compile. The error message you are getting indicates, to me, that BPXWDYN is not set up to be called as a DLL and hence this is why your call is failing.

Edit: also, if you're using DLL then you need to either use a PDSE or Unix System Services file for your linkage editor output.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post