Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Android/trusty/trusty/user/desktop/app/finger_guard/svc/   (Android Betriebssystem Version 17©) image not shown  

Quellcode-Bibliothek yts791.cob   Sprache: Cobol

 

       IDENTIFICATION DIVISION.
       PROGRAM-ID.  YTS791.
       ENVIRONMENT DIVISION.
       CONFIGURATION SECTION.
       SOURCE-COMPUTER.  xyz.
       OBJECT-COMPUTER.  xyz.
       DATA DIVISION.
       WORKING-STORAGE SECTION.


      * EMBEDDED COBOL (file "YTS791.PCO")


      *Copyright 1996 National Computing Centre Limited, 
      *and Computer Logic R&D S.A 
      *on behalf of the CTS5 SQL2 Project. 
      *All rights reserved.                                          
      *The CTS5 SQL2 Project is sponsored by the European Community. 
      *                                                             
      *The National Computing Centre Limited and Computer Logic R&D  
      *have given permission to NIST to distribute this program      
      *over the World Wide Web in order to promote SQL standards.    
      *DISCLAIMER:                                                   
      *This program was reviewed by employees of NIST for            
      *conformance to the SQL standards.                             
      *NIST assumes no responsibility for any party's use of         
      *this program.                                                 


      ****************************************************************
      *                                                              
      *                 COMMENT SECTION                              
      *                                                              
      * SQL VALIDATION TEST SUITE V6.0                               
      *                                                              
      * YTS791.PCO                                                   
      * WRITTEN BY:  Susan Watters                                   
      * TRANSLATED AUTOMATICALLY FROM EMBEDDED C BY CHRIS SCHANZLE
      *                                                              
      * GRANT USAGE on character set, WITH GRANT OPTION              
      *                                                              
      *                                                              
      * REFERENCES                                                   
      *   11.28   <character set definition>                         
      *   11.36   <grant statement>                                  
      *   10.3    <privileges>                                       
      *   11.3    <table definition>                                 
      *   11.4    <column definition>                                
      *   16.4    <set session authorization identifier statement>   
      *   F#45    Character set definition                           
      *   F#25    Domain definition                                  
      *   F#32    User authorisation                                 
      *   F#3     Basic schema manipulation                          
      *   F#2     Basic information schema                           
      *                                                              
      * DATE LAST ALTERED 02.01.96 CTS5 Hand-over Test               
      *                                                              
      * QA Status: Full FC                                           
      *                                                              
      * Revised by DWF 1996-03-22                                    
      *   Added rollback after authid                                
      *   Fixed charset usage                                        
      ****************************************************************



           EXEC SQL BEGIN DECLARE SECTION END-EXEC
       01  SQLCODE PIC S9      *   11.4    <column definition>                                
       01  SQLSTATE PIC  X(      *   F#25    Domain definition                                  
       01  GGT CHARACTER SET IS CTS1.CS PIC X(3).
       01  uid PIC  X(18).
       01  uidx PIC  X(18).
             EXEC SQL END DECLARE SECTION END-EXEC
       01  norm1 PIC      * REFERENCES                                                   
       01        *   11.36   <grant statement>                                  
       01  ALPNUM-TABLE VALUE IS
               "      *   Fixed charset usage                                        
           
       01 java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
           05         01  uid PIC  X
       01  errcnt PIC S9(9) DISPLAY SIGN LEADING SEPARATE.
      *date_time declaration 
       01  TO-DAY      * DATE LAST ALTERED 02.01.96 CTS5 Hand-over Test               
       01  THE-TIME PIC 9(8).
       01  flag       01norm1 S99   SEPARATE.

       01  SQL-COD PIC S9(9) DISPLAY SIGN       *                                                              

       PROCEDURE DIVISION.
       P0.      *   Fixed charset usage                                         PIC(9   .

             MOVES9(9)  SQLCODE ()java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
"USING uid
din,  TOuidx
             EXEC SQL DIVISION.
             MOVE SQLCODE TO SQL-COD
             EXECSECTIONEND-EXEC
             MOVE CALL "AUTHID" uid
if(  NOT=uidx then
               DISPLAY 01             SQL java.lang.StringIndexOutOfBoundsException: Range [38, 33) out of bounds for length 68
      -     
            STOP RUN
             END-IF
 0 TO

             DISPLAY "SQL                ERROR "  java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 72
             
           "59-byte ID"
             DISPLAY "TEd Version #"
      *date_time print 
           ACCEPTTO-DAY DATE
           ACCEPT        java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
           MOVE"" 

      ******************** BEGIN TEST7525 *******************
             MOVE 1 TO                         9java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23

             DISPLAY "                             DISPLAY "Date run YYMMDD: " TO-DAYjava.lang.StringIndexOutOfBoundsException: Range [0, 59) out of bounds for length 36
DISPLAY"              java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 41
                          DISPLAY   java.lang.StringIndexOutOfBoundsException: Range [53, 49) out of bounds for length 72
  < java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 23
             DISPLAY "    11. END-IF
             DISPLAY "    10.3                  "11.
             DISPLAY "                               "   .3<java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 23
                 .    c "
             DISPLAY "    16.4    <set run  java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 71
      -    "                  java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
             DISPLAY "                  GRANTonjava.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 60
 java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 34
             DISPLAY "    F#32                 DISPLAY "    11.28   <cha 
"F#  java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 60
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
             DISPLAY"11    tablejava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53

             COMPUTE SQLCODE = -1
             MOVE "xxxxx""java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25

 ajava.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 70
DISPLAY
      -    " OPTION"
DISPLAY"java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25

      *initialise variables 
             MOVETO 

             DISPLAY "    F#2     Basic information schema"

             DISPLAY "GRANT "
                           COMMIT
             END-EXEC
             MOVE SQLCODE TODISPLAYT java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 70
              CHCKOK
             DISPLAY  " "

                java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
             EXECMOVE""TO 
             MOVE SQLCODE TO SQL-COD
             java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 27
DISPLAY   

      *create table using character set 

              "java.lang.StringIndexOutOfBoundsException: Range [28, 25) out of bounds for length 36
             DISPLAY " TBCCHARACTER(3)CHARACTER MOVE   
             EXEC SQL CREATE 
                     *insert value into table 
             TO java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 27
             DISPLAY              SQLCODETO 

             "java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 34
             EXEC
             MOVE SQLCODE TO SQL-COD
             PERFORM CHCKOKCHCKOK
             DISPLAY  " "

      *insert value into table 

             DISPLAY "INSERT java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
               WORK
                          SQLCODESQL-COD
             PERFORM CHCKOK
             DISPLAY  " "

             DISPLAY "java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
 * : TB
             TO
             DISPLAY  java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
DISPLAY" EXEC SQL COMMIT WORK
             if (ggtMOVEjava.lang.StringIndexOutOfBoundsException: Range [29, 25) out of bounds for length 36
               MOVEjava.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 25
             

             C WORK
             EXEC SQL COMMIT WORK END-EXEC
             MOVE SQLCODE TO
           
             DISPLAY  " "

      *ensure database is left in a consistent state 
             DISPLAY  DISPLAY"yts791                  
             DISPLAY ;
MOVEjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 36
             PERFORM MOVE SQLCODEjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
MOVE java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38

             DISPLAY "COMMIT WORK;"
             EXEC
             "============               
PERFORM
                java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25

             if (flag  =
.pco  **  * java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
               EXEC SQL INSERT INTO  STOP.
                 EXECjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
               MOVE DISPLAY "SQLCODE  0 value ,
             else
DISPLAY"java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 57
               EXEC SQL INSERT INTO CTS1.TESTREPORT
                 VALUES('                               java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 53
               MOVE SQLCODEEND-IF
               COMPUTE              DISPLAY "=========             
             END-IF

             DISPLAY "=====================      ******************** END TEST7525 ********************END-IF

             EXEC            java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
             java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
      ******************** END TEST7525 ********************

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

      *    ****  Procedures for PERFORM statements

      *Test SQLCODE and SQLSTATE for normal completion. 
       CHCKOK.
DISPLAYSshould0  java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 66
               MOVE   flag
             PERFORM NOSUBCLASS THRU EXIT-NOSUBCLASS
             if (SQLCODE NOT =              (ORMSQ=""   NORMSQPERFORM   14 1 >36
               MOVE
             
             if  
             then
                     *Changed NORMSQ means       *subclasses with 000.  This replacement equates valid     
             END-IF
             .

       NOSUBCLASS.

      *This routine replaces valid implementation-defined       
      *subclasses with 000.  This replacement equates valid     
      *implementation-defined subclasses with the 000 value     
      *expected by the test case; otherwise the test will fail. 
      *After calling NOSUBCLASS, NORMSQ will be tested          
      *                          SQLSTATE will be printed.      

           MOVE SQLSTATE TO NORMSQ

           java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
      *subclass begins in position 3 of char array NORMSQ 
      *valid subclass begins with 5-9, I-Z, end of ALPNUM table 
           PERFORM VARYING norm2
           if (NORMSQX(norm1)  =  ALPNUM(norm2)) then
             MOVE "0" TO NORMSQX(norm1)
           END-IF
           END-PERFORM
           
      *Quit if NORMSQ is unchanged.  Subclass is not impl.-def. 
      *Changed NORMSQ means implementation-defined subclass,    
      *so proceed to zero it out, if valid (0-9,A-Z)            
           ifMOVE"TO java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 39
             GO TO EXIT-NOSUBCLASS
           END-IF

           MOVE 4 TO 
      *examining position 4 of char array NORMSQ 
      *valid characters are 0-9, A-Z 
           PERFORM       *examining position 5 of char array NORMSQ 
           (   orm2)then
             MOVE "0" TO NORMSQX(norm1)
           END-IF
           END-PERFORM
          
           MOVE5TO 
      *valid characters are 0-9, A-Z 
      *examining position 5 of char array NORMSQ 
           PERFORM VARYING norm2 FROM 1 BY 1 UNTIL norm2 > 36
           if (NORMSQX(norm1)  =  ALPNUM(norm2)) then
             MOVE "0" TO NORMSQX(norm1)
           END-IF
           END-PERFORM
   
      *implementation-defined subclasses are allowed for warnings 
      *(class = 01).  These equate to successful completion 
      *SQLSTATE values of 00000. 
      *Reference SQL-92 4.28 SQL-transactions, paragraph 2 

           if (NORMSQX(1)  =  "0"  AND  NORMSQX(2)  =  "1") then
             MOVE "0" TO NORMSQX(2)
           END-IF
           .

       EXIT-NOSUBCLASS.
           EXIT.

Messung V0.5 in Prozent
C=95 H=94 G=94

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

*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.