Home > Ask the AS/400 Experts > iSeries PC/Windows Connectivity Questions & Answers > DSN files causing ODBC problems
Ask The iSeries 400 Expert: Questions & Answers
EMAIL THIS

DSN files causing ODBC problems

Shahar Mor EXPERT RESPONSE FROM: Shahar Mor

Pose a Question
Other iSeries 400 Categories
Meet all iSeries 400 Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 31 January 2002
We are gradually upgrading PCs on our network from Client Access to Client Access Express. After the upgrade we've had trouble with ODBC connections using DSN files that have the system name. I have been able to eliminate these errors in most cases by replacing the system name with the IP address. However, any Excel spreadsheet that uses a dsn with a system originally defined retains the system name even after the dsn & query have been changed to use the IP address. I can tell that the system name is embedded in the worksheet because the ODBC configuration screen is displayed when the error occurs and shows the system name. Also if I pull the workbook up using Word, I scan and find the system name. If I create a new worksheet in the workbook using the same query, it works properly. How can I avoid having to recreate all the original worksheets?

You Can View User Feedback To This Expert Response


>

What you should really do is make the DSN work with system name. Best way to do it is like this:

* IBM client access
* IBM operation navigator
* Right-click and "add as400 connection"

Make sure you can ping the iSeries by name (i.e ping myas400). If not you should add the iSeries name to name resolution:

Add an entry for the iSeries NetServer to a Domain Name Server (DNS), the PC's local LMHOSTS, or set up a Windows Internet Name Server (WINS) to resolve the iSeries server name. The quickest way is to add an entry to the LMHOSTS file located in the Windows directory on a Windows 95 PC, or the WINNTsystem32driversetc directory on a Windows NT PC. If you cannot find an LMHOSTS file in the specified directory it might not have been created yet. Rename LMHOSTS.SAM in that same directory to LMHOSTS and then add a line with the following format:

TCP/IP-address iSeries-NetServer-server-name #PRE

For example: 9.5.10.1 QNETSERVER #PRE

  • Continue with the setup

This should get you what you need.

USER FEEDBACK TO THIS EXPERT RESPONSE

  • This might be a simpler solution: The main step is to configure the relational database (RDB) name on the server. To do this a user should do the following:

    1. On the OS/400 CL command line, type the following statement replacing MY_SYSTEM-NAME with the name of your system: ADDRDBDIRE RDB(MY_SYSTEM_NAME) RMTLOCNAME(*LOCAL).

    2. Type the name of the server in the Relational Database field.

    3. Type *LOCAL in the Remote Location field and press the Enter key.

    The reason the user's system name shows up in Excel windows is because the driver always returns the RDB (Relational Database Name) through its interfaces. There is no defined interface through ODBC to return the IP address. ?Carol Miner

==================================
MORE INFORMATION ON THIS TOPIC
==================================

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

The Best Web Links: tips, tutorials and more.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
iSeries PC/Windows Connectivity
How to print RPG output using iSeries Access
How to view source files in the library
User being locked out by Windows share on iSeries
Blocking AS/400 DB2 users
Trouble accessing IFS path from Win2k3 server
How to use an API for adding users to EIM SSO implemenation
Incorrect CCSID on FTP connection from AS/400 to Windows
Remove character limits from domain or users on RMTUSER
Generically send a text file from the IFS via FTP
Send parameters correctly to the browser when creating a PHP page

FTP
How to view source files in the library
Simplify the process of converting a spool file from iSeries into an Excel spreadsheet
Generically send a text file from the IFS via FTP
Automate Client Access to find files on Windows scheduler
SAVF by FTP on AS/400 -- error "source file not found"
Use a virtual directory to move a .bmp file from the IFS to a remote server to run a software package
Transferring binary files to IFS from a PC via FTP
FTP from AS/400 to PC folder
How to FTP without knowing the file name
IFS folder error

Physical connections to iSeries
Configure the iSeries v5r4 to open the HTTPS port for incoming connections
"Time" saving programming tips for iSeries
PC/Windows connectivity: Top 10 expert Q&As
Run command on a PC
Working with ODBC and dates
Why is my job taking twice as long?
Problems with new server and PC
Take control of your iSeries network security -- Part 2
The iSeries and MS Office make good partners
Microsoft computing: Integrating the iSeries and Microsoft Office
Physical connections to iSeries Research

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



iSeries Networking - Printing, Remote Access, TCP/IP
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts