DB2 Questions and Answers

Recent IT Questions

61 - 80 of 387

Create DB2 table relations

There is a requirement to have a subset of data available in DB2 tables in production to a test environment. There is no relationship defined in DB2 (so info available in catalog relationship tables). Now we need to find the relationship between the tables using some automation process. So we might...

View Answer   |  Nov 21 2008  10:34 AM GMT
DB2, Table Relationships, DB2 Table Relationships
asked by Toramky

  5 pts.

Update help needed

I need to perform an update as follows... Update LIBNAME.SDFILE Inner Join LIBNAME.DXFILE On SDPRDC = DXPRDC And SDSENO = DXSENO And SDORNO = DXORNO And SDLINE = DXLINE Set DXDNAM = '', DXDAD1 = '', DXDAD2 = '', DXDAD3 = '', DXDAD4 = '', DXDPCD = '', DXINVN = 0 Where SDIECD = 'SO'...

View Answer   |  Nov 18 2008  6:28 PM GMT
i5, SQL, DB2
asked by SBatSI

  370 pts.

QMF

can we save the statements write in QMF?

View Answer   |  Nov 16 2008  2:14 PM GMT
DB2, QMF, Query Management Facility
asked by Avijji

  5 pts.

DB2 update query giving error STRING REPRESENTATION OF DATETIME VALUE HAS INVALID SYNTAX.

