English 中文(简体)
Fetching data from excel sheet in AS/400
原标题:

I am using AS/400 with Reflections for IBM. Here is my question: How can the data from an excel sheet be transfered to an AS/400 session. From there I should be a ble to create macros to add the info to where ever it needs to be inserted.

最佳回答

Depends on your requirements, multiple methods are available,

Transport,

  • FTP your saved to the as400
  • ODBC from your Excel to the iSeries
  • Save your file in the IFS (e.g. /home/data). This brings the sheet in scope of the as400
  • Start Client Access Emulator (TN5250), and use the transport in that program. You can use an external file that describes the format
  • Start CLient Access File Transfer, and use the external file with the descriptions

Format,

  • Save as flat file, and use CPYF (*MAP, *DROP) into a DB2 Table
  • As flat file into a DB2 table with one field (e.g. CRTPF). That table can be processed by any iSeries program, Query/400 or SQL
  • Save as CSV and use the command "Copy from import file (CPYFRMIMPF)" or the "Copy from stream file (not sure from the top of my head, something like CPYFRMSTRF)
  • Save as CSV and use a descriptor file to import into a DB2 table

Setup,

  • Directly from Excel (e.g. ODBC)
  • With file transfer (e.g. save in Excel, FTP, CPYFRMIMPF)
  • script (e.g. use the COM functions in Perl to read Excel, send to as400)
  • other script (e.g. use the Excel function in Python, write directly to DB2 (your iSeries that is) by using the DB2 module

At least but not last, use Java with the JT400 toolbox. You can access the iSeries and its resources from your local pc.

You ve many roads to choose from. Maybe the most important factor is what you re allowed to do on the as400. E.g. may you only access that machine as DB server, or can you write as400 programs.

问题回答

暂无回答




相关问题
MQ EOL Data conversion

we are sending data trough MQ from a z/OS/CICS system to an AS400. Original encoding of the message is CCSID 500 with a MQSTR Format. The client application is getting the message with the CONVERT ...

Invoking AS400 RPG From Java

I have a very limitied (0) knowledge on AS400 and RPG. But we have a urgent requirement where we need to invoke a RPG program from a java class. So I found that we can achieve it through JTOpen. But I ...

Fetching data from excel sheet in AS/400

I am using AS/400 with Reflections for IBM. Here is my question: How can the data from an excel sheet be transfered to an AS/400 session. From there I should be a ble to create macros to add the info ...

Calling AS400 SP from ASP .NET webservice

I have an external stored procedure (SP) in AS400 with IN and OUT prameters.When my SP is called from webservice with IN and OUT parameters, it shows me an error (Attempted to read or write protected ...

Web development on iSeries with ABL s Strategi

Advanced BusinessLink offers a suite of products called Strategi, which basically allows creating web applications running natively on iSeries, consuming and providing web services, and replacing ...

SQL Update from a Select

I want to update two fields of table (Store) from a select of others tables, but i don´t know how i can do it. The SQL system is in AS/400, so doesn´t have SQL Server or Oracle tricks :( Here is the ...

AS400 DB2 Journals search

I am new to DB2 administration on AS400, could you point me to the best practices/tools to search for errors in the DB2 journals? So far I use the DSPJRN command but I am unable to make research. ...

热门标签