Upload multiple text files to iseries via ftp

515 pts.
Tags:
AS/400
FTP
How to upload multiple text files via FTP: I have a folder SP in my PC which contains 10 text files Path D:SP I have to upload all the 10 text files to my iseries QDDSSRCGOVIN where QDDSSRC - source physical file and GOVIN - library Start->RUN->CMD->FTP Open (my IP address) - username & password LCD D:SP CD GOVIN ASCII MPUT *.txt  QDDSSRC.*  --> this doesnt work... cud u help me on this I know how to upload single text file : as follows PUT FILE.txt QDDSSRC.FILE  --> this was successfully uploaded to my iseries but one condition i hv created a member FILE in my sourcepf QDDSSRC...  I need to know abt MPUT y it fails.. post me the command...

Software/Hardware used:
AS400

Answer Wiki

Thanks. We'll let you know when a new response is added.

directly we can’t put the .txt file into QDDSSRC source file…..

just you need to create directory in your server using CRTDIR command…

lcd d:\sp

cd /dirname -> for change current directory…

mput *.txt

after you put the file… view your .txt file in directory using WRKLNK command…
after you can move your file to source file member using CPYFRMSTMF command..
your source physical file member must be in <b>txt type</b>…

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • BigKat
    if you rename the files in the PC directory to qtxtsrc.src1, qtxtsrc.src2, etc. then you can do
    LCD dir
    CD LIBNAME
    MPUT qtxtsrc.*
    
    This will create the members SRC1, SRC2, etc in LIBNAME/QTXTSRC. You just need to go in and update the source member type toTXT. Note: you can do the same with other source PF's such as QRPGLESRC. (Use qrpglesrc.* and change the type to RPGLE or SQLRPGLE as appropriate)
    8,350 pointsBadges:
    report
  • TomLiotta
    As noted, you have two basic choices -- FTP them to the IFS and then copy to members, or rename your files on the PC. If you rename, there are two choices -- rename the filename portion and use the extension (.EXT) portion for the member name, or rename your .EXT portion from .txt to .mbr. You use the .EXT for the member name when you run under NAMEFMT 0. You use the .MBR extension when you run under NAMEFMT 1. Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Oh, and if you run under NAMEFMT 1, set your CD to the path of the target filename, e.g., CD /QSYS.LIB/GOVIN.LIB/QDDSSRC.FILE.
    MPUT *.MBR
    Tom
    125,585 pointsBadges:
    report
  • BigKat
    oh very good tip Tom, I forgot all about NAMEFMT1 would let me specify them all with the same extension so that I could use one MPUT!
    8,350 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following