AS400 Mid Range/XML to AS400

Advertisement


Question
Hi,

How can we convert an XML file into Physical Files in AS400? Could you explain me the logic of doing that?

Answer
To my knowledge, there is no native AS/400 function to convert an XML file.  It is likely that there are software packages for purchase which will do this.  Perhaps the easiest PC file format to work with on the AS/400 is comma-delimited.  I create a flat file of 128, 256, or 512 character length (using the CRTPF command), then copy the .CSV file to that file using the CPYFRMPCD command.  You must then write a program to extract data from between the commas.

- Laird

AS400 Mid Range

All Answers


Answers by Expert:


Ask Experts

Volunteer


Concise Systems/Laird Scranton

Expertise

General AS/400, RPG/400, SDA and CL programming questions. AS/400 performance tuning.

Experience


Past/Present clients
CB Sportswear
Coca-Cola of New York
Encore Paper Company
Golub Corporation
HBO Home Video
Imperial Pools
Kaiser Permanente of NE New York
Mallinckrodt Medical
Marigold Foods
Manpower & Associates
National Datacomputers
New York State Easter Seals Society
New York State Food Merchants Association
Pepsi-Cola Allied Bottlers
Petricca Construction
Taconic Telephone Corporation
TOMRA Recycling
Unistress Corporation

©2012 About.com, a part of The New York Times Company. All rights reserved.