|
Hello Terry, Yes, it is possible but you need to have a better FTP client than the sorry excuse MS provide (at least with Lose95/98). If your client supports the nmap FTP command you can do this. The syntax is: nmap inpattern outpattern where inpattern and outpattern are a set of tokens representing period separated parts ($1, $2, $3 and so on). The mapping is used when you DONT specify a filename on the put, mput, get, or mget FTP commands. Assume I have a collection of files on my PC and I wish to send them to an AS/400 as members of a specific file. Using namefmt 0 (the default) I can issue the following FTP commands: nmap $1 myfile.$1 prompt mput * to have each PC file sent as a member of myfile in the Present Working Directory (PWD). Using namefmt 1 (the IFS convention) I ca issue the following commands: nmap $1 /qsys.lib/mylib.lib/myfile.file/$1.mbr prompt mput * to have each PC file sent as a member of myfile in mylib. You can get quite creative with this function. You can issue nmap $1.$2 $2.$1 to swap the name parts around. You can issue $1.$2.$3 $1.$2 to drop part of the name -- useful when FTPing between systems with incompatible naming conventions (e.g., Unix files so file.zip.old will become file.zip). When I FTP files to my PC they come down with names in the following form: AS400FILE.MEMBER When I send them back to the AS/400 I issue nmap $1.$2 $1.$2 to ensure they go into the correct file - otherwise FTP tries to create or find a file with the same name as the member. Regards, Simon Coulter. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» «» FlyByNight Software AS/400 Technical Specialists «» «» Eclipse the competition - run your business on an IBM AS/400. «» «» «» «» Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 «» «» Fax: +61 3 9419 0175 mailto: shc@flybynight.com.au «» «» «» «» Windoze should not be open at Warp speed. «» «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» //--- forwarded letter ------------------------------------------------------- > X-Mailer: Mozilla 4.6 [en] (Win95; I) > Date: Wed, 28 Jul 99 10:16:07 -0500 > From: "Terry Grider" <tgrider@arkansas.net> > To: "MIDRANGE L" <MIDRANGE-L@midrange.com> > Reply-To: MIDRANGE-L@midrange.com > Subject: FTP > > Is it possible to ftp multiple files from a pc to a 400 into a single source > physical file and have the file names on the pc used as the member names? Say > using something like mput c:\progs\*.* /source.lib/qrpgsrc.file/*.mbr. I've > tried this particular statement and it doesn't work as well as a lot of other > variations. Anyone figured this out? > > Terry > -- > Terry Grider > tgrider@arkansas.net > +--- > | This is the Midrange System Mailing List! > | To submit a new message, send your mail to MIDRANGE-L@midrange.com. > | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. > | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: david@midrange.com > +--- > +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.