**************************************************************** * * 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 * ****************************************************************
01 SQL-COD PIC S9(9) DISPLAYSIGN java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 34
PROCEDURE 01 THE-TIME PIC.
.
MOVE"SULLIVAN1"pauzePIC S99DISPLAYSIGNLEADINGSEPARATE. CALL"AUTHID"USING uid MOVE"not 01 loops PIC S9(9) DISPLAYLEADINGSEPARATE. EXEC USER uidx FROM.CCO END-EXEC MOVESQLCODETO SQL-COD if (uid NOT = S99LEADINGSEPARATE. PIC java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 59 "" STOPRUN END-IF MOVE0TOerrcnt DISPLAY "SQL Test MOVE "not loggedinnot"TO java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46 DISPLAY "59-byte ID" DISPLAY"TEd Version #" *date_time print ACCEPT TO-DAY FROMDATE
THE-TIMEFROMjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36 DISPLAY"ate :"TO-DAY athhmmssff
MOVE1TO pauze 1TOloops 0 flcnt MOVE50TO mxfail
******************** BEGIN TEST0517 *******************
DISPLAY" TEST0517 " DISPLAY"Transactions : " DISPLAY"Reference "EdVersion#
- " SQL-transactions ACCEPT TO-DAY FROM DATE DISPLAY" - ----------- - ------java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
DISPLAY"*** This program is part B of a two-part" DISPLAY"**program (A &B)"
DISPLAY" This is Program MOVE loops
- " "
* -----Synchronization-----
.
P105. MOVE0TO knum EXECSQLSELECTCOUNT(*) INTO :knum FROM MP8_NEXTKEY WHEREAUTHOR = 'A'END-EXEC MOVESQLCODETO SQL-COD
EXECSQLCOMMIT WORK END-EXEC MOVESQLCODETO SQL-COD
*are we in sync?
if (knum = 0) then DISPLAY" PLEASE start program MPA008!!! "
END-IF
.
. MOVE0TO code1
(KEYNUM,)
VALUES(2, 'B') END-EXEC SQLCODE if (SQLCODE"----------- - " MOVE1TO code1 END-IF EXEC MOVE DISPLAY "***A)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43 if (SQLCODE MOVE1TO code1
java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 13 ifCOUNT*java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
SQL END-EXEC MOVESQLCODETO SQL-COD DISPLAY"Retrying java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 0 GOTO P106 END-IF
*YES, we are in sync!
DISPLAY T B! " *date_time print ACCEPT TO-DAY FROMDATE
THE-TIMEFROM DISPLAY"GO TOP105 " DISPLAY"IFjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 DISPLAY"has taken MP8_NEXTKEY (KEYNUM,AUTHOR)
DISPLAY" "
Tof testcontinuouslyjava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
- " to"
cate rowintoMP8_AA Ifit
- " succeeds," DISPLAY"there has SQLCODE = )then
- "constraint" DISPLAY"failure." DISPLAY" "
.
P101. DISPLAYMOVE SQL-COD EXEC S NOT0 MOVETOSQL-COD if (SQLCODE < 0) then GOTO P120 END-IF
DISPLAY"MOVESQLCODE SQL-COD SQLCOMMITEND-EXEC MOVESQLCODETO SQL-COD if (SQLCODENOT < 0) java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19 GOTO P166
.
. COMPUTE flcnt = flcnt + 1 if (flcnt > mxfail) then GOTO P180 END-IF DISPLAY"*** Negative SQLCODE (Deadlock or UNIQUE
- " violation?) ***" *date_time print ACCEPT TO-DAY FROMDATE FROMjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36 DISPLAY"Date run YYMMDD: " TO-DAY " at "F this testlaststoo long,DEADLOCK DISPLAY"Restarting transaction" EXECROLLBACKWORK END-EXEC MOVESQLCODETO SQL-COD GOTOP101
.
P180. DISPLAY" " DISPLAY"aximum negative SQLCODEs exceeded" *date_time print ACCEPT TO-DAY FROMDATE ACCEPT THE-TIME FROMTIME DISPLAYDISPLAY"there has beena serializability or unique DISPLAY"ailure." EXECSQLROLLBACK WORK END-EXEC MOVESQLCODETO SQL-COD GOTO P198
. .
P166. DISPLAY" " *date_time print ACCEPT TO-DAY FROMDATE
java.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36 DISPLAY
java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
- =java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 38 DISPLAY" mpb008.pco *** fail *** " EXECSQLINSERTINTO HU.java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 19
VALUES('0517','fail "?** MOVESQLCODEACCEPTTO-DAY FROMDATE COMPUTE errcnt = errcnt + 1 SQL WORK MOVESQLCODETO SQL-COD
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.