Hello,

In first, I'm sorry if my English is not very good but i try to do my
 best.
Second, I am a beginner in C++ under z/OS

I try to use a sample ( C++ language) provide on ibm ressource link web
 site.
This sample is use to manage HMC console with snmp by batch on z/OS
4 files are provides
- sample C++ (source code)
- API for HMC commande (header file)
- Import files (sidedeck) who contains external definition fonctions
- DLL file (I suppose) for this files there are no source code provide

In first step I a compiled the sample C and the include with the CBCC
 utily
This step is worked well (return code 0)
//COMPIL      EXEC   PROC=CBCC,                                     
//            INFILE='USER1.PDS.SRC(SAMPLEC)',                      
//            OUTFILE='USER1.PDS.OBJETS(ZSAMPLE),DISP=SHR',         
//            CPARM='LSEARCH(''''USER1.PDS.INCLUDE''''),DEFINE(MVS),
//                   LONG,DLL,LIST'                                 
//SYSOUT     DD SYSOUT=*                                            
//SYSPRINT   DD SYSOUT=*                                            


In second step I have Pre-link and Link my objet (issue from first
 step)
with the import file in SYSIN and the DLL file in SYSLIN and SYSLIB.
This step is work well too, I have a return code 0 and no warning.

//LINK        EXEC   PROC=CBCL,                          
//            OUTFILE='USER1.PDS.LOADC(ZSAMP),DISP=SHR', 
//            LPARM='COMPAT(PM3)'                        
//PLKED.SYSIN DD DSN=USER1.PDS.OBJETS(ZSAMPLE),DISP=SHR  
//            DD DSN=USER1.PDS.IMPORT(HWMCAAPI),DISP=SHR 
//SYSLIN      DD DSN=USER1.PDS.DLL(HWMCAAPI),DISP=SHR    
//SYSLIB      DD                                         
//            DD DSN=CEE.SCEELKEX,DISP=SHR               
//            DD DSN=CEE.SCEECPP,DISP=SHR                
//            DD DSN=CEE.SCEEOBJ,DISP=SHR                
//            DD DSN=USER1.PDS.DLL(HWMCAAPI),DISP=SHR    
//SYSOUT   DD SYSOUT=*                                   
//SYSPRINT DD SYSOUT=*                                   
//*                                                      


When I try to use my PGM ZSAMP, I have this message when it call the
 DLL 

HCSV016I REQUESTED MODULE HWMCAAPI IS NOT EXECUTABLE    
IEF450I ADCBRUN PRUN - ABEND=S706 U0000 REASON=00000004WMCAAPI)

I have the good STEPLIB in my JCL
Does anyone can explain to my what I have to do ? How to process to
 resolve
this type of trouble. 

I have attach a file report.txt that contains the execution of eatch
 job
That I have used. There is three part CBCC, CBCL and RUN

Thank's for your help

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to