Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I use mput command in AS/400

241 views
Skip to first unread message

James Martin

unread,
Nov 12, 1998, 3:00:00 AM11/12/98
to
I have tried to use the mput command to send multiple files to a
source physical file but have not been succesful. I have several
program source files on my PC that I would like to put as seperate
members in a specific source file on the AS/400. Any ideas??

Thanks!


Richard Knechtel

unread,
Nov 13, 1998, 3:00:00 AM11/13/98
to

Put the source in one directory on the PC and (in winblows95/98/nt) use
Winblows explorer to rename the files to (example) qrpgsrc.myprog,
qrpgsrc.myprog2 etc.., qclsrc.myprogcl,qddssrc.mypf etc.. Then when in
your dos prompt CD into the directory that contains your source members
to be uploaded.

Once your connected (via FTP) to your AS/400 do a CD to the library you
want on the '400:

CD mylib

Then for a faster send:

prompt n (this turns of interactive "put" prompts for each file)

then do:

mput qrpgsrc.*
(just substitute qrpgsrc for whatever source file you want)

This will put ALL the files to the '400. (takes seconds to upload a
bunch, I used this to upload 30+ members in about 45 seconds. :^)

Let me know if you have any other questions.

Regards,

RK.

Johan Hellstrom

unread,
Nov 13, 1998, 3:00:00 AM11/13/98
to

Richard Knechtel wrote:

> James Martin wrote:
> >
> > I have tried to use the mput command to send multiple files to a
> > source physical file but have not been succesful. I have several
> > program source files on my PC that I would like to put as seperate
> > members in a specific source file on the AS/400. Any ideas??
> >

> Put the source in one directory on the PC and (in winblows95/98/nt) use
> Winblows explorer to rename the files to (example) qrpgsrc.myprog,
> qrpgsrc.myprog2 etc..,

<snip>

If one does not want to use window based programs (real men prefer powerful
commands:-)), something like "for %1 in (*) do ren %1 qrpgsrc.%1" would do
the trick.

Also decent ftp clients (like... IBMs OS/2 implementation) support the nmap
option, which allows you to map patterns, making it very easy to map foo.c
to johanlib/qcsrc.foo and bar.h to johanlib/h.bar. Needless to way most ftp
clients does not prioritize this issue, since OS/400 naming standards might
not be considered mainstream...:-(

Signing off

Johan


0 new messages