I see the individual steps as:
1 Create folder corresponding to library
2 For each source file
2.1 Create sub folder corresponding to source file name
2.2 Use FTP to copy all members
2.3 Rename each member from FileName.MemberName to MemberName.txt
The big question is has anyone automated them, or as I suspect, is there a
better way?
Many thanks
Peter Kinsman
Are you trying to get the source files to your PC in
such a way that you can view/edit the source? If so,
then you're going to have to do something like what you
describe, and I don't know of a way to automate it.
If you're simply trying to archive the source to your
PC, as a non-viewable backup, then you could cut the
number of steps considerably:
1 Create a save file on the AS/400 (CRTSAVF)
2 Save the library to the save file
3 Open FTP session to AS/400
4 Switch to binary mode (BIN)
5 Issue a GET command to copy the save file to your PC
If you later copy the save file from your PC back to
the original or another AS/400, then restore the source
files from the save file, the source files and members
will be preserved.
These are the same steps I use (excluding the rename).
Very simple to do using DOS batch files.
Terry
Peter
"Peter Kinsman" <pe...@seguecomputing.co.uk> wrote in message
news:lYInc.17779$7R6....@doctor.cableinet.net...
You can create a local copy of a "project". This preserves the source
type, line numbers, mod markings and member description. You can then
use WSDC, Code Editor or Code Designer to view/update source.
Denny
Example:
1) Start an FTP session from your PC to the AS/400
2) Type the following FTP commands:
PROMPT (turns off prompting)
QUOTE SITE NAMEFMT 1 (to use IFS naming)
MGET /QSYS.LIB/YOURLIB.LIB/SRCFILE.FILE/*.MBR
(this will transfer all source members from file SRCFILE in library
YOURLIB to the current folder on your PC.
All transferred members will be named with the extension .MBR)
3) QUIT (end the FTP session)
4) RENAME *.MBR *.TXT (rename the downloaded files)
Steve Landess
Austin, Texas
(512) 423-0935
"Peter Kinsman" <> wrote in message
news:aakoc.1498$EI2...@doctor.cableinet.net...