AS400 Mid Range/download source file to pc

Advertisement


Question
I want to download source file from a library to my pc - Can you help me?  

Answer
I'm presuming that your PC is configured so it can 'see' the AS/400 or iSeries folders. Use the CRTPF command to create a file with record length of 128 characters. Then use the CPYF or CPYSRCF command to copy a source member to that file with a FMTDTA option *NOCHK. Then use the CPYTOPCD to copy the file to a .TXT document in a folder on the AS/400 or iSeries. This file may include sequence number data and change-date data you might not really want. To omit that, you would really need to write a program to perform the copy of the source file to your work file.

- 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.