The following sql query in DB2 is giving the exception. What can be the correct query for this in DB2? SQLQuery=update EMP set validityenddate='01-JAN-07' WHERE username='XYZ' Exception: msg=java.sql.SQLException: [DataDirect][ODBC DB2 Wire Protocol driver][UDB DB2 for Windows, UNIX, and...

View Answer   |  Nov 13 2008  1:24 PM GMT
DB2, DB2 Universal Database, DB2 Update Query
asked by Saimadhu

  370 pts.

DB2/400

difference between db2 and db2/400

View Answer   |  Nov 13 2008  7:38 AM GMT
DB2, DB2/400, IBM DB2
asked by Allampriya

  5 pts.

Connecting to a remote DB on a UNIX server with SQL

I am trying to connect to a remote DB on a UNIX server. I am using embedded SQL statements to achieve this task. I have a file that contains DB name, ID & PW that I pass to the connect statement, rather than hardcoding the info to the program (for security reasons). C EstConnect BegSr ...

Answer Question   |  Nov 4 2008  7:35 PM GMT
DB2, Remote access, Unix Servers
asked by AS400 - Ask the Expert

  395 pts.

Database hang on AIX

I'm experiencing a database hang and so far I haven't discovered the root cause of the problem. We are running DB2 v9 fixpak 3a on AIX 5.3. The instance is hanging and we can't kill the DB2 processes so the only way to restore services is rebooting the server. The following is the output from the...

View Answer   |  Nov 4 2008  5:58 PM GMT
DB2, AIX, DB2 Fixpak
asked by AS400 - Ask the Expert

  395 pts.

SQL query error: token DATA

I am new to Db2 on iSeries. I am running some SQL script files using JDBC to create a repository on DB2 for my project. The query is of the form: Create table tbl_name(col1 datatype(size),...... ,coln datatype(size)) DATA CAPTURE NONE; I am getting error on token DATA.. I tried to execute this...

View Answer   |  Nov 4 2008  5:54 PM GMT
AS/400, DB2, JDBC
asked by AS400 - Ask the Expert

  395 pts.

Converting a varchar to a numberic in SQL query

How can we convert a varchar field to Numberic in a SQL Query in db2 400?

View Answer   |  Nov 4 2008  5:50 PM GMT
AS/400, DB2, DB2/400
asked by AS400 - Ask the Expert

  395 pts.

SQL proceedure to join header and detail file

I want to know how to set up a SQL procedure that joins a header file and detail file where the status field in header = 'X' then updates this header record after selecting the detail records.

Answer Question   |  Nov 4 2008  5:48 PM GMT
AS/400, SQL, DB2
asked by AS400 - Ask the Expert

  395 pts.

FORMAT keyword in non-join logical files -- what and how?

How do I use FORMAT keyword in a non-join logical file? What is the main purpose of that keyword?

View Answer   |  Nov 4 2008  5:46 PM GMT
DB2, Logical File, FORMAT keyword
asked by AS400 - Ask the Expert

  395 pts.

Prevent Update in DB2 SQL External Trigger Program

I have a 3rd party application that maintains a customer master file (update, insert, delete) and I cannot alter their programs. I would like to put a trigger on the database file to fire an external program on insert and determine if the insert should be performed. If not, I would like to send a...

View Answer   |  Nov 3 2008  4:29 PM GMT
AS/400, SQL, DB2
asked by Djswtd

  25 pts.

DB2/400

Hello Guys, In DB2/400 even after we delete record from file, the record exists until we are done with RGZPFM. The deleted record can be identified by a indication field with value "Y" or "N". How to see this indicator field? How to see the DB2/400 RRN (Relative record number)field? I tried...

View Answer   |  Nov 2 2008  11:38 AM GMT
DB2, DB2/400, RGZPFM
asked by BibinGeorge

  110 pts.

Data Extract

What is the easiest way to extract data from a pipe-delimited text file?

View Answer   |  Oct 30 2008  2:37 PM GMT
RPG, DB2, CL
asked by Farmgirl1

  65 pts.

EDM Pool Usage

I have a Cobol program which calls another DB2 program which in return executes a procedure. And this call happens more than thousands time...so EDM Pool getting filled up with pages which shuts down the DB2. Can you suggest what needs to be done to minimize the EDM Pool issue.

Answer Question   |  Oct 29 2008  4:53 PM GMT
COBOL, DB2, EDM Pool
asked by Coolster01

  5 pts.

Extracting data from a DB2 table using IKJEFT01

I'm trying to extract data from a DB2 table via an SQL query and use IKJEFT01 to create a flat file. However, one of the non-key fields contains characters that are not nulls but non-printable. Whenever IKJEFT01 extracts these characters it changes them to nulls in the flat file. Is there an...

View Answer   |  Oct 21 2008  12:30 AM GMT
DB2, SQL Query, IKJEFT01
asked by AlanJ

  5 pts.

QMF for Windows

How can I execute 10 sql at one go ?

Answer Question   |  Oct 14 2008  6:54 AM GMT
SQL, DB2, QMF
asked by Jams

  5 pts.

DB2 Web Query

Hello Does anyone know how to select fields in the DB2 Query for report purposes, and yet not have them appear in the sort by window pane. Seem simple enough, but, when I have the field select tab highlighted, and double clik on any field, the field automatically appears in the sort by...

View Answer   |  Oct 13 2008  9:28 PM GMT
DB2, DB2 Web Query
asked by Piano

  250 pts.

DB2 Web Query

Hello I created metadata over a a "set" of files. My next step is to define a primary over one of the files, and then foreign keys over the other files defined in my metadata relational database. Unfortunately, when I attempt to define my primary key over the main file, I receive...

Answer Question   |  Oct 10 2008  8:30 PM GMT
DB2, Metadata, DB2 Web Query
asked by Piano

  250 pts.

Field editing for DB2 WebQuery

How can I provide field editing for DB2 WebQuery? For example: phone number(length 10, decimals 0) as (123)456-7890 and Customer Id# (length 6, decimals 0) as 1234-56 . DB2 WebQuery doesn't seem to pay attention to the edit words/edit codes of the PF DDS, so I am trying to do my own...

Answer Question   |  Oct 3 2008  5:54 PM GMT
AS/400, DB2, DB2 Web Query
asked by AS400 - Ask the Expert

  395 pts.

61 - 80 of 387