Eine aufbereitete Darstellung der Quelle

 
     
 
 
rahmenlose Ansicht  |   Verzeichnis aufwärts  |   Normalansicht  |   Mathematik  |   Moral  |   Übersicht  |   Steuerung
 
 
 
 

Benutzer

Quellcode-Bibliothek dml050.cob   Sprache: Cobol

 

      *                                                              
       PROGRAM-ID      *                                                              
       java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
       SECTION
       SOURCE-COMPUTER.  xyz.
       OBJECT-COMPUTER.  xyz.
       DATA DIVISION.
        .


      * EMBEDDED COBOL (file "DML050.PCO")  

      ****************************************************************
      *                                                              
      *                 COMMENT SECTION                              
      *                                                              
      * DATE 1988/12/09 EMBEDDED COBOL LANGUAGE                          
      * NIST SQL VALIDATION TEST SUITE V6.0
      *  DISCLAIMER:                                                  
      *  This program was written by employees of NIST to test SQL    
      *  implementations for conformance to the SQL standards.        
      *  NIST assumes no responsibility for any party's use of        
      *  this program.
      *                                                              
      * DML050.PCO                                                    
      * WRITTEN BY: HU YANPING                                       
      * TRANSLATED AUTOMATICALLY FROM EMBEDDED C BY CHRIS SCHANZLE
      *                                                              
      *   THIS ROUTINE TESTS THE LIMIT THE NUMBER OF TABLES DIRECTLY 
      * OR INDIRECTLY REFERENCED IN A STATEMENT. THIS LIMIT IS NOT   
      * LESS THAN TEN(10).                                           
      *                                                              
      * REFERENCES                                                   
      *       AMERICAN NATIONAL STANDARD database language - SQL     
      *                         X3.135-1989                          
      *                                                              
      *          FIPS PUB 127-1, Section 13.5                        
      *          Sizing for database constructs                      
      *                                                              
      ****************************************************************


           EXEC SQL BEGIN DECLARE SECTION END-EXEC
       DISPLAY " uidx  "
       01  EMPNA1 PIC  X(20).
       01  uid STOPjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
       01  PIC ()java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
           EXEC DECLAREEND-EXEC
       01  SQLCODE PIC       * date_time print *
        errcntPICS9)DISPLAY  SEPARATEjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
       01    FROMTIME
       01  ii PIC S9(9) DISPLAY           DISPLAY Date :"TO-DAY"at  THE-TIME
       01  java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0


      * date_time declaration *
       01TO-DAY PIC 96.
       01  THE-TIME PIC 9(8).
    
       PROCEDURE DIVISION.
       P0.


           MOVE           DISPLAY "     - - - - - - - - - - - - - - - - - - -"
           CALLjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
           MOVE " logged in, not" TO uidx
           EXEC SQL SELECT 
                  INTO:FROM HU.ECCOEND-EXEC
           if (uid NOT              EMPNUMIN
              ": User " uid " expected.java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
             DISPLAY "WHERE PNUM IN 
             DISPLAY " "
             STOP 
           END-IF

           MOVE 0 TO errcnt
           DISPLAY
             (SELECT PTYPE  FROM PROJ 
           DISPLAY " "
           DISPLAY
             WHEREIN 
           (ELECT   WORKS 
            java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
      * date_time print *
           ACCEPT IN
           ACCEPT THE-TIME FROM TIME
             SELECTFROMjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37

      ******************** BEGIN TEST0226 *******************


           DISPLAYAND   P2' )))))) END-EXEC
           DISPLAY 
           DISPLAY  referencedina statement()java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
           DISPLAY i

           EXEC SQL DECLARE T10            (SQLCODE  ) 
             SELECT EMPNUM, EMPNAME 
              
             
MOVE  
             WHERE PNUM PERFORM P50 UNTIii > 19
             SELECT   FROM  
              PTYPE  
             (SELECT PTYPE  FROM PROJ 
               IN
             if (= )java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
             WHEREEXEC SQL  INTO TESTREPORT
             (SELECT  FROMWORKS
             WHERE PNUM IN 
             SELECT FROMPROJ
             WHERE PTYPE IN
             (SELECT    PROJ
             WHERE CITY IN
              "dml050pco  * fail** java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
             EMPNUMjava.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
             S EMPNUM  FROMWORKS
             WHERE HOURS = 20 
             AND PNUM = 'P2'            END-IF

           EXEC SQL"================================="
           java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
           MOVE
           if
             DISPLAY "EMPNUM     EMPNAME          "
           END-IF

           MOVESTOP RUN.
           PERFORM P50 UNTIL ii > 19

           EXEC
           MOVE SQLCODE TO SQL-COD

           "    Here ishould be 4 i" i" "
           if (i = 4) thenEXEC SQL   INTO
             DISPLAY "               ***              MOVE   SQL-COD
              SQL INTO 
               VALUES         ,java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
             java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 12
           else
             DISPLAY "     dml050.pco  *** fail *** "
             EXEC SQL INSERT INTO TESTREPORT
               VALUES('0226','fail','PCO') END-EXEC
             ADD 1 TO errcnt
             MOVE SQLCODE TO SQL-COD
           END-IF

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

           EXEC SQL COMMIT WORK END-EXEC
           MOVE SQLCODE TO SQL-COD

      ******************** END TEST0226 *******************


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

      *    ****  Procedures for PERFORM statements

        P50.
             EXEC SQL FETCH T10 INTO
               :EMPNO1,:EMPNA1 END-EXEC
             MOVE SQLCODE TO SQL-COD
             if (SQLCODE  =  0) then
               DISPLAY EMPNO1 "       ", EMPNA1
               COMPUTE i = i + 1
             END-IF
           ADD 1 TO ii
           .

Messung V0.5 in Prozent
C=96 H=91 G=93

¤ 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.0.3Bemerkung:  ¤

*Bot Zugriff






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