Page 1 of 1

CPF950D error in QMHRDQM API

Posted: Tue Feb 17, 2015 2:35 am
by ecgberht
I am trying to make the QMHRDQM API work and am getting the error CPF950D The specified message selection template length is not valid. I believe I have followed the IBM documentation to the letter in setting up my working storage. Anyone have a clue?

Code: Select all

01  WS-LOCAL-VARIABLES.                                         
    05  QMHRDQM-DATA          PIC X(1000).                      
    05  QMHRDQM-LENGTH        PIC 9(04) BINARY.                 
    05  QMHRDQM-FORMAT        PIC X(8) VALUE "RDQM0100".        
    05  QMHRDQM-NAME          PIC X(20).                        
    05  QMHRDQM-MSI.                                            
        10  MSI-SELTYPE       PIC X(1) VALUE 'F'.               
        10  MSI-FILLER        PIC X(3) VALUE SPACES.            
        10  MSI-CNT           PIC 9(4) BINARY.                         
    05  QMHRDQM-MSIL          PIC 9(4) BINARY.                  
    05  QMHRDQM-MSIF          PIC X(8) VALUE "RDQS0100".        
    05  QMHRDQM-ERROR         PIC X(100).                        
The code for the actual call looks like this:

* Read data queue

Code: Select all

      INITIALIZE QMHRDQM-DATA                              
      INITIALIZE MSI-FILLER                                
      MOVE 1000 TO QMHRDQM-LENGTH                          
      MOVE 8 TO QMHRDQM-MSIL                               
      MOVE 'F' TO MSI-SELTYPE                              
      MOVE 10 TO MSI-CNT                                   
      CALL "QMHRDQM" USING  QMHRDQM-DATA                   

code tags added by dbz

Posted: Thu May 28, 2015 1:42 pm
by Generalfres
I can not find any information in this section.

ibcbet mobile

Posted: Thu May 28, 2015 3:12 pm
by William Collins
That's because you're just scamming around. The system has noticed that, and realises there is no point showing you anything of actual value.

Posted: Mon Jun 01, 2015 6:50 pm
by dbzTHEdinosauer
what is the Qualified data queue name?