Connecting to an IBM iSeries 5

There was a time that I was able to do this, but when I did connect the file structure was wrong. It seems that Smart FTP can't recognize "members" within the AS400 file structure. So really there are 2 issues:

1). Cannot connect to the iSeries (log displayed below)
2). When I could connect, the objects on the AS400 was a table, but Smart FTP showed it as an empty folder.

I downloaded a trial version of WS FTP Pro and I can connect to the iSeries as well as have it recognize it's file structure, thus returning data. I don't want to use WS FTP Pro if it can be done in Smart FTP.

Does anyone know how I can retrieve data from an AS400 (or iSeries)?

Julie


SmartFTP v1.5.990.2
Resolving host name "ram5"
Connecting to 192.168.16.12 Port: 21
Connected to ram5.
220-QTCP at RAM5.
220 Connection will close if idle more than 5 minutes.
USER xxx
331 Enter password.
PASS (hidden)
230 xxx logged on.
SYST
215 OS/400 is the remote operating system. The TCP/IP version is "V5R4M0".
FEAT
211-Feature listing follows:
AUTH TLS
PBSZ
PROT
211 End of feature listing.
TYPE I
200 Representation type is binary IMAGE.
REST 0
500 subcommand is only allowed for block or compressed modes.
PWD
257 "QGPL" is current library.
CWD /QGPL
550-NAMEFMT set to 1.
550-Specified directory does not exist or cannot be accessed.
550 Working directory not changed.
NOOP
200 OK.

Hello ..

Please try again with the latest version of SmartFTP:
https://www.smartftp.com/download

If it doesn't work please post the log again. With the log we are able to fix the problem within 1-2 business days.

Regards,
-Mat

Can you post a couple of raw directory listing. e.g. from the root folder then from the SEQUEL folder etc.

You can get the raw directory listings by right-click on the folder in the tree control and then select "Show Raw Directory Listing" from the context menu.

Thanks
-Mat

One other question:

QDOC 69120 12/31/69 19:00:00 *FLR QDLS/
QSYS 13778944 07/10/06 16:21:25 *LIB QSYS.LIB/
QDFTOWN 4096 12/31/69 19:00:00 *DDIR QOPT/
QSYS 2272 07/05/06 06:08:14 *DDIR QFileSvr.400/
QDFTOWN 1200 07/05/06 06:08:14 *DDIR QNTC/

These are all directories? The problem I can see in our code is that these "directories" are displayed as files. But beside that I cannot find a problem with the parser itself.

Which files/directory from the root directory do you see. Which one are missing but showing in the raw directory listing?

Thanks
-Mat


One other question:

QDOC 69120 12/31/69 19:00:00 *FLR QDLS/
QSYS 13778944 07/10/06 16:21:25 *LIB QSYS.LIB/
QDFTOWN 4096 12/31/69 19:00:00 *DDIR QOPT/
QSYS 2272 07/05/06 06:08:14 *DDIR QFileSvr.400/
QDFTOWN 1200 07/05/06 06:08:14 *DDIR QNTC/

These are all directories? The problem I can see in our code is that these "directories" are displayed as files. But beside that I cannot find a problem with the parser itself.

Which files/directory from the root directory do you see. Which one are missing but showing in the raw directory listing?

Thanks
-Mat

Okay... on our IBM system, here is an example of "Libraries" in a listing (they act like directories, but I think it's all symantics):

Edit Library List

Type new/changed information, press Enter.

Sequence Sequence
Number Library Number Library
0 150
10 #LIBRARY 160
20 QSSP 170
30 QTEMP 180
40 MNTPFT62 190
50 MNTP 200
60 SEQUEL 210
70 QGPL 220
80 PRRMENU 230
90 BRCPGM 240

I am guessing that your program needs to recognize all .LIB's as well as .DIR's. I really need to be able to connect to MNTPTF62, PRRMENU, and BTINFO (which isn't listed here, but I need). But more than that AS/400's have "libraries", "Objects" (aka: "Files") and "Members". If I open a file/obj in a library, this is what I see:

Display Physical File Member
File . . . . . . : ECURTAX Library . . . . : BTINFO
Member . . . . . : ECURTAX Record . . . . . : 1
Control . . . . . Column . . . . . : 1
Find . . . . . . .
*...+....1....+....2....+....3....+....4....+....5....+....6....+....7

So I think the "Member" is getting missed as well. In WS FTP, you can set up your Session Properties and they have a drop down list that has "IBM AS/400" as a host type, which seems to recognize IBM's different file structure automatically.