DB2 Universal Database Questions and Answers

Recent IT Questions

61 - 80 of 174

Data migration strategies

Hi All I am embarking on a Data Migration project which involves migrating data from one I-Series database application to a different I-series database application. I guess as with all migrations the data does not excatly match in both appplications. I have identified that i need to populate Excel...

View Answer   |  Sep 5 2006  4:02 AM GMT
AS/400, Data analysis, Project management
asked by Hazermark

  0 pts.

Authorization problem on DDM file in RPG program

I have a RPG program that accesses three DDM files on another iSeries. The program compiles, but I receive error CPF9822-Not authorized to file XXXX in library XXXX. Cannot open DDM file. I have *SECOFR rights on both machines. Can someone help me?

View Answer   |  Aug 28 2006  8:50 AM GMT
Security, RPG, DB2 Universal Database
asked by freckles

  0 pts.

DB2 ?

This may sound stupid, But are files created with DDS on the AS/400 DB2? or some other database type? This would include indexed, non-index and logicals. Thanks

View Answer   |  Aug 25 2006  12:14 AM GMT
DB2 Universal Database
asked by RPGCRAZY

  20 pts.

Embedded SQL in SQLRPGLE using JOIN on multiple files

Greetings, In the past I've used embedded SQL in an SQLRPGLE program and on the FETCH INTO statement I specify an externally defined data structure with the definition of the file I am SQLing thus allowing me to read in the entire record's fields mapped correctly in one FETCH INTO statement... ...

View Answer   |  Aug 21 2006  2:32 PM GMT
DB2 Universal Database, RPG ILE
asked by jklipa

  0 pts.

CPF5152

Hello, I am experiencing a strange problem that is driving me crazy. First what I am attempting to accomplish is to read a DSPF file looking for specific output records and then write to a source file lines of RPG III code to output to those fields. What is happening is that after the 44th line...

View Answer   |  Aug 17 2006  10:34 AM GMT
RPG, Application development, CLP
asked by Joven1

  0 pts.

Access Oracle/Sybase/Informix from RPG

Hi, I would like to access Oracle/Sybase/Informix directly from within an RPG program. This is something similar to ODBC but in reverse - my data source is external to the iSeries and my application and APIs, or called routines, internal in the iSeries. The access to the external database should:...

View Answer   |  Aug 15 2006  8:29 AM GMT
AS/400, Oracle, SQL
asked by JohnDavid

  0 pts.

DB2 Stored Procedure V4R4 without ILE C/400

We have an older iSeries running V4R4. We user Rumba/400 for AS400 access, and we've run into a problem using the Rumba ODBC driver for linked server access from our SQL server to our AS400 (The ODBC driver periodically fails when the linked server is used heavily). Because of this, we've been...

View Answer   |  Aug 4 2006  11:00 AM GMT
AS/400, Oracle, SQL
asked by MODMOD

  0 pts.

Stored Procedures on AS/400

Greetings, I understand SQL stored procedures on the AS/400 generate C source code which is compiled to create a C ILE program object. I could use the same SQL statements in an RPGLE with embedded SQL program and use that to create a RPG stored procedure. Which of the two is more efficient? ...

View Answer   |  Aug 3 2006  10:58 AM GMT
AS/400, Oracle, PC/Windows Connectivity
asked by ashnirody

  100 pts.

Retrieval of Extended Source Library Information

Is there a way via FTP to retrieve additional source code line-level details (sequence #, date line of code was changed) from iSeries RPG/CL source libraries? If not via FTP, is there another way to extract and transfer this information?

asked by rchapin

  0 pts.

Help with converting Mainframe file on iSeries

Hi there, I'm looking for some advice/help on a file that I'm having some trouble with. The file originates from a mainframe, and is sent over to our iSeries (V5R2M0) via Connect:Direct. The file is 3680 Bytes long, comprising of string and compressed numeric data. I have the layout of the file,...

asked by nealhudson

  0 pts.

pl/sql ref cursor question

Hi, I'm trying to figure out if this is possible in Java OPTION 1 ================== 1. Obtain a ResultSet by querying a non-oracle database 2. Cast the resultSet into an OracleResultSet 3. Pass the OracleResultSet into a pl/sql stored procedure for processing OPTION 2 ================= 1....

View Answer   |  Aug 1 2006  6:11 PM GMT
Oracle, SQL, DB2
asked by ajhaveri

  0 pts.

Job Schedule Entries Migration

Hi All, We are migrating from an 820 to a new 550 i5 this weekend. Does anyone know how we can migrate the current Job Schedule Entries on the 820 to the 550? Is there an API to the database that holds the Job Schedule Entry details that we can use to extract the info and then push it into the...

View Answer   |  Jul 28 2006  9:18 AM GMT
AS/400, RPG, Application development
asked by RaydenR

  0 pts.

DB2 not making the FINAL CALL to my user-defined function

UDF is written in RPGLE, and the CREATE FUNCTION specifies SCRATCHPAD and FINAL CALL. When I do an INSERT statement with the UDF specified for one of the columns, I get called twice. The first has a CALLTYPE of -1, and the second CALLTYPE is 0. I'm expecting a third invocation with a CALLTYPE of...

View Answer   |  Jul 21 2006  10:48 AM GMT
DB2 Universal Database
asked by JBTaylor

  0 pts.

SQLCOD = -7008 when doing an insert into file using SQLRPGLE-2

Hi, I'm trying to insert selective records from one file into the same file in another library. I have to do this for many file. Am building the query dynamically using SQLRPGLE. Am using a PREPARE statement and an EXECUTE statement to run the query. While the PREPARE statement ends fine, am...

View Answer   |  Jul 4 2006  12:45 AM GMT
AS/400, RPG, Application development
asked by SasiKumar

  0 pts.

SQLCOD = -7008 when doing an insert into file using SQLRPGLE

Hi, I'm trying to insert selective records from one file into the same file in another library. I have to do this for many file. Am building the query dynamically using SQLRPGLE. Am using a PREPARE statement and an EXECUTE statement to run the query. While the PREPARE statement ends fine, am...

View Answer   |  Jul 4 2006  12:44 AM GMT
AS/400, RPG, Application development
asked by SasiKumar

  0 pts.

Deleted Users

Hi Is there any way we can know about deleted userprofiles in AS400? We have an audit process wherein the auditor have asked for a list of all the users deleted. Can any one suggest where can I get such a list? pgsdeb

View Answer   |  Jun 28 2006  7:44 AM GMT
AS/400, Security, Application development
asked by pgsdeb

  5 pts.

Operating Console

Hi I have operations console running on a laptop which is directly connected to my I-Series. All runs okay until the laptop powers down(for variety of reasons), when i power it on again it will not connect to the I-Series without doing an IPL of the I-Series. I get the message "Connecting Console"...

View Answer   |  Jun 28 2006  2:52 AM GMT
AS/400, Security, DataCenter
asked by Hazermark

  0 pts.

Data mapping errors when reading records with time fields...

I'm trying to access records from a file that has eight fields defined with the time attibute. When I examine the data held in these fields they are mostly set to *LOVAL i.e. 00.00.00 in *ISO format which according to the RPGLE reference manual is an allowable value. However, when my program...

View Answer   |  Jun 23 2006  9:51 AM GMT
Application development, RPGLE, DB2 Universal Database
asked by JonathanG

  0 pts.

SQL Alias visibility

We have found that creating an SQL alias works for accessing file members in embedded and interactive SQL. But if we create an ALIAS in our live libraries with the intention of keeping it for frequent use, how do we know it exists other than WRKOBJ? It doesn't show up in DSPDBR. And is there...

View Answer   |  Jun 22 2006  4:17 PM GMT
SQL, Application development, DB2 Universal Database
asked by LeslieL

  40 pts.

SAVACTWAIT time on SAVLIB, etc.

Hi, Has anyone experimented with the SAVACTWAIT time on the SAVLIB command. The default on 120 second seems rather long. What I am looking for is a realistic value based on fact such as that if an object does not become available after 5 second the change that it will become available after 120...

View Answer   |  May 29 2006  8:19 AM GMT
AS/400, Security, Oracle
asked by JohnDavid

  0 pts.

61 - 80 of 174