Preview

Sqlcode Db2

Good Essays
Open Document
Open Document
3868 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Sqlcode Db2
Contents of SQLCA:

01 SQLCA.
05 SQLCAID PIC X(8). 05 SQLCABC PIC S9(9) COMP. 05 SQLCODE PIC S9(9) COMP. 05 SQLERRM. 49 SQLERRML PIC S9(4) COMP. 49 SQLERRMC PIC X(70).
05 SQLERRP PIC X(8). 05 SQLERRD OCCURS 6 TIMES PIC S9(9) COMP. 05 SQLWARN. 10 SQLWARN0 PIC X(1). 10 SQLWARN1 PIC X(1). 10 SQLWARN2 PIC X(1). 10 SQLWARN3 PIC X(1). 10 SQLWARN4 PIC X(1). 10 SQLWARN5 PIC X(1). 10 SQLWARN6 PIC X(1). 10 SQLWARN7 PIC X(1). 05 SQLEXT. 10 SQLWARN8 PIC X(1). 10 SQLWARN9 PIC X(1). 10 SQLWARNA PIC X(1). 10 SQLSTATE PIC X(5).

The SQLCA is described in the following table, including the field names used in each language, the data type, and a discussion of the purpose of each field.

COBOL
Name | C
Name | PL/I
Name | Data
Type | Purpose | SQLCAID | sqlcaid | SQLCAID | char(8) | A character string (SQLCA) that identifies the beginning of the SQLCA. | SQLCABC | sqlcabc | SQLCABC | integer | Specifies the length of the SQLCA. Value is always 136. | SQLCODE | sqlcode | SQLCODE | integer | Contains a return code pertaining to the most recent SQL statement executed. Important values are:
0 Statement executed successfully (may have had warnings).
>0 Executed successfully but with an exception condition.
<0 An error occurred.
100 End of data reached. | SQLERRML | sqlerrml | SQLERRML | smallint | The length of the SQLERRMC string (0 to 70). If 0, the value of SQLERRMC is not pertinent. | SQLERRMC | sqlerrmc | SQLERRMC | varchar (70) | One or more tokens, separated by x'ff', that are substituted into error messages to provide specific

You May Also Find These Documents Helpful

  • Good Essays

    The SELECT statement is the primary means of extracting data from database tables, and allows you to determine exactly which data you want to extract by means of different comparison operators used in the WHERE clause. This includes the use of specific "wild card" characters which allow you to search for character or number patterns within the data. You can also perform mathematical expressions within the SELECT statement to create derived output. The ORDER BY clause allows you to sort the output data in either ascending (the default) or descending order. Lab #5 will explore all of these applications of the SELECT statement.…

    • 1559 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    NT1310 Unit 3 Homework

    • 1253 Words
    • 5 Pages

    tem. Each of these numbers identifies the command running in the background. It’s useful to know what jobs the program has completed and which ones are still running. The utility to use to run more than one command is “&”.…

    • 1253 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    This column shows the protocol that the packet is using. It would be useful when trying to decide if the proper protocol is being used and if it is causing a conflict which could shut the system or program down.…

    • 1389 Words
    • 6 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1310 Unit 1

    • 4209 Words
    • 17 Pages

    It parses and also executes the statement Displays the execution plan for the select statement automatically…

    • 4209 Words
    • 17 Pages
    Powerful Essays
  • Satisfactory Essays

    cis3730_Exam1_Studyguide

    • 512 Words
    • 2 Pages

    You will be asked to write SQL scripts to display required information, like we did in the homework.…

    • 512 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1430 Unit 2

    • 393 Words
    • 2 Pages

    IF it starts with / it is absolute value. If it does not contain a / or . it is a simple file.…

    • 393 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Unit 6 True

    • 287 Words
    • 1 Page

    SQL is the programming language used to manipulate data and data objects in a relational database management system. TRUE…

    • 287 Words
    • 1 Page
    Satisfactory Essays
  • Powerful Essays

    data and can be initiated from the DOS command prompt? What useful information does this query…

    • 924 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    unit 6

    • 360 Words
    • 2 Pages

    1) SQL is the programming language used to manipulate data and data objects in a relational database management system.…

    • 360 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    SQL allows the use of a special operator in conjunction with the WHERE clause. The special operator used to define a range limit is ____.…

    • 1917 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    Hrm Labor

    • 363 Words
    • 2 Pages

    | (TCO 2) Which of the following functions would you use to extract the from your records in the database?…

    • 363 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    An example row has been entered into the table. This is only an example and should not limit what you do.…

    • 312 Words
    • 3 Pages
    Satisfactory Essays
  • Best Essays

    This assignment will define communication and discuss the importance of effective communication within the healthcare sector. It will then look at how I can develop an active listening skill that I currently feel is a personal weakness. (Appendix 1)…

    • 2758 Words
    • 12 Pages
    Best Essays
  • Satisfactory Essays

    Assignment2

    • 619 Words
    • 2 Pages

    In SQL, specify the following queries on the database specified in Figure 1 above. Show the query…

    • 619 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    (1) .model small .stack 100h .data dis1 db "Enter First Character:$" dis2 db "Enter Second Character:$" nme db "ASSEMBLY$" .code start: mov ax, @data mov ds, ax mov ah, 9h lea dx, dis1 int 21h mov ah, 1h int 21h mov bl, al mov ah, 2h mov dl, 0ah int 21h mov dl, 0dh int 21h mov ah, 9h lea dx, dis2 int 21h mov…

    • 1874 Words
    • 8 Pages
    Satisfactory Essays

Related Topics