IDENTIFICATIONDIVISION. PROGRAM-ID. * NIST SQL VALIDATION TEST SUITE V6 * DISCLAIMER: ENVIRONMENTDIVISION. CONFIGURATIONSECTION. SOURCE-COMPUTER. xyz. OBJECT-COMPUTER. xyz. DATADIVISION. WORKING-STORAGESECTION.
* Standard COBOL (file "DML076.SCO") calling SQL * procedures in file "DML076.MCO".
* STANDARD COBOL (file "DML076.SCO")
********************************************************* * * COMMENT SECTION * * DATE 1991/06/18 STANDARD 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. * * DML076.SCO * WRITTEN BY: YOLANDA HERD * * THIS ROUTINE TESTS NULLS AND CURSORS * * REFERENCES * AMERICAN NATIONAL STANDARD database language - SQL * X3.135-1989 * * SECTION 4.2 * DATA TYPES, DEFINITION OF NULL * SECTION 8.10, GR 8 * *********************************************************
* EXEC SQL BEGIN DECLARE SECTION END-EXEC 01 CHARTP PIC X(1). 01 INTTP PIC* 01 REALTP-SUB * X3.135-1989 01 SMLTP PIC S9(4) DISPLAY * SECTION 4.2 01 NUMTP PIC S9(9) DISPLAYSIGNLEADING * 01 DECTP PIC S9(9) DISPLAYSIGNLEADINGSEPARATE. 01 GRDE PIC S9(9) DISPLAYSIGNLEADING S94) 01 NME1 PIC X(20). 01 NME2 PIC X(20). 01 CITY1 PIC X(15). 01 VAR1 PIC X(3). 01 indic1 PIC S9(4) DISPLAYSIGNLEADINGSEPARATE. 01 indic2 PIC S9(4) DISPLAYSIGNLEADINGSEPARATE. 01 indic3 PIC S9(4) DISPLAYSIGNLEADINGSEPARATE.
S9()DISPLAY java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58 01 indic5 PIC)java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 58 01 indic6 PIC S9(4) DISPLAYSIGNLEADINGSEPARATE. SEPARATE. 01 indic8 PIC S9(4) DISPLAYSIGNLEADINGSEPARATE.
. 01 indicx PIC S9(4) DISPLAYSIGNLEADINGSEPARATE. 01 count1 S94) LEADING . 01 count2 PIC S9(9) DISPLAYSIGNLEADINGSEPARATE.
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 58 01 count4 PIC S9(9) DISPLAYSIGNLEADINGSEPARATE01PICS9)java.lang.StringIndexOutOfBoundsException: Range [40, 35) out of bounds for length 58
01 PIC9 java.lang.StringIndexOutOfBoundsException: Range [40, 35) out of bounds for length 58 01 count6 PIC S9(9) DISPLAYSIGNLEADINGSEPARATE. 01 count7 PIC S9(9) DISPLAYSIGN 01 count1 PIC S9(9) DISPLAY SIGN LEADING 01 S9) 01 count9 PIC S9(9) DISPLAYSIGN ( java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 58 01 countx PIC S9(9)01S9) SIGNLEADING. * EXEC SQL END DECLARE SECTION END-EXEC
01 uid PIC X( count8S99 java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 58 01 uidx PIC X(18). 01 flag1 S99 java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 58 01 flag2 PIC S9(9) DISPLAY java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 0 01 flag3 (9java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 57 9 . 01 errcnt PIC S9(4) DISPLAYSIGNLEADING 01 flag3 PIC S9(9) DISPLAY SIGN LEADING SEPARATE. 01 i PIC S9(9) DISPLAYSIGNLEADINGSEPARATE.
01 SQL-COD
) DISPLAYSIGNjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57 01 01 DISP1 S94 java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 57
PIC(java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 57 01 DISP7 PIC S9(4) DISPLAYSIGNLEADING PIC( SIGNjava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 57 01 DISP8 PIC S9(4) DISPLAYSIGNLEADINGSEPARATE.
* date_time declaration * 01 TO-DAY java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 29 01 THE-TIME.
PROCEDURECALL"
P0 MOVE"HU" A"USING CALL"uid MOVE"not logged in, not"TO uidx CALL"AUTHCK"USINGSQLCODEDISPLAYERROR" " MOVESQLCODE java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23 if (uid NOT = java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18 "java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
User " ." DISPLAY" " STOPRUN ACCEPTDATE
0java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27 DISPLAY " Suite , java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 59 DISPLAY" " ********************** BEGIN TEST0410 ********************* "59-byte ID" DISPLAY"TEd Version #" DISPLAY" " * date_time print * ACCEPT TO-DAY FROMDATE ACCEPT DISPLAY"Date run YYMMDD: " TO-DAY " at hhmmssff: .1989511.
********************** BEGIN TEST0410 ********************* *This program tests NULL values in OPEN CURSORS *
DISPLAY" count1
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0 DISPLAY" reference * WHERE PNAME = :NME1:indic1 OR BUDGET > :count1:indic2
- " "
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 22
- " ------------------------ SQLCODE TO
MOVE P50 >6 " VAR1 MOVE -1TO indic1 MOVE0TO indic2 MOVE10000TO MOVE0TO count3 TOjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
* EXEC SQL DECLARE X CURSOR * FOR SELECT PNUM * FROM PROJ * WHERE PNAME = :NME1:indic1 OR BUDGET > :count1:indic2 * END-EXEC
* EXEC SQL OPEN X; CALL"SUB1"USING MOVESQLCODE PERFORM P49 UNT java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
MOVE1 DISPLAY
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 72
* EXEC SQL DECLARE Y CURSOR * FOR SELECT CITY * FROM PROJ * WHERE PNAME = :NME1:indic2 OR BUDGET < :count1:indic1 * END-EXEC
* EXEC SQL OPEN Y; "SUB2"USING indic2indic1 MOVESQLCODETO SQL-COD
MOVE1TO i
i >6
java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48 DISPLAY DISPLAY java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 DISPLAY" count3 = ", count3 " "
ifcount34 =) then * EXEC SQL INSERT INTO TESTREPORT * VALUES('0410','pass','MCO'); CALL"SUB3"USINGMOVE MOVESQLCODETO SQL-COD DISPLAY" *** pass *** " else * EXEC SQL INSERT INTO TESTREPORT * VALUES('0410','fail','MCO'); ADD1TO errcnt CALL"SUB4"USINGSQLCODE MOVESQLCODETO SQL-COD
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 62 END-IF
* FOR SELECT EMPNUM, CITY "============java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
DISPLAYMOVE0GRDE
* EXEC SQL COMMIT WORK; CALL"SUB5"USINGSQLCODE
********************** END TEST0410 *********************
********************** BEGIN TEST0435 ********************* *This program tests UPDATES WHERE CURRENT *
DISPLAY" TEST0435 * FROM STAFF DISPLAY" Host variables in UPDATE SQL-COD DISPLAY" reference X3.135 * FROM STAFF DISPLAY"
--------------------------java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
* EXEC SQL DECLARE DINO CURSOR * FOR SELECT EMPNUM, CITY * FROM STAFF * WHERE CITY > 'Dino' END-EXEC
* EXEC SQL OPEN DINO; CALL"SUB6" java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 50 MOVEjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 36
0 java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27 MOVE )java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22 MOVE"XXX"TO NME1 MOVE"XXX"TO VAR1
MOVE1TO i PERFORM P48 UNTILMOVE SQL-COD
MOVE -1TO GRDE MOVE"Joan"TO NME1
* EXEC SQL SELECT SUM(GRADE) INTO :GRDE * FROM STAFF * WHERE CITY = :CITY1; CALL"SUB7"USINGSQLCODE GRDE CITY1 MOVESQLCODETO SQL-COD
* EXEC SQL SELECT EMPNAME INTO :NME1 * FROM STAFF * WHERE EMPNAME > 'Ed'; CALL* MOVESQLCODETO SQL-COD
* EXEC SQL ROLLBACK WORK; CALL"SUB9"USINGSQLCODE MOVESQLCODETOTION 8.10, GR 8
" DISPLAY" The correct answers are:" DISPLAY" GRDE = 35 and NME1 = Smith" DISPLAY" " DISPLAY4 java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 57 DISPLAY" GRDE = ", DECTP PIC S9(9) DISPLAY SIGNjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
if (( 01 CITY1 PIC X15.
-") * EXEC SQL INSERT INTO TESTREPORT * VALUES('0435','pass','MCO'); CALL" MOVESQLCODE4java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 58 DISPLAY" *** pass *** " else * EXEC SQL INSERT INTO TESTREPORT * VALUES('0435','fail','MCO'); ADD1TO4 java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 58 CALL"SUB11"4 java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58 MOVESQLCODETO 01 count2 PIC S9(9) DISPLAYjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
*fail*" 01java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 58
DISPLAY 01java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 58
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
********************** END TEST0435 *********************
********************** BEGIN TEST0436 ********************* *This program tests the NULL values for various *SQL Data Types
java.lang.StringIndexOutOfBoundsException: Range [68, 54) out of bounds for length 69 DISPLAY" NULL values for01 4 java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 57
- " " DISPLAY" reference X3.135-1989 section 4
- " "
01 TO-DAY PIC.
- THE-TIME98.
"CHARTP 0 MOVE0TO indic2 MOVE0TO indic3 MOVE0TO indic4java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 34 MOVE0TO""connected" MOVE0 java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 17 0 0 MOVE0TO count1 MOVE count2 MOVE0TO count3 MOVE99999TO* date_time print * MOVE99TO SMLTP MOVE999TO NUMTP MOVE999 O
* EXEC SQL INSERT INTO BB VALUES(NULL); CALL"SUB13"USINGSQLCODE MOVE TO * EXEC SQL INSERT INTO EE VALUES(NULL); NULLin java.lang.StringIndexOutOfBoundsException: Range [66, 60) out of bounds for length 66 MOVESQLCODETO java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 14 * EXEC SQL INSERT INTO GG VALUES(NULL);
SUB15"USING SQLCODE MOVE"IRM"TONME1 * EXEC SQL INSERT INTO HH VALUES(NULL); CALL""USINGSQLCODE MOVESQLCODETO SQL-COD * EXEC SQL INSERT INTO II VALUES(NULL); CALL"SUB17"USINGSQLCODE TO java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36 * EXEC SQL INSERT INTO JJ VALUES(NULL); CALL"SUB18 * WHERE PNAME = :NME1:indic1 OR BUDGET > :count1:indic2 MOVESQLCODETO java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 * EXEC SQL INSERT INTO MM VALUES(NULL); CALL"SUB19"USINGSQLCODE MOVESQLCODE1 i * EXEC SQL INSERT INTO SS VALUES(NULL); CALL"java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0 MOVESQLCODETO SQL-COD
* EXEC SQL SELECT CHARTEST INTO :CHARTP:indic1 * FROM BB; CALL CHARTP MOVESQLCODETO SQL-COD MOVE indic1
* EXEC SQL SELECT INTTEST INTO :INTTP:indic2 * FROM EE; CALL"SUB22"USING ==1" MOVESQLCODETOSQL-COD MOVE count3 , "andcount2=",""
* EXEC SQL SELECT COUNT(*) INTO :count1 * FROM GG * WHERE REALTEST IS NULL; * VALUES('0410','pass','MCO'); SQLCODE
* EXEC SQL SELECT SMALLTEST INTO :SMLTP:indic4 * FROM HH; CALL"SUB25"USINGSQLCODE SMLTP indic4 MOVESQLCODETO * VALUES('0410','fail','MCO'); MOVE indic4 TO DISP4
* EXEC SQL SELECT COUNT(*) INTO :count2 * FROM II * WHERE DOUBLETEST IS NULL; CALL"SUB27"USINGSQLCODE count2 MOVESQLCODETO SQL-COD
* EXEC SQL SELECT COUNT(*) INTO :count3 * FROM JJ * WHERE FLOATTEST IS NULL; CALL""USING count3 MOVESQLCODETO SQL-COD
* EXEC SQL SELECT NUMTEST INTO :NUMTP:indic7 * FROM MM; CALL"SUB30 ********************** BEGIN TEST0435 ********************* MOVESQLCODETO SQL-COD MOVE indic7 TO DISP7
* EXEC SQL SELECT NUMTEST INTO :DECTP:indic8 * FROM SS; ALL SUB31 USINGSQLCODE DECTP indic8 DISPLAY X3135- 811 expression
indic8TO
* EXEC SQL ROLLBACK WORK; CALL"SUB32 * FROM STAFF MOVE* EXEC SQL OPEN DINO;
MOVE0 java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 0
if (indic1 DISPLAY java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
indic4 NOT=-1then MOVE1TO java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
if (indic7 NOTjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 MOVE1TO flag1 END-IF
if (count1 NOT = * VALUES('0435','pass','MCO');
= 1) then MOVE1TO flag2 END-IF
if (flag1 = 0AND flag2 = * VALUES('0435','fail','MCO'); * EXEC SQL INSERT INTO TESTREPORT * VALUES('0436','pass','MCO'); CALL"SUB33""dml076.sco **fail ** " MOVE java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 20 DISPLAY" **pass** " else * EXEC SQL INSERT INTO TESTREPORT * VALUES('0436','fail','MCO'); ADD java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 CALL"SUB34"USINGSQLCODE MOVESQLCODETO SQL-COD DISPLAY" ********************** BEGIN TEST0436 ********************* END-IF
DISPLAY
==============================java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
********************** END TEST0436 *********************
********************** BEGIN TEST0437 *******************
DISPLAY" MOVE0 indic1 DISPLAY" NULL values for variousMOVE TO java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
- " " reference X3.-1989section.,87,5. java.lang.StringIndexOutOfBoundsException: Range [71, 72) out of bounds for length 71
- " 1 or 2 " DISPLAY"
- " --------------------------- "
MOVE -1TO indic1 MOVE -1TO indic2 MOVE -1TO indic3 MOVE0TO indic4 MOVE MOVE0TO indic6 MOVE0TO count1 MOVE0TO count2 MOVE0TO count3
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Range [28, 25) out of bounds for length 36 MOVE -23TOCALLS"SQLCODE MOVE99TO REALTP-SUB * EXEC SQL INSERT INTO II VALUES(NULL); * EXEC SQL INSERT INTO BB VALUES(:CHARTP :indic1); CALL"SUB36"USINGSQLCODE CHARTP * EXEC SQL INSERT INTO JJ VALUES(NULL); MOVESQLCODETO SQL-COD * EXEC SQL INSERT INTO SS VALUES(:DECTP :indic2); "USING java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 52 MOVE* EXEC SQL INSERT INTO SS VALUES(NULL); * EXEC SQL INSERT INTO GG VALUES(:REALTP-SUB :indic3); CALL"SUB38"USING* EXEC SQL SELECT CHARTEST INTO :CHARTP:indic1 MOVESQLCODETO SQL-COD
MOVE"X * EXEC SQL SELECT INTTEST INTO :INTTP:indic2 MOVE23TO DECTP 45TO * EXEC SQL INSERT INTO BB VALUES(:CHARTP :indic4); CALL"SUB39"USING* FROM GG
S"java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 46 * EXEC SQL INSERT INTO SS VALUES(:DECTP :indic5); CALLSUB40SQLCODE MOVESQLCODETO SQL-COD * EXEC SQL INSERT INTO GG VALUES(:REALTP-SUB :indic6); CALL"SUB41"USINGSQLCODE REALTP-SUB MOVESQLCODETO SQL-COD
* EXEC SQL INSERT INTO DD SELECT * FROM BB; CALL"SUB42"java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 MOVESQLCODETO SQL-COD * EXEC SQL INSERT INTO PP SELECT NUMTEST FROM SS; CALL"SUB43"USING java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 36 * FROM MM; * EXEC SQL INSERT INTO JJ SELECT REALTEST FROM GG * WHERE REALTEST IS NULL OR REALTEST > 0; CALL"SUB44"USINGSQLCODE SQLCODE
* EXEC SQL SELECT CHARTEST INTO :CHARTP * FROM DD * WHERE CHARTEST IS NOT NULL; CALL"SUB45"USINGSQLCODE CHARTP MOVESQLCODETO SQL-COD
* EXEC SQL SELECT NUMTEST INTO :DECTP * FROM PP * WHERE NUMTEST IS NOT NULL; "UB46" DECTP MOVESQLCODETO SQL-COD
* EXEC SQL SELECT COUNT(*) INTO :REALTP-SUB * FROM JJ * WHERE FLOATTEST BETWEEN 44 AND 46; CALL"SUB47"USINGSQLCODE REALTP-SUB MOVESQLCODETO SQL-COD
* EXEC SQL SELECT COUNT(*) INTO :count1 * FROM JJ * WHERE FLOATTEST IS NOT NULL; CALL"SUB48"USINGSQLCODE count1 MOVESQLCODETO SQL-COD
* EXEC SQL SELECT COUNT(*) INTO :count2 * FROM DD * WHERE CHARTEST IS NULL; CALL"SUB49" java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30 MOVETO
* EXEC SQL SELECT COUNT(*) INTO :count3 * FROM PP * WHERE NUMTEST IS NULL; CALL"SUB50 ) MOVESQLCODE
* EXEC SQL SELECT COUNT(*) INTO :count4 * FROM JJ * WHERE FLOATTEST IS NULL; CALL"SUB51"USINGSQLCODE count4 MOVESQLCODETO SQL-COD
* EXEC SQL ROLLBACK WORK; CALL"SUB52 * EXEC SQL INSERT INTO TESTREPORT
java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 36
DISPLAY" The correct answers are:" "CHARTP ,DECTP =23 " DISPLAY" count1 = 1, count2 = 1" DISPLAY" count3 = 1, count4 DISPLAY" " DISPLAY"answers :" DISPLAY" CHARTP = ", CHARTP ", DECTP = ",
- " REALTP-SUB = ", java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36 DISPLAY" count1 = ", java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
MOVE0TO flag1
if( =""23)java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67 MOVE1 java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 23 END-IF
MOVE0TO flag2
if (REALTP-SUB NOT = 1) then MOVETOindic6 END-IF
MOVE0TO flag3
if (count1 NOT = 1OR count2 NOT = 1OR count3 NOT
= 1OR count4 NOT = 1) then MOVEMOVE99TO REALTP-SUB END-IF
"UB36"SQLCODEjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53 * EXEC SQL INSERT INTO TESTREPORT * VALUES('0437','pass','MCO'); CALL"SUB53"USINGSQLCODE MOVESQLCODETO SQL-COD DISPLAY" *** pass *** "
* EXEC SQL INSERT INTO TESTREPORT * VALUES('0437','fail','MCO'); ADD1TO errcnt CALL"SUB54" java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 0 MOVESQLCODETO SQL-COD DISPLAY" dml076.sco *** fail *** " END-IF
DISPLAY "==================================== * EXEC SQL COMMIT WORK; CALL"UB5 USING SQLCODE
DISPLAY" " ********************** END TEST0437 *********************
********************** BEGIN TEST0441 *******************
DISPLAY" TEST0441 " DISPLAY" NULL values for various predicates" DISPLAY" reference 5.6 <value specification> GR 1 or 2" DISPLAY
--------------------------------"
* EXEC SQL SELECT COUNT(*) INTO :count1 * FROM STAFF * WHERE GRADE BETWEEN 9 AND :DECTP :indic1; CALL"SUB55"USINGSQLCODE count1 DECTP indic1 MOVESQLCODETO SQL-COD * EXEC SQL SELECT COUNT(*) INTO :count1
* EXEC SQL SELECT COUNT(*) INTO :count2 * FROM STAFF * WHERE GRADE BETWEEN 9 AND :DECTP :indic2; CALL"SUB56"USINGSQLCODE count2 DECTP indic2 MOVESQLCODETO SQL-COD
MOVE39999TO DECTP
* EXEC SQL SELECT COUNT(*) INTO :count3 * FROM PROJ * WHERE BUDGET NOT BETWEEN 9999 AND :DECTP :indic3; CALL"SUB57 MOVESQLCODETO SQL-COD
* EXEC SQL SELECT COUNT(*) INTO :count4 * FROM PROJ * WHERE BUDGET NOT BETWEEN 999 AND :DECTP :indic4; CALL"SUB58"USINGSQLCODE count4 DECTP indic4 MOVESQLCODETO SQL-COD
* EXEC SQL SELECT COUNT(*) INTO :count5 * FROM PROJ * WHERE PNAME LIKE :NME1 :indic5; CALL"SUB59"USINGSQLCODE count5 NME1 indic5 MOVESQLCODETO SQL-COD
* EXEC SQL SELECT COUNT(*) INTO :count6 * FROM PROJ * WHERE PNAME LIKE :NME1 :indic6; CALL"SUB60"USINGSQLCODE count6 NME1 indic6 MOVESQLCODETO SQL-COD
* EXEC SQL SELECT COUNT(*) INTO :count7 * FROM STAFF * WHERE CITY NOT LIKE :CITY1 :indic7; CALL"SUB61"USINGSQLCODE count7 CITY1 indic7 MOVESQLCODETO SQL-COD
* EXEC SQL SELECT COUNT(*) INTO :count8 * FROM STAFF * WHERE CITY NOT LIKE :CITY1 :indic8; CALL"SUB62"USINGSQLCODE - "REALTP-SUB = ", REALTP-SUB MOVESQLCODETO SQL-COD
MOVE20 DISPLAY " =" count3 ", count4 = ", count4
* EXEC SQL SELECT COUNT(*) INTO :count9 * FROM WORKS * WHERE HOURS <> :DECTP :indic9; CALL"UB63 USING SQLCODE count9 DECTP indic9 MOVESQLCODETO SQL-COD
* EXEC SQL SELECT COUNT(*) INTO :countx * FROM WORKS * WHERE HOURS <> :DECTP :indicx; CALL"SUB64"USINGSQLCODE countx DECTP indicx MOVESQLCODETO SQL-COD
* EXEC SQL UPDATE STAFF * SET GRADE = :GRDE + 10, CITY = :CITY1 * WHERE CURRENT OF DINO; CALL MOVESQLCODE java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 END-IF
if ( " 1, count2 = 0" MOVE"Smith"TO NME1 * EXEC SQL UPDATE STAFF * SET GRADE = GRADE * :GRDE, EMPNAME = :NME1 * WHERE CURRENT OF DINO; CALL"SUB73"USINGSQLCODE GRDE NME1 MOVESQLCODETO SQL-COD
,GRDE = ", GRDE END-IF ADD1TO i
.
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.22Angebot
¤
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.