On AS400, first create a DB file in the relevant format using either DDS or SQL
eg
CREATE TABLE QGPL/TEMPXML
(
FILE CHAR(10),
FIELD char(10),
DBFIELD char(10),
DESCRIPTION CHAR(100),
DATATYPE CHAR(20),
FORMAT CHAR(20),
SYSTEM CHAR(20));
Then save the xls as a CSV to the iSeries IFS
Once the file has been saved to the iSeries, use the following command to convert the spreadsheet to a native as400 DB2/400 file:
Use the CPYFRMIMPF command (copy from Import File). This is by far the easiest method and you're not restricted by the file name lengths, etc. Here's what the command looks like:
CPYFRMIMPF FROMSTMF('\iSeries directory\test.csv')
TOFILE(testlib/TESTF)
RCDDLM(*ALL)
Check this has imported to your as400 correctly
Friday, April 28, 2006
Subscribe to:
Post Comments (Atom)
Popular Posts
- Yahoo! Mail: Revenge of the Oddpost
- MobileTracker - Cingular announces EDGE Wireless WAN service
- Linux Forum: Apache, Webmin and Mandrake - Linux Operating System Help
- Free AS400 & iSeries Software Tools & Utilities Downloads
- Table designs based on CSS and DIV elements
- Common Gateway Interface (CGI) on the as400 / iSeries
- UDATE and *DATE in AS400 RPG
- Does Anybody Care About AIX on the iSeries?
- The Final Word On the final Keyword
- Using as400 QRCVDTAQ api to retrieve a message / entry from a dataqueue
No comments:
Post a Comment