Question

Transfer Data from AS/400 to Excel

Asked by: jim25

Hi all

I need some step by step guidance on this one.

I have got to the stage where I see the iseries add on in Excel.

Could someone please give me some instructions how to transfer data now please?

Many thanks!

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-03-21 at 02:59:54ID21782107
Tags

excel

,

data

,

transfer

,

from

Topic

Programming for iSeries / AS400

Participating Experts
3
Points
20
Comments
17

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Transfering Files to NT In Batch from AS/400 using iSeri…
    I have an AS/400 system which produces about 28 files every night and leaves them on the AS/400 file system. The process which is currently in place to transfer these files to my NT environment is to transfer each one manually using iSeries Access. As you can imagine, this ...
  2. Copy source code from a PC to the AS/400 (iSeries)
    I am trying to transfer rpg source code from a txt file to the AS/400. I have tried ftp which copies it as a PF. I have tried using the Iseries Data Transfer but get errors. Can anyone help with the exact steps involved in getting these programs to the AS/400. Thanks
  3. iSeries Data Transfer to Excel 2007 limits rows
    I am extracting data through Excel 2007 using iSeries Client Access transfer. However, even though I have Excel 2007 with 1 million rows, it stops at 65636 and says rows beyond are not valid. It will not let me start at a new row beyond that either. Is there a newer version o...
  4. Data Transfer from Iseries
    I understand that the 'Data Transfer for Iseries' application may be used to extract data from a file on a iseries server. May it be used to extract data from a table in a db2 database and import it to a file on a windows client?
  5. Greek data transfer to AS/400
    I want to transfer Greek data which is in Excel file to AS/400 physical file

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: mvidasPosted on 2006-03-21 at 06:43:18ID: 16247109

Hi James,

I'm guessing you're talking about "cwbtfxla.xll".  I used it a while ago, but found it easier (for me at least) to use other methods of getting data (running a query then using the iSeries Navigator software to move the output to my computer from the AS400 outq).  I still have that add-in, so I'll try to give you some basic instructions on how to use it (though I'm by no means an expert with it).

On the Client Access toolbar that gets added, click the "Transfer Data from iSeries" button.  For the Transfer Request field, choose New, and choose a starting row/cell. Click OK.
Choose the iSeries server you want to get data from, and click Next.
Choose the library/file you want to get data from, click next
The 'Data Options' button is where you define the query/what you want to retrieve. Format Options controls the format of the data, and I almost never changed the run-time options.  Click next when done with that screen
If you want to save this data transfer information (if you need to do it more than once), you can do it on the next screen or just click next from there if you don't need to save it (not the information, just the transfer setup).
Click Finish

Matt

 

by: daveslashPosted on 2006-03-21 at 09:17:00ID: 16249017

I used to use the "Transfer Data to iSeries" button, but I've found it much more flexible to use Excel's built-in capability to import from an ODBC data-source.

- In Excel, click "Data", then "Import External Data", then "New Database Query"
- Select the appropriate previously created ODBC data-source, click "OK"
- Sign on to the '400 on the resulting pop-up
- Select the appropriate table, press the ">" button, and click "Next" 3 times
- Finally, click "Finish", then "OK"

The data will then be returned into Excel with all the appropriate column headings.

HTH,
DaveSlash

 

by: jim25Posted on 2006-03-21 at 11:15:30ID: 16250239

Thanks guys so much for information.

Sorry to be thick but as Matt will tell you Dave I am new to all this stuff but trying to learn fast!

I have a few questions:

I have reports on my print queue which I would like to transfer to excel.

I have managed to find out that the library for them is QUSRSYS

BUT

I can not see QUSRSYS to select in the procedure Matt outlined.

Dave what do you mean by "previously created ODBC data source"?

Cheers!

 

by: daveslashPosted on 2006-03-21 at 11:22:01ID: 16250303

Ahh, I misundertsood slightly. I had assumed you're looking for data in the database. But, it seems you're looking for data in spool files.

If it were me, I'd use iSeries Navigator (a.k.a. Operations Navigator) and drag the spool files to my PC. (click My Connections, your box name, Basic Operations, and Printer Output)

Once it's a text file on your PC, you can very easily import it into Excel.

HTH,
DaveSlash

 

by: mvidasPosted on 2006-03-21 at 11:33:18ID: 16250458

James,

I use the iseries navigator as well to do this, it even knows your personal outq based on login name. It is something your help desk should be able to install for you as I believe it is software that comes with the iseries emulator.

The AS400 systems should also have an option of sending it to disk.  If it doesn't work, and you can't get the navigator software, try setting up a shortcut that points to:
\\as400server.domain.com\ROOT\QSYS.LIB\QUSRSYS.LIB

