DB2 Universal Database Questions and Answers

Recent IT Questions

121 - 140 of 174

Methods used to maintain the access path of a file

Sarang wrote in with this question recently: "Can someone please name and define the three methods used to maintain the access path of a file?" Do you know the methods? -- Debra Tart, associate editor, Search400.com

View Answer   |  Dec 21 2005  4:20 PM GMT
DB2 Universal Database
asked by DebraTart

  0 pts.

Advice needed to move from DB2/400 flat-file system to Oracle

Koteswararao wrote in with this question recently: "We are planning to move from a DB2/400 flat-file system to Oracle. We do not have any relations in DB2/400. I want to extract the metamodel(total DDL scripts) from DB2/400 and go to datamodeling. Initially I thought Oracle Migration Workbench...

View Answer   |  Dec 21 2005  9:59 AM GMT
DB2 Universal Database
asked by DebraTart

  0 pts.

Using SQLRPG on a DDM File

Hi, I need to access a DDM file via SQLRPG -since SQL does not directly support DDM -can it be done by first using OVRDBF on the DDM file to override it to a local file and then use SQLRPG ? Help would be much appreciated for a project I am currently working on. Thank you! Ruwan

View Answer   |  Dec 15 2005  7:33 AM GMT
RPG, RPGLE, DB2 Universal Database
asked by Ruwan777

  0 pts.

Updating a VSAM file

Tim wrote in with this question recently: "I need to update a VSAM file on a mainframe connected to an AS/400 -- via TCP/IP. Ideally, I would like to add/delete/update a record on the AS/400 and have the database issue a call to a CICS program on the mainframe, pass data to the CICS program and...

View Answer   |  Dec 14 2005  2:28 PM GMT
AS/400, DB2 Universal Database
asked by DebraTart

  0 pts.

Looking for a utility to list all used queries and files

Pat wrote in with this question recently: "I need a utility to list all queries and files used, date used, etc. I am on V5R1." Can you point him in the correct direction? -- Debra Tart , associate editor, Search400.com

View Answer   |  Dec 14 2005  2:20 PM GMT
DB2 Universal Database
asked by DebraTart

  0 pts.

Anyone ever use the SNDRPY command in CL?

I am using the CHGPF command to change a file. I know it will result in data loss, and I will get a messaage that I must reply "I" to ignore and then it will change the file. The file is used all day long and I would like to have a CL program change it after hours. I found the SNDRPY command...

View Answer   |  Dec 12 2005  4:56 PM GMT
AS/400, RPG, CLP
asked by dalejanus

  0 pts.

SET verb in COBOL

Hi The SET verb in COBOL set the value of a particular variable to a specified value. Now say I decalred a variable as 05 WS-SWITCH PIC X(01). 88 VALID-VALUES VALUE 'A', 'B', 'C'. 88 NOT-VALID-VALUES VALUE 'D', 'E', 'F'. If I want to set the value...

View Answer   |  Dec 1 2005  3:36 AM GMT
AS/400, RPG, CLP
asked by pgsdeb

  5 pts.

Data Integration

We are in the beginning stages of integrating data between a PC based inventory system and the iSeries. Specifically we will be downloading and uploading data between the two systems automatically. We have had success using ODBC. We also need to be able to call an RPG program from the PC based...

View Answer   |  Nov 30 2005  2:39 PM GMT
SQL Server, DB2 Universal Database
asked by Christina

  0 pts.

What is correct syntax for SQL for Maxrecords in OS400/DB2?

What is correct syntax for SQL for Maxrecords in OS400/DB2? We have a process automatically generating SQL code. However, our iSeries doesn't recognise the code it generates for maxrecords. Here are the examples of what I mean. The DB2 database seems happy with SELECT I1PHON,I1ACC,I1ACC1, FROM...

View Answer   |  Nov 29 2005  12:10 AM GMT
AS/400, SQL Server, DB2 Universal Database
asked by peterax

  0 pts.

DB2 Joins

Can someone explain the order this join specification will be performed in? RSINDIP LEFT OUTER JOIN RSINDPP ON RSINDIP.INICID=RSINDPP.IPICID LEFT OUTER JOIN MKEMLAP ON RSINDIP.INCID=MKEMLAP.ELEMIC LEFT OUTER JOIN MKIPRMP ON RSINDIP.INICID=MKIPRMP.IKICID ...

View Answer   |  Nov 23 2005  5:22 PM GMT
DB2 Universal Database
asked by intravler

  0 pts.

How to operating with Multiple Member PF in RPG ?

I have a multiple member physical file and I want to operate(read/update/delete) with specific member in RPG. The member name for that PF need to be set at runtime depending upon from which program this rpg program is called. I am writing the sample code that I was trying, but it ends up with...

View Answer   |  Nov 18 2005  0:06 AM GMT
AS/400, RPG, CLP
asked by inlog1

  0 pts.

Printek printer using tcpip

What does the spool file need to look like to print a barcode on a printek 4305 se printer? I cant figure out how to send the hex command to the printer so it understands that it is a command not just text.

View Answer   |  Nov 17 2005  1:49 PM GMT
AS/400, RPG, CLP
asked by cookie934

  0 pts.

rpg

We just upgraded to an iSeries box with 5.3. We were running 4.6. My RPG programs function properly until I recompile the program. Then I get an compile error 7073 regarding the length of a key field not equal. The compile shows BIN2 (and sometimes multiples) after the other key fields and I can't...

View Answer   |  Nov 16 2005  3:06 PM GMT
AS/400, RPG, CLP
asked by kahenry

  0 pts.

Help running interactive SQL statement

This user recently upgraded from V4R5 to V5R2, and now they're having difficulty running an interactive SQL statement that worked fine at R4R5. The statement is as follows: update grmlib/mspmp100 as t1 set pmfp2=(select pmfp2 from grmlib/sin gupl2 as t2 where t1.prdno=t2.prdno and...

View Answer   |  Nov 14 2005  9:30 PM GMT
DB2 Universal Database
asked by MichelleDavidson

  110 pts.

export sql server to iseries files

when I attempt to export a file most vchar and char fields default to datalink type via odbc. The iseries does not like the datalink type as then it can't find the link. When I try to force the vchar field it creates the file but then on the copy tells me the field is not found Any...

View Answer   |  Nov 11 2005  8:53 AM GMT
AS/400, Security, Servers
asked by AS400programmer

  0 pts.

Connecting to the Database

I am trying to connect my project in Visual C++ 6.0 to the database in Microsoft Access 2003 using DAO but am receiving an error message stating that 'unrecognised database format', how can I do it then?

View Answer   |  Nov 10 2005  3:33 AM GMT
Oracle, SQL, Software Quality Assurance
asked by Jmirror

  0 pts.

QsnBeep

Does anybody know if I can use the QsnBeep (QSNAPI) several times in a RPG-ILE but with different 'beeps'. For example, there are 2 possible errors in an interactive program, can I generate 2 different error-sounds ? Or does it ALWAYS uses the PC5250 host bell ? Although I think it is another story...

View Answer   |  Nov 9 2005  10:57 AM GMT
Tech support, AS/400, RPG
asked by hahajokes

  5 pts.

making CHGOBJOWN faster

Is there a way to make a command like CHGOBJOWN run faster. Rather than waiting to get an exclusive lock on the object I would rather see the command try once and move on. I still need to capture the fact that the change failed, I just want it to fail quicker if it is going to fail.

View Answer   |  Nov 8 2005  2:33 PM GMT
AS/400, DB2 Universal Database
asked by brami06

  0 pts.

Access SQL Server 2003 database from ISeries

Hello everyone, I have searched the web for SQL Server/ISeries connectivity and have come across some interesting options: java, JDBC etc. But they have not been very clear. I understand that it is not a simple task, but has anyone successfully accessed an SQL Server database from ISeries using...

View Answer   |  Nov 8 2005  10:51 AM GMT
AS/400, RPG, Database
asked by orozcojoe

  0 pts.

How do I retrieve the JOB/USER/NBR for a spoolfile generated by a GUI program?

I have a GUI program which HAS to run interactively that generates a spoolfile. The HTTP job (Which is what I correctly retrieved using RTVJOBA & QUSRJOBI)is: Job: VOI User: QTMHHTTP Number: 303484 But the job that my spoolfile has is: Job: QPRTJOB User: ...

View Answer   |  Nov 8 2005  7:37 AM GMT
AS/400, RPG, Database
asked by orelalaith

  0 pts.

121 - 140 of 174