tnt400.com - AS/400 Tips And Techniques

Sponsored by news400.com

This page is a discussion on the mentioned topic.
Most of the answers are in their original posted form, including any technical/spelling/grammatical errors.
No guarantees are expressed or implied. :-)
Comments, corrections, concerns about this tip?

Got another AS/400 question? Ask it here


What's New?
See what's new at Tips-N-Tech.

AS/400 Tips-N-Tech
AS/400 tips, techniques, and FAQ. Updated frequently.
CODEPage/400
All the code samples you can eat! RPG, CL, DDS, etc. etc.
AS/400 FAQs
The official news400.com FAQs.






All AS/400 Tip Categories / Client Access / Client Access ODBC Performance


Question:

Did anybody ever encounter performance problems when accessing data via Client Access ODBC? What is the best way to prevent them? When you create a table in DB2 using ODBC what is exactly created? Only a physical file or also a logical file? Does the back-end need fine tuning in any way? Should I create logical files if they are not created? In other words: I need the most optimum settings for ODBC-DB2/400!


Answer(s):



You probably need to do some back-end tuning and visit this URL for useful tips: http://www.softmall.com/as400/cs/csinfo.html




None, it is absoulty perfect! ?What is the best way to prevent them? Code directly to the ODBC API, do not use DAO or MS Data Control. Do not use attached tables via ACCESS. These are loser methods. Check out my web page @ www.sqlthing.com to see my product that access the 400, imports, exports, data mining, guery optimization, etc. Free beta/restricted version is available for immediate download. Also, I have FREE class object for direct ODBC manipulation of the as 400. You can download it from the web page next week. (Finishing the documentation, adding a sample database and example programs that you can run immeditaly, etc.) Here is what i do to prevent problems. 1. Issue STRDBG from client via ODBC to turn on message logging. 2. Issue query from client, . 3. DSPJOBLOG of odbc qzdasoinit qserver subsystem job and look at optimizer messages to determine how to tweak query. 4. repeat until perfect! 5. copy query into client application code. Also, make liberal use of stored procedures. For example, we have a data entry app the validates a few things, updates or inserts a summary record and then inserts the main record the operator has been working on. The program took 1.5 seconds to do this via ODBC with extended dynamic turned on. (5 sql statements to execute, 3 fetch and 2 modify) We took the logic and wrote an ILE C program, call it as a stored procedure in the same activation group of the calling program. We can execute the procedure 17.8 times per second from a single client. That is FAST! > create a table in DB2 using ODBC what is exactly created? Only a > physical file or also a logical file? Create table creates a physical file. Create index creates logical. Adding ref integrity adds LF's to the database. Create view creates a LF.





Other tips in this category:

Click here to see all categories.

Capturing RMTCMD Results
How to omit the first user/password under NT
How To Get Rid Of Client Access Network Drives
SYSTEM32 folder opening after CA install
Can't get rid of Personal Communications (PCOM)!
Installing Client Access For NT Workstation Users
Validating password against OS/400
How to omit the first user/password under NT
Enabling print screen key
How to copy 5250 screens into MS Word
Operations Navigator - File Systems Not Displaying
Data Transfer, WinNT 4.0, Novell Client for NT
Client Access through the Public Internet
Selective Setup keeps coming up
What ports do I open for Client Access?
Client access password dialog - go away!
How to get Client Access from AS/400 to PC
Client Access download of DBF files
File transfer using CA and TCP/IP
Scheduling file transfers
Client Access device descriptions
DDS and Client Access (PC5250)
Client Access Through A Proxy
Client Access Lockup
DLC Driver location
Automated File Transfer
Changing max # of sessions in CA
Exchanging Word documents with OfficeVision
Client Access Win95/98 Shutdown problems
cwbnw6101-error: network drives could not.....
RUNRMTCMD not working
Connection Error CWBSY1000 Discussion
NT Remote Command password problems
Single Signon Possible?
Troubleshooting connections
Automated NT to AS/400 xfer
Transferring DBF files
CA/400 DOS Security problems
Accessing Network drives hangs PC
SNA Connection Troubleshooting
RMTCMD to a specific PC
SNA Server Over Twinax
Windows 95 OSR2
CA95/NT Password Incorrect
Client Access File transfer all x'40'
Telnet5250 (TN5250) wanted for Win 95/NT
Windows AS/400 Access via RAS
No Client Access Signon! Help!
PC5250: As shipped - no file transfer?
Client Access connect brings up Dialup
Client Access and IE4.0
ODBC Problem SQL0104 - Token * not valid
CA Receives Illegal Operation In DIAGSVR
Accessing The "I:" drive from CA 95/NT
How to download all file members at once
Transferring AS/400 spool files to the PC
PC5250 Crashes On Exit!
Hiding AS/400 In Network Neighborhood
Client Access ODBC Performance
Win95/AS400 Print Screen Problems
Client Access TCP/IP Setup Troubleshooting
Client Access IFS Security
Creating Client Access Install Diskettes
Stop Netsoft Log File Growth


You are at a news400.com site.
Contact Us | Report Bugs | Submit Comments/Suggestions | Read Site Use Agreement | Read Privacy Policy
Copyright © 2000 Duke Communications International.
This site is best viewed with the latest versions of Netscape or Internet Explorer, 800 x 600 resolution (or higher), and at least 256 colors.
Duke Communications   NEWS/400 | 29th Street Press | Business Finance | DominoPro | Selling AS/400 Solutions | SQL Server Magazine | Windows NT Magazine