You may need to try removing the \ROOT (and/or possibly the QSYS.LIB), as well as change the location of the server, but I have done that in the past.  If you have any problems with it, you should probably (again) contact your IT dept to see if they have any ideas.

Matt

 

by: murphey2Posted on 2006-03-23 at 01:24:10ID: 16267328

Hi Jim25,

I think you have a lot of information now, but there is one more option.
Create an HTML file on yout as/400 then you have full controll over the Excel layout
copy it to your PC with extention .XLS and excell will accept it as a normal excelfile.
here some tips.

User the <COLGROUP> to set the column width.
eg.
<TABLE border="0" cellpadding="0" cellspacing="0">
<COLUMNGROUP>
<COL width=70 align="Right">
<COL width=200 align="Left">
<COL width=50 align="Center">
</COLUMNGROUP>
<TR><TD><B>Code</B></TD>
<TD><B>Description</B></TD>
<TD><B>Y/N</B></TD>
<TR><TD>123</TD><TD>example Line 1</TD><TD>Yes</TD>
<TR><TD>Abc</TD><TD>example Line 2</TD><TD>Yes</TD>
<TR><TD>XYZ</TD><TD>example Line 3</TD><TD>Yes</TD>
</TABLE>

One problem is that the grid-lines of excel disapear.
But I did some investigation and found the XML code to get these lines also
(I know there is an HTML equivalent that I don't have but I will find that.)

So by adding this to at the begining of your file, you also get the gridlines

<html xmlns:x="urn:schemas-microsoft-com:office:excel">
<head>
<!--[if gte mso 9]><xml>
 <x:ExcelWorkbook>
  <x:ExcelWorksheets>
   <x:ExcelWorksheet>
    <x:WorksheetOptions>
     <x:Selected/>
    </x:WorksheetOptions>
   </x:ExcelWorksheet>
  </x:ExcelWorksheets>
 </x:ExcelWorkbook>
</xml><![endif]-->
</head>

Please let me know if you need the HTML equivalent for older excel versions then office 2000

regards,
Murph

 

by: jim25Posted on 2006-03-23 at 08:23:31ID: 16270892

Hi guys thanks for all your info.

How do I now if iseries navigator is installed or not? Is it found in excel or the as400 emulator?

Cheers!

 

by: mvidasPosted on 2006-03-23 at 08:42:11ID: 16271133

Neither.. my navigator program is located at  C:\Program Files\IBM\Client Access\cwbunnav.exe, and in the start menu in Programs / IBM iSeries Access for Windows / iSeries Navigator

 

by: jim25Posted on 2006-03-23 at 09:19:42ID: 16271607

Matt you are a legend among men!

I found the programme! And it is running!

You always seem to explain things so clearly and simply! A sign of a great mentor!!!!

Ok I am going to play around with this iseries navigator and get back to you!

 

by: mvidasPosted on 2006-03-23 at 09:23:09ID: 16271647

If you have any control over what the as/400 is exporting, Murph's html suggestion is a great one!  If you can get the report to be generated in that text format, you would only have to click/drag the file from the Navigator then rename as .xls, simple as that.

 

by: jim25Posted on 2006-03-24 at 00:38:25ID: 16278333

Hi Guys

I am unable to drag the file contents out! Any ideas why?

 

by: murphey2Posted on 2006-03-24 at 02:51:53ID: 16278830

Probably a security setting in the AS/400

 

by: jim25Posted on 2006-03-24 at 03:05:19ID: 16278889

How do I find out what it is and how to change it?

 

by: mvidasPosted on 2006-03-24 at 06:34:21ID: 16280289

At my company, anyone with Navigator is able to click/drag the files.  Are you trying to drag something that has a .FILE extension? On my as400, the libraries have .LIB extensions, the folders of the library have .FILE extensions, and the files themselves have .MBR extensions.  If I try and drag a .FILE I just get a shortcut to the directory, but dragging the .MBR works well.

On one of our servers, after much testing just now, some folders have a different icon (looks like an outstretched hand from the side, holding the folder at the bottom) if the contents can be dragged.  But on one of my servers the hand icon isn't there at all and I can drag whatever I wish.  You will have to talk to your IT department or the AS400 admin about gaining rights if you've verified you're dragging the first thing and it still isn't working.

 

by: jim25Posted on 2006-03-27 at 02:15:03ID: 16298886

I did manage to drag some of the files! I must have had a dodgy connection or something!

How do I access other files stored on my as/400 programme?

 

by: mvidasPosted on 2006-03-27 at 08:29:41ID: 16301632

Where are your other files located? You should be able to find them in the file system

 

by: jim25Posted on 2006-04-01 at 05:42:46ID: 16349594

Oh right I shall have a rummage around!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...