DIVISION. PROGRAM-ID MPB008 DIVISIONjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28 CONFIGURATIONSECTION* DATE 1992/07/31 EMBEDDED COBOL LANGUAGE SOURCE-COMPUTER. xyz. OBJECT-COMPUTER. xyz. * This program was written by employees of NIST to test SQL WORKING-STORAGE* NIST assumes no responsibility for any party's use of
* EMBEDDED COBOL (file "MPB008.PCO")
**************************************************************** * * COMMENT SECTION * * DATE 1992/07/31 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. * * MPB008.PCO * WRITTEN BY: David W. Flater * * THIS PROGRAM IS PART B OF A TWO-PART PROGRAM(A & B) THAT * TESTS THE CONCURRENCY OF SQL * * REFERENCES * ANSI SQL-1992 * 4.28 SQL-transactions * ****************************************************************
9COMP PICX(8. 01 knum PIC C()java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
uidx X(18). EXECSQLEND DECLARE ()DISPLAYSIGNLEADINGjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
i9SIGN java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 01SQLCODEPIC S9(9) COMP. 01 errcnt PIC S9(9) DISPLAYSIGNLEADINGSEPARATE. *date_time declaration 01 TO-DAY 9(8) 01java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10 01PIC S9()java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 57 01 pauze2 PIC S9 " SIGN . 01 flcnt PIC S9(9) DISPLAYSIGNSQLSELECTUSER INTO: HUECCO 01mxfailPIC(9)DISPLAYSIGNSEPARATEjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
01 SQL-COD S9(9)DISPLAYSIGNLEADINGSEPARATE.
PROCEDUREDIVISION.
P0.
MOVE- connectedjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23 CALL" 0 TO MOVE , uidx EXECSQLSELECT USER INTO :uidx FROM HU.ECCO END-EXEC MOVESQLCODETO*date_time print ifACCEPT TIME DISPLAY"ERROR: "runYYMMDD " :"THE-TIME
- "MOVE 1 STOP0TO flcnt END-IF MOVE0TO errcnt DISPLAY "SQL Testjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 DISPLAY
Transactionsserializable TwinsProblem DISPLAYT Version " *date_time print
- - - ACCEPT THE-TIME FROMTIME DISPLAY"Date run YYMMDD: java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
* (A .java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43 1TO MOVE0 java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 14 MOVE50TO mxfail
******************** BEGIN TEST0517 *******************
DISPLAYP106. DISPLAY"Reference ANSI EXEC SQL INSERT INTO MP8_NEXTKEYAUTHOR) MOVESQLCODETO SQL-COD DISPLAY - - --------java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
DISPLAYEXECSQLCOMMITWORKEND-EXEC program ( & B."
DISPLAY" This is Program B which starts after Program A...
- " "
if"ransaction Starts! java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47 ACCEPTTHE-TIME FROMTIME
TO DISPLAY""
.
P106. MOVE0TO code1 EXECSQLINSERTINTOMP8_NEXTKEYjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
VALUES(2,DISPLAY"his part the loops trying MOVESQLCODETO DISPLAY "insert a dupli into . it if(NOT0 MOVE1 - END-IF EXECSQLCOMMIT WORK END-EXEC SQLCODETO if(QLCODENOT =0)then MOVE1TOSQLCODETO SQL-COD END-IF
TO DISPLAYEXECSQLCOMMIT WORK GOTO P106 END-IF
*YES, we are in sync!
DISPLAY"Transaction B Starts!! " *date_time print ACCEPTEND-IF ACCEPT THE-TIMEP120 *date_time print DISPLAY"Date run YYMMDD: " TO-DAY " atACCEPT THE-TIME TIME DISPLAY" " DISPLAYI " DISPLAY"has taken place, STOP this test!"
DISPLAY" " DISPLAY"This part of SQL ROLLBACK END-EXEC
- P101
- " succeeds,""number ofjava.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 67 DISPLAYhas
- " constraint"
fjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 31 DISPLAY" "
.
P101.
. EXECSQLINSERT*date_time print MOVEACCEPT THE-TIMEFROMTIME if (SQLCODE < 0) then GOTO P120 END-IF
DISPLAY"COMMIT WORK;" EXECSQLCOMMIT WORK END-EXEC MOVESQLCODETO SQL-COD if (SQLCODENOT < 0) then GOTO P166 END-IF
.
P120. COMPUTE flcnt =flcnt + 1 if (flcnt > mxfail) then GOTO P180 END-IF DISPLAY"*** Negative SQLCODE (Deadlock or UNIQUE
-"violation? ** *date_time print
TO-DAY ACCEPT THE-TIME FROMTIME DISPLAY"Date run YYMMDD: "EXEC COMMIT END-EXEC DISPLAY"Restarting transaction" EXECSQLROLLBACK WORK MOVESQLCODEDISPLAY" "=========================java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
.
P180 DISPLAY" DISPLAY"Maximum number of negative SQLCODEs exceeded" *date_time print ACCEPT TO-DAY FROMDATE ACCEPT THE-TIME FROMTIME DISPLAY"Date run YYMMDD: " TO-DAY " at hhmmssff: " THE-TIME DISPLAY"THIS IS CORRECT BEHAVIOR FOR THIS TEST." EXECSQLROLLBACK WORK END-EXEC MOVESQLCODETO SQL-COD GOTO P198
.
P166. DISPLAY" " *date_time print ACCEPT TO-DAY FROMDATE ACCEPT THE-TIME FROMTIME DISPLAY"Date run YYMMDD: " TO-DAY " at hhmmssff: " THE-TIME DISPLAY"TRANSACTION COMPLETED--THIS SHOULD NOT HAVE
- " HAPPENED!!" DISPLAY" mpb008.pco *** fail *** " EXECSQLINSERTINTO HU.TESTREPORT
VALUES('0517','fail','PCO') END-EXEC MOVESQLCODETO SQL-COD COMPUTE errcnt = errcnt + 1 EXECSQLCOMMIT WORK END-EXEC MOVESQLCODETO SQL-COD
******************** END TEST0517 *******************
**** TESTER MAY CHOOSE TO INSERT CODE FOR errcnt > 0 STOPRUN.
* **** Procedures for PERFORM statements
Messung V0.5 in Prozent
¤ 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.5Bemerkung:
¤
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.