You need to look into the DB2 Federated support. You can think of it like a Linked Server configuration. The three basic components you will need to create are the server reference, user mapping and the nickname. Once this is in place you will reference the nickname in you SP and that will...
Processes will rarely stop autmatically. You should look into what conditions cause it to trap/crash. You could start by looking in the Windows application event log for clues or look in the DB2diag.log file. The DB2DIAG.LOG is either in the directory specified by the DBM CFG...
The difference is in the statement terminator. By default you are using ';' at the command line.
Note that the SQL procedure languages uses ';' to terminate individual SQL statements. From a Create Procedure perspective the entire body (all SQL statements that make up the procedure) is one SQL...
The key to DB2 online backups is the Database Configuration Parameter "LOGRETAIN". Set this parameter to ON, take a full off-line backup and you will be set to use Online backups. You have probably noticed on the Options tab for the backup GUI that the online option is not available...
Hi john,
I'm thinking that there might be other ways to do the same thing. Specifically, you don't like the quotes. You can look into using just a select statement like "Select cast(...)||..." and you would not have to use EXPORT.
You can turn off the column headers by using (from a...
The EXPORT utility is flexible enough to take SQL statements like select cast(intvalue as char(12)),cast(charval as char(12)) from mytable. In this way you can force aliegnments and left justify all fields.
The command reference docs show a few options that you can provide to DB2CMD none of which will do what you want. Look under ch. 1 of the command reference for "db2cmd - Open DB2 Command Window". That's the best I can offer although I believe that if the BAT file runs minimized the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.