Ftp an entire PC folder to the IFS
Create the directory on the IFS (under ROOT/Home)
Give everyone access (*RWX)
Find you folder on your PC to "upload"Code:MD DIR('/home/upload') DTAAUT(*RWX) OBJAUT(*ALL)
I selected C:\Documents and Settings\jamie\Favorites
Then click on start
From the pop up select Run...
Then you get your Run window....
Type cmd (this is XP by the way)
Now you get your DOS comman window
The window will return that you are connected to your Iseries
and prompt you for your userid.
Type it in hit <ENTER>
then enter your password (hit <ENTER>)
If you did a DIR now in the DOS window you would
get a listing of all the "stuff" in QGPL
but we want our home directory to be on the IFS.
To do this we must change our name format to 1
get message back saying using name format 1Code:quote site namefmt 1
Then change local directory (the PC directory where your upload data is stored)Code:cd "/home/upload"
then type (get message interactive mode off)Code:lcd C:\Documents and Settings\jamie\Favorites
lastly put all the files in PC directory C:\Documents and Settings\jamie\FavoritesCode:prompt
to IFS folder /home/upload
I tried to follow this example but I got the error 501 Unknown extension in database file name... I tried to ftp a single file called hello.java...
Thnx in advance
You would get an error like that if you were going to QDLS instead
of ROOT... The rules for QDLS are very strict.
Please post the file and I will test from here.
oh yes! my bad..
it´s working now
C:\Documents and Settings\MIKEY.WORKGROUP>ftp 184.108.40.206
Connected to 220.127.116.11.
220-QTCP at CENTURY.CENTURYCABINETRY.COM.
220 Connection will close if idle more than 5 minutes.
User (18.104.22.168none)): mikey
331 Enter password.
230 MIKEY logged on.
ftp> quote site namefmt 1
250 Now using naming format "1".
ftp> cd "/home/upload"
550-Specified directory does not exist or cannot be accessed.
I get that far. Do I have to create a directory manually on IFS?
ftp>quote site namefmt 1
ftp>put <myfile> <tofile>
Note: the MD /home/upload command will error if the directory already exists .. so, this just makes sure it's available before you execute your PUT command.
Create it manually or type
using FTPCode:quote "MKD /home/upload"