User Profile

Collapse

Profile Sidebar

Collapse
Chrisk
Chrisk
Last Activity: Jul 31 '07, 09:17 AM
Joined: Jul 31 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • In your 'sqllib/bnd' directory there is a file called 'ddcsmvs.lst'. It contains names of bind files you must bind on the server:

    db2 bind @ddcsmvs.lst sqlerror continue grant public
    See more | Go to post

    Leave a comment:


  • Chrisk
    replied to Packages and Procedures
    in DB2
    A package is an object created by binding a DBRM (or a '.bnd' file in Linux,Unix,Wind ows). Many packages with identical names can exist in the same system, using the VERSION pre-processor parameter.

    A plan is an object created by binding a set of DBRM's and/or a list of package names.

    Distributed applications always use packages.
    See more | Go to post

    Leave a comment:


  • Chrisk
    replied to check constraint
    in DB2
    First of all, if the 15 characters must be digits, shouldn't you use a DECIMAL(15) data type instead?

    However...

    Add a CHECK condition to the table which converts the digits to a DECIMAL(15) and back to a CHAR(15). Then compare the resulting string to the original. You will get a conversion SQL error if they are not digits.

    It is not trivial (I think):
    Code:
    alter table sample add
    check(substr(char(decimal(substr(col1,1,15),15,0)),1,15)
    ...
    See more | Go to post

    Leave a comment:


  • Use a UNION ALL where you select constants (the header) from SYSIBM.SYSDUMMY 1 in front of the actual table SELECT.
    See more | Go to post

    Leave a comment:


  • IBM supplies a stored procedure DSNUTILS you can use to invoke REORG and other utilities. Perhaps it is already in your system.

    There should be something to read in your 'Utility Guide and Reference' manual.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...