* Standard COBOL (file "SULTAB1.SCO") calling SQL * procedures in file "SULTAB1.MCO"
**************************************************************** * * COMMENT SECTION * * DATE 1989/02/24 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. * * SULTAB1.SCO * WRITTEN BY: SUN DAJUN * TRANSLATED AUTOMATICALLY FROM EMBEDDED COBOL BY CHRIS SCHANZLE * * This routine initializes the contents of tables: * WORKS_P, and TTT * This routine may be run at any time to re-initialize tables. * ****************************************************************
* EXEC SQL SELECT COUNT(*) INTO :count1 FROM WORKS_P; CALL"SUB16"USINGSQLCODE count1 MOVESQLCODETO SQL-COD * EXEC SQL SELECT COUNT(*) INTO :count2 FROM TTT; CALL"SUB17"USINGSQLCODE count2 MOVESQLCODETO SQL-COD
* EXEC SQL COMMIT WORK; CALL"SUB18"USINGSQLCODE MOVESQLCODETO SQL-COD if (count1 = 12 AND count2 = 1) then DISPLAY"WORKS_P and TTT were created successfully!" else DISPLAY"*****************************************" DISPLAY"* WORKS_P or TTT ERROR !!! *" DISPLAY"*****************************************" END-IF
**** TESTER MAY CHOOSE TO INSERT CODE FOR errcnt > 0 STOPRUN.
* **** Procedures for PERFORM statements
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-05-06)
¤
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.