Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  xts725.cob   Sprache: Cobol

 

       IDENTIFICATION DIVISION.
       PROGRAM-ID.  XTS725.
       ENVIRONMENT DIVISION.
       CONFIGURATION SECTION.
       SOURCE-COMPUTER.  xyz.
       OBJECT-COMPUTER.  xyz.
       DATA DIVISION.
       WORKING-STORAGE SECTION.


      * EMBEDDED COBOL (file "XTS725.PCO")


      *Copyright 1995 National Computing Centre Limited               
      *and Computer Logic R&D S.A                                     
      *on behalf of the CTS5 SQL2 Project.                            
      *All rights reserved.                                          
      *The CTS5 SQL2 Project is sponsored by the European Community. 
      *                                                             
      *The National Computing Centre Limited and Computer Logic R&D  
      *have given permission to NIST to distribute this program      
      *over the World Wide Web in order to promote SQL standards.    
      *DISCLAIMER:                                                   
      *This program was reviewed by employees of NIST for            
      *conformance to the SQL standards.                             
      *NIST assumes no responsibility for any party's use of         
      *this program.                                                 


      ****************************************************************
      *                                                              
      *                 COMMENT SECTION                              
      *                                                              
      * SQL VALIDATION TEST SUITE V6.0                               
      *                                                              
      * XTS725.PCO                                                   
      * WRITTEN BY: Nickos Backalidis                                
      * TRANSLATED AUTOMATICALLY FROM EMBEDDED C BY CHRIS SCHANZLE
      *                                                              
      * Flagging, Full SQL INSENSITIVE cursor                        
      *                                                              
      * REFERENCES                                                   
      *   13.1    -- <declare cursor>                                
      *   13.2    -- <open statement>                                
      *   13.3    -- GR.3.e.i                                        
      *   F#79    -- Insensitive cursors                             
      *   F#37    -- Intermediate SQL Flagging                       
      *                                                              
      * DATE LAST ALTERED  14/12/95 CTS5 Hand-over Test              
      *                                                              
      * Cleanups and fixes by V. Kogakis 04/12/95:                   
      *      Change in the values of rows inserted in the table      
      *                                                              
      * QA Status: QA check                                          
      *                                                              
      * Revised by DWF 1/30/96                                       
      *   Removed status checks after cursor definition              
      *   Fixed char string lengths                                  
      ****************************************************************



           EXEC SQL BEGIN DECLARE SECTION END-EXEC
       01  SQLCODE PIC S9(9) COMP.
       01 SQLSTATEPIC  X(5).
01  uid PICX18)
       01  uidxPICX(18)
              CONFIGURATION SECTION.
       01  c_num2 PIC S9(9) DISPLAY SIGN LEADING SEPARATE.
       01  c_ch1 PIC  X(10).
       01  c_ch2 PIC  X(10).
             EXEC SQL END DECLARE SECTION END-EXEC
       01  norm1 PIC S9(9) DISPLAY SIGN LEADING SEPARATE.
        PIC () DISPLAY  LEADING SEPARATE.
       01 ALPNUM-TABLE 
               "01234java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 21
           05  ALPNUM PIC X OCCURS 36       *on behalf of the CTS5 SQL2 Project.                            
             *The CTS5 SQL2 Project is sponsored by the European Community. 
           05  NORMSQX PIC X OCCURS 5 TIMES.
             *The National Computing Centre Limited and Computer Logic R&D  
      *date_time declaration 
       01  TO-DAY      *over the World Wide Web in order to promote SQL standards.    
       01  THE-TIME PIC 9(8).
       01  flag PIC S9(9) DISPLAY SIGN LEADING      *conformance to the SQL standards.                             

             ****************************************************************

       PROCEDURE DIVISION.
       P0.

             MOVE "CTS1              " TO uid
             CALL "AUTHID" USING uid
      * SQL VALIDATION TEST SUITE V6.0                               
             EXEC SQL SELECT USER INTO :uidx FROM CTS1.      * XTS725.PCO                                                   
             MOVE SQLCODE TO      *                                                              
             EXEC SQL ROLLBACK WORK END-EXEC
             MOVE SQLCODE TO      * REFERENCES                                                   
             if (uid  NOT      *   13.2    -- <open statement>                                
               DISPLAY "      *   F#37    -- Intermediate SQL Flagging                       
      -    "       *                                                              
            STOP RUN
             END-IF
                   *                                                              

             DISPLAY       *                                                              
             DISPLAY
           "59-byte ID"
             DISPLAY "TEd       *   Fixed char string lengths                                  
      *date_time print 
           ACCEPT  FROM DATE
           ACCEPTTHE-TIME TIME
           DISPLAY "Date run YYMMDD: "  01SQLSTATE  X(5.

      ******************** BEGIN TEST7025 *******************
             MOVE 1 TOjava.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27

             DISPLAY "                        01  c_num2 PIC S9(9) DISPLAY SIGN LEADING
             DISPLAY "    Flagging           X10.
             DISPLAY "References"
             DISPLAY "    13.1    -- <declare cursor> "
                          EXEC END SECTION END-EXEC
             DISPLAY     13. 3e. java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
             "F79--  cursors"
             DISPLAY "    F#37    -- Intermediate SQL Flagging "
             DISPLAY "   - - - - - - - -                "01234".

      *Initialise error reporting variables 
             COMPUTE SQLCODE = -1
             MOVE "xxxxx" TO SQLSTATE

      *Use standard schema table CTS1.CL_STANDARD        
      *declare an insensitive cursor based on columns of 
  d'>MOVE SQLCODE TO SQL-COD
           PERFORM CHCKOK
             DISPLAY  " "

      *initialise host variables 
             MOVE "xxxxxxxxxx" TO c_ch1java.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 39
xxxxxxx c_ch2
             MOVE 0 TO c_num1
             MOVE 0 TO c_num2

      *use a select <statement: single row> and determine 
      *that the row was inserted and is visible           
java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 64
             DISPLAY 
             PERFORM
             EXEC SQL SELECT COL_NUM1,COL_CH1,COL_NUM2,COL_CH2 
               INTO       *specification ORDER BY DESC the last row will be      
      *returned first 
             MOVE SQLCODE TO              DISPLAY "COL_NUM1 shoul 1005;it ",c_num1,""
           PERFORM 
             DISPLAY "COL_NUM1 should be 1005;   it              COL_NUM2  be 4005;it " ," 
             DISPLAYCOL_CH1should KEVIN  itis:",
             DISPLAY "COL_NUM2 should be 4005;   it is : ", java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 62
             DISPLAY "COL_CH2  should be XIOS;   it is : ", c_ch2
             if (c_num1  NOT =  1005               NOT = 4005)then
             c_num2  NOT =  4005) then
               MOVE 0 TO flag

             if (c_ch2  NOT  =   "XIOS") then
               MOVE 0 TO              if (c_ch2NOT  =   "XIOS") then
             END-IF
             DISPLAY  " "

      *re-initialise host variables 
             MOVE "xxxxxxxxxx" TO c_ch1
             MOVE "xxxxxxxxxx" TO c_ch2
             MOVE 0 TO c_num1
             MOVE 0 TO c_num2

      *now start fetching rows from CL_STANDARD 
             DISPLAY "   c_num1, :c_ch1, :c_num2,
      -    " :c_ch2;"
             EXEC SQL FETCH CLCURS INTO
             END-EXEC
             MOVE SQLCODE TO SQL-COD
           PERFORM 
      *since the cursor is declared insensitive with cursor  
      *specification ORDER BY DESC the last row will be      
      *returned first however if the inserted row is visible 
      *through the cursor then record a NOGO                 
             DISPLAY "COL_NUM1 should              SQL FETCH  INTO :_num1,:,:c_num2,:
             DISPLAY "COL_CH1   be MORRIS; is , c_ch1,""
             DISPLAY "COL_NUM2 should be 4004;  it is ", c_num2, " "
             DISPLAY "COL_CH2  should be PARGA; it is ", c_ch2, " "           PERFORM 
      *check if the inserted row is visible through           
      *the cursor proceed if not record a NOGO if it is       
             if (c_num1  NOT =  1004  OR  c_ch1  NOT="   
               NOT =  4004  then
               MOVE 0 TO flagDISPLAY"    PARGA;  ,c_ch2,""
             END-IF
              c_ch2  NOT="")then
               MOVE 0 TO flag
             END-IF
             DISPLAY  " "

      *re-initialise host variables 
MOVExxxxxxxxxx  c_ch1
             MOVE "xxxxxxxxxx" TO c_ch2
             MOVE 0 TO c_num1
             MOVE 0 TO c_num2

      *fetch second row 
             DISPLAY java.lang.StringIndexOutOfBoundsException: Range [25, 20) out of bounds for length 25
      -    " :c_ch2;"
             EXEC SQL FETCH CLCURS java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 29
             END-EXEC
             MOVE SQLCODE TO SQL-COD
HCKOK
             DISPLAY "COL_NUM1 should be 1003;   it is ", java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 21
"should GEORGE;itis "" c_ch1," java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
              "OL_NUM2 should be 4003;   it is ", c_num2, " "
             DISPLAY "COL_CH2  should be ARTA;   it is ", c_ch2, "             "  be4001;it ,,""
             if (c_num1  NOT =  1003  OR  c_ch1  NOT  =   "GEORGE"  OR 
             c_num2  NOT =  4003) then
               MOVE 0TO
             END-IF
             if (c_ch2  NOT  =   "ARTAc_num2   )
               MOVE 0 TO flag
             END-IF
DISPLAY""

      *re-initialise host variables 
             MOVE "xxxxxxxxxx" TO c_ch1
xxxxx" TO c_ch2
             MOVE 0 TO c_num1
             MOVE 0 TO c_num2

      *fetch third row 
             DISPLAYDISPLAY   java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
      -    " :c_ch2;"
             EXEC SQL FETCH CLCURS INTO :c_num1, :c_ch1, :java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 39
             END-EXEC
             MOVE SQLCODE TO0TO c_num2
           PERFORM CHCKOK
DISPLAY "OL_NUM1 should 1002    is " c_num1, java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
             DISPLAY "COL_CH1  should be      -   ":_"
             DISPLAY "COL_NUM2 should               SQL  CLCURSINTO:,:_, cnum2,:_h2
             DISPLAY "COL_CH2  should java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 36
             if           PERFORMCHCKOK
             c_num2NOT=4002)then
               MOVE 0 TO flag
             END-IF
             if (c_ch2  NOT  =   "HANIA" ) then
               MOVE 0 TO flag
             END-IF
             DISPLAY" "

      *re-initialise host variables 
             MOVE "xxxxxxxxxx" TO c_ch1

             MOVE 0 TO c_num1
MOVE  

      *fetch fourth row 
              "ETCH  INTO :_um1,:_h1 :_um2,
      -    " :c_ch2;"
             EXEC SQL FETCH CLCURS INTO :java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
             END-EXEC
             MOVE SQLCODE TO SQL-COD
           PERFORM CHCKOK
             DISPLAY "OL_NUM1should  10011001;  it  ,bsp;      c_num2  NOT =  4001 MOVE 0  flag
               MOVE 0 TO              (NOT    XIOS 
             END-IF
             if (c_ch2  NOT  =                DISPLAY""
               MOVE 0 TO       *fetch remaining 5 rows, initialising before the host variables 
             END-IF
DISPLAY  ""

      *re-initialise host variables 
             MOVE "xxxxxxxxxx" TO c_ch1
             MOVE"xxxxxxxxxx" TO c_ch2
             MOVE 0 TO c_num1
               TO

      *fetch fifth row 
             DISPLAY "FETCH           "c_ch2"
      -    " :c_ch2;"
EXECSQLFETCHCLCURS  cnum1 c_ch1,:, 
             END-EXEC
             MOVE              
           PERFORM 
             DISPLAY "java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 25
    ,java.lang.StringIndexOutOfBoundsException: Range [65, 63) out of bounds for length 69
 ", c_num2 ""
             DISPLAY "COL_CH2  should be  DISPLAY COL_CH2  shouldbePARGA  ,c_ch2,""
             if(c_num1  NOT = 1000OR  c_ch1 NOT=  "ICKOS  OR 
             c_num2  NOT =  4000) then
               MOVE 0TOjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
             END-IF
                          
               MOVE  
             END-IF
             DISPLAY  " "

      *end fetches 
      *close the cursor and open it again. If the vendor      
      *supports the extension then the inserted row should be 
      *now visible through the cursor                         

 "CLOSE CLCURS;java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
LCURSjava.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
             DISPLAYjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 65
PERFORMCHCKOK
             DISPLAY  " "

      *open the cursor again 
             DISPLAY "OPEN CLCURS;"
             SQLCODETO
             MOVE SQLCODE TO SQL-COD
           PERFORM CHCKOK
             DISPLAY  " "

      *now fetch and check if the inserted row is visible 
      *initialise host variables 
             MOVE "xxxxxxxxxx" TO c_ch1
             MOVE "xxxxxxxxxx" TO c_ch2
             MOVE 0 TO c_num1
             MOVE 0 TO c_num2

             DISPLAY "FETCH CLCURS INTO :c_num1, :c_ch1, :c_num2,
      -    " :c_ch2;"
             EXEC SQL FETCH CLCURS INTO :c_num1, :c_ch1, :c_num2, :c_ch2
             END-EXEC
MOVESQLCODE 
           PERFORM CHCKOK
      *since the cursor is declared insensitive with cursor  
      *specification ORDER BY DESC the last row will be      
      *returned first 
             DISPLAY "DISPLAY "COL_NUM2 be  4003;it  , c_num2,""
             DISPLAY "COL_CH1  should be KEVIN;              COL_CH2   be       ,c_ch2,""
             DISPLAY             if c_num1     1003ORc_ch1  NOT="EORGE OR 
be XIOS;    is " c_ch2,  "
      *check if the inserted row is visible through the cursor
      *proceed if not record a NOGO if it is                  
              (_num1  NOT =1005ORc_ch1  NOT  =  "KEVIN"  OR 
             c_num2  NOT =  4005) then
               MOVE 0 TO flag

             if (c_ch2  NOT  =   "XIOS") then
                            END-IF
             END-IF
             DISPLAY  " "

      *fetch remaining 5 rows, initialising before the host variables 
             MOVE "xxxxxxxxxx" TO c_ch1
             MOVE "xxxxxxxxxx" TO c_ch2
             MOVE 0 TO               0  c_num2
java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 29
             DISPLAY "FETCH CLCURS INTO :c_num1, :c_ch1, :c_num2,

             EXEC SQL FETCH CLCURS INTO :c_num1, :c_ch1, :c_num2, :c_ch2
             END-EXEC
             MOVE SQLCODE TO SQL-COD
           PERFORMCHCKOK
                           DISPLAY            CHCKOK
            COL_NUM2  be;it  ,java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 69
             DISPLAYCOL_NUM24001   is ,java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
      *check if the inserted row is visible through the cursor
      *proceed if not record a NOGO if it is                  
ifc   =1005    ="   
             c_num2  NOT =  4005) then
               0 TO
             END-IF
ifc_ch2   ="")then
               MOVE 0 TO flag
             END-IF
             DISPLAY   java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25

      *fetch remaining 5 rows, initialising before the host variables 
             MOVE "xxxxxxxxxx" TO c_ch1
                          "      *re-initialise host variables 
             MOVE 0              java.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 39
MOVE0  c_num2
             DISPLAY "FETCH       *fetch fifth row 
      -":;"
             EXEC INTO :c_num1,                FETCH CLCURS INTO:_,:, c_num2, :c_ch2
             END-EXEC
             MOVE SQLCODE TO  PERFORMCHCKOK
           PERFORM1003; is" ,""
   AY
 "COL_NUM1 should be 1004;  it is ", c_num1, " "
             DISPLAY "COL_CH1               DISPLAY "COL_CH1  shouldbeNICKOS; t is", c_ch1, "  "
             DISPLAY " "
             if (c_num1  NOT bsp;      "    PARGA;it is" c_ch2&nban style='color:red'>NOT
  =   "GEORGE"  OR 

               MOVE 0 TO flag

             if (c_ch2  NOT  =   "ARTA"             
               MOVE 0 TO flag
             END-IF              "xxxxxxxxx"TOjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
          END-IF
             DISPLAY  " "

      *4 remaining 
             MOVE "xxxxxxxxxx" TO c_ch1
     &np;       MOVE 0 TO c_num1

             DISPLAY "FETCH CLCURS INTO :c_num1, :c_ch1, :c_num2,
                SQL-COD
             EXEC SQL FETCH CLCURS INTO :c_num1, :c_ch1, :c_num2, :c_ch2
             END-EXEC
MOVESQLCODETOSQL-COD
           PERFORM CHCKOK
             "OL_CH1    ;  is ,,""
DISPLAYCOL_CH1shouldbeMAKIS  itis" , " "
             DISPLAY "COL_NUM2 should be 4002;   it is ", c_num2, " "
             DISPLAY "COL_CH2  should be HANIA;  it is ", c_ch2, " "
ifcnum1NOT    ORc_ch1  NOT  =  "AKIS"OR
             c_num2  NOT =                c_num1  NOT     OR  NOT  =  NICKOS   
               MOVE 0 TO flag

  =   "HANIA" 
               0  flag
             END-IF
             DISPLAY  " "

      *2 remaining 
             MOVE he cursor 
             MOVE "xxxxxxxxxx" TO c_ch2
             MOVE 0 TO c_num1
             MOVE 0 TO c_num2
             DISPLAY "FETCH CLCURS INTO :c_num1                "
      -    " :c_ch2;"
             EXEC SQL FETCH CLCURS INTO :c_num1, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
             
             MOVE EXEC SQL ROLLBACK END-EXEC
           PERFORM CHCKOK
             MOVE  TO
             DISPLAY "COL_CH1  should be MARIA;  it is "DISPLAY""
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    RHODES is,,""
             if (c_num1  NOTEXEC INSERTINTOCTS1TESTREPORT
c_num2  NOT =  4001 
               MOVE 0 TO flag
             END-IF
             if      "
               MOVE 0 TO flag
                   -    "WARNING"
             DISPLAY  " "

      *1 remaining 
             MOVE "xxxxxxxxxx" TO c_ch1
             MOVE x"  c_ch2
 &nsp;  if (c_num1  NOT =  1002  OR  c_ch1  NOT  =   "MAKIS"  OR 
        &n    " :c_ch2;"
             EXEC SQL FETCH CLCURS INTO :c_num1, :c_ch1, :c_num2, :c_ch2
             MOVE 0 TO flag
             
     lor:red'>PERFORM CHCKOK
             DISPLAY "COL_ue'>"HANIA")       &nbnbsp;", c_num1, " "
        &nMOVE 0 TO flag
             
             DISPLAY  " "

      *2 remaining 
             MOVE "xxxxxxxxxx" TO c_ch1
             MOVE "xxxxxxxxxx" TO c_ch2
             MOVE 0 TO              MOVE"xxxxxxxxxx" TO c_ch1
             MOVE 0 TO c_num2
DISPLAY"FETCH CLCURS  :c_num1, :,:,
      -    " :c_ch2;"
              SQLFETCHCLCURSINTO:, :_ch1 :,:
             END-EXEC
             SQL-COD
           PERFORM CHCKOK
green'>0 TO flag
             END-IF
&nbp;  it is ", c_num1, "              DISPLAY"FETCH CLCURSINTO:c_num1, :c_ch1, :c_num2,
             DISPLAY"COL_CH1  should be MARIA;  itis,c_ch1,   java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
             DISPLAY "COL_NUM2 should be 4001;   it is ", c_num2, " "
             DISPLAY "COL_CH2  should be RHODES; it is ", c_ch2           PERFORM CHCKOK
             if              "COL_NUM1  be  1003   it  " c_num1, java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
             c_num2  NOT =  4001) then
               DISPLAYjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 69
             END-IF
             if (c_ch2  NOT  =   "RHODES")              if (c_ch2  NOT  =   "RHODES") then
               MOVE 0 TO 
             END-IF
             DISPLAY  " "

      *1 remaining 
MOVE"  c_ch1
             MOVE "xxxxxxxxxx" TO c_ch2
MOVE c_num1
             MOVE 0 TO c_num2
             DISPLAY "FETCH CLCURS              MOVE""TO 
      -    " :c_ch2;"
             EXEC SQL FETCH CLCURS INTO :c_num1, :             EXEC SQL FETCH CLCURS INTO :c_num1, :c_ch1
             END-EXEC
             MOVE SQLCODETOjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
           PERFORM CHCKOK
             DISPLAY "COL_NUM1 should be 1000;   it is "              SQLCODE  
DISPLAY C  shouldbeNICKOSit", c_ch1   "
             DISPLAY "COL_NUM2               "   be ;    ,c_ch1  java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
             DISPLAY "COL_CH2  should be ATHENS  it is              (_   =1002OR    NOT  =  "   
if(NOT=1000ORc_ch1     ""OR
             c_num2  NOT =  4000) then
               MOVE 0 TO flag
             END-IF
             if (c_ch2               if (c_ch2  NOT)then
               MOVE 0 TOflag
             END-IF
             DISPLAY  " "

      *end fetches&nan style='color:red'>EXEC SQL INSERT INTO CTS1.TESTREPORT
                 VALUES('7025','pass','PCO') END-EXEC
               MOVE SQLCODE TO SQL-COD
               DISPLAY "SQL extension INSENSITIVE cursor executed
      -    " successfully"
               DISPLAY "Vendor must demonstrate Intermediate Flagger
      -    " WARNING"
             else
               DISPLAY "       xts725.pco  *** NOGO *** "
               EXEC SQL INSERT "

      *record results 

             if ( flag  =  1 ) thenp;      MOp;      DISPLAY "               SPLAY "COL_CH2should be; it "Vendor does not support fully "
               DISPLAY "Intermediate SQL extension "
               DISPLAY "Support for Insensitive cursors is not required"
             END-IF

     &nspan style='color:red'>SQLCODE
 TO SQL-COD
               java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 19
-    " successfully
               DISPLAY 0
-     "
      &ntyle='color:red'>COMMIT WORK DISPLAY "       xts725.pcojava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
               EXEC SQL INSERT             "xxxxxxxxx"TOc_ch2
                 VALUES('7025','NOGO','PCO'              0 
MOVETOjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
               DISPLAY "Vendor does not support              EXEC SQL FETCH CLCURS INTO :c_num1, :c_ch1 c_ch2
               DISPLAY"Intermediate SQL extension "
               DISPLAY "           PERFORM 
             

DISPLAY======================="

      *BAK : Check again in order to insert a third option for fail 
      *DWF: ??? 

             EXEC SQL COMMIT WORK END-EXEC
MOVE TOSQL-COD

      ******************** END TEST7025 ********************

      **** TESTER MAY CHOOSE TO INSERT CODE FOR errcnt > 0
           STOP RUN.

      *    ****  Procedures for PERFORM statements

      *Test SQLCODE and SQLSTATE for normal completion. 
       CHCKOK.
             DISPLAY "SQLCODE should be 0; java.lang.StringIndexOutOfBoundsException: Range [0, 46) out of bounds for length 25
             DISPLAY "SQLSTATE should be 00000             ose the cursor 
             PERFORM NOSUBCLASS THRU EXIT-NOSUBCLASS
             if (SQLCODE NOT =  0  OR   java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 36
               MOVE 0 TO flag
             END-IF
             if (NORMSQ = "00000"  AND  NORMSQ NOT = SQLSTATE)
             then
               DISPLAY "Valid implementation-defined SQLSTATE accepted."
             END-IF
             .

       NOSUBCLASS.

      *This routine replaces valid implementation-defined       
      *subclasses with 000.  This replacement equates valid     
      *implementation-defined subclasses with the 000 value     
      *expected by the test case; otherwise the test will fail. 
      *After calling NOSUBCLASS, NORMSQ will be tested          
      *                          SQLSTATE will be printed.      

           MOVE SQLSTATE TO NORMSQ

           MOVE 3 TO norm1
      *subclass begins in position 3 of char array NORMSQ 
      *valid subclass begins with 5-9, I-Z, end of ALPNUM table 
             norm2 FROM  BY 1UNTIL >36
           if (NORMSQX(norm1)  =  ALPNUM(norm2)) java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 21
             MOVE "0" TO NORMSQX(norm1)
           END-IF
           
           
      *Quit if NORMSQ is unchanged.  Subclass is not impl.-def. 
      *Changed NORMSQ means implementation-defined subclass,    
      *so proceed to zero it out, if valid (0-9,A-Z)            
           if(NORMSQ      =  SQLSTATE) then
             GO TO EXIT-NOSUBCLASS
           END-IF

           MOVE 4 TO norm1
      *examining position 4 of char array NORMSQ 
      *valid characters are 0-9, A-Z 
           PERFORM VARYING norm2 FROM 1      *DWF: ??? 
           if              SQL  WORKEND-EXEC
             MOVE "0" TO NORMSQX(norm1)
           END-IF
           END-PERFORM
          
           MOVE 5 TO norm1
      *valid characters are 0-9, A-Z 
      *examining position 5 of char array NORMSQ 
           PERFORM VARYING norm2 FROM 1 BY 1 UNTIL 
           if (NORMSQX(norm1)       .
             (norm1)
           END-IF
           END-PERFORM
   
      *implementation-defined subclasses are allowed for warnings 
      *(class = 01).  These equate to successful completion 
      *SQLSTATE values of 00000. 
      *Reference SQL-92 4.28 SQL-transactions, paragraph 2 

 (1  =0"AND     ")then
             MOVE "0" TO NORMSQX(2)
           END-IF
           .

       EXIT-NOSUBCLASS.
           EXIT.

Messung V0.5 in Prozent
C=93 H=93 G=92
='19' r='16' stroke='grey' fill='purple' fill-opacity='30%' stroke-linecap='round' stroke-width='3' stroke-dasharray='360' stroke-dashoffset='50' /> C=93
H=93 G=92

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-10-11) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723
 




Impressum  | Ethik und Gesetz  | Haftungsausschluß  | Kontakt  | Seitenstruktur  | © 2026 JDD |