You are on page 1of 9

AS400 FTP

FTP TCP
FTP
FTP FTP
FTP

CLOSE QUIT
FTP
FTP
FTP
FTP 21
21

FTP 20

FTP
*SYSCMD: FTP AS/400
FTP AS/400

DIR AS/400 FILES MEMBERSPUTDIR


AS/400
PWD FILES MEMBERS
LPWD FILES MEMBERS
PUT
MPUT
GET
MGET
ASCII ASCII
1

BINARY BINARY
EBCDIC EBCDIC

AS/400 ASCII ZONED


PACKED
RENAME
QUOTE
LCD
CD
CDUP
LOCSTAT
AS/400FTP
AS/400 FTP *IOSYSCFG
TCP/IP
FTP CHGFTPA QUSRSYS/QATMFTP.CONFIG

Autostart Servers : Autostart Servers *YES TCP/IP FTP

of Initial Servers: FTP FTP 3

y Timeout: FTP 300 5

haracter set identifyier: 00819, ASCII EBCDIC 500

me format: *LIBL FTP NAMEFMT0*PATH


NAMEFMT=1

al directory: *CURLIB FTP FTP


*HOMEDIR FTP HOMEDIR

New file CCSID: FTP CCSID


FTP
FTP AS/400
STRTCPSVR *FTP
FTP AS/400
ENDTCPSVR *FTP

ENDTCPSVR *FTP FTP

AS/400
WRKACTJOB SBSD(QSYSWRK)
QTFTPxxxxx(xxxxx 5 ) ENDTCPSVR
*FTP
FTP AS/400
NETSTAT *CNN
LOCAL PORT FTP-CON ESTABLISHED
FTP
AS/400
ENDTCPSVR *FTP
FTP
FTP TCP/IP AS/400 FTP
FTP
3.2.5 CL FTP
3.2.5 FTP
3.2.5 CL

FTP TCP/IP AS/400 TCP/IP


:EthernetToken-RingSDDIWireless LANX.25 SVC PVC Frame Relay
AS/400 FTP FTP FTP AS/400
FTP
FTP
FTP TCP
FTP FTP
FTP FTP

CLOSE QUIT FTP


FTP
FTP
FTP 21
21

FTP 20

FTP

! SYSCMD: FTP AS/400 ,


FTP AS/400
DIR AS/400 Files MembersPUTDIR
AS/400

PWD: Files Members


LPWD: Files Members
PUT:
MPUT:
GET:
MGET:
ASCII ASCII
BINARY BINARY
EBCDIC EBCDIC
AS/400 ASCII ZONED
PACKED
RENAME:
QUOTE:
LCD
CD
CDUP:
LOCSTAT
AS/400 PTF
AS/400 PTF *IOSYSCFG
1. TCP/IP
2. FTP CHGFTPA QUSRSYS/QATMFTP.CONFIG,


Autostart Servers: Autostart Servers *YES TCP/IP FTP
Number of Initial servers: FTP FTP 3
Inactivity timeout: FTP 300 5
Coded character set identifier: 00819 ASCII EBCDIC 500

Initial name format*LIBL, FTP NAMEFMT= 0*PATH,


NAMEFMT=1
Initial directory*CURLIB, FTP FTP
*HOMEDIR FTP HOMEDIR
New file CCSID FTP CCSID

/ FTP
FTP AS/400
STRTCPSVR *FTP
FTP AS/400
ENDTCPSVR *FTP
ENDTCPSVR *FTP FTP

1. AS/400
6

WRKACTJOB SBS(QSYSWRK)
QTFTPxxxxxxxxxx 5 ENDTCPSVR *FTP

2. FTP AS/400
NETSTAT *CNN
LOCAL PORT FTP-CON ESTABLISHED
FTP
3. AS/400
ENDTCPSVR *FTP
STRTCPSVR *FTP
OPERATION NAVIGATOR) FTP /
1. Network\Servers\TCP/IP
2. FTP SERVER
3. FTP /
FTP
FTP TCP/IP AS/400 FTP
FTP
1. CL FTP
2. FTP
3. CL
4.
FTP:
1. CL
FTP
CHGCMD CMD(QSYS/FTP) ALLOW(*ALL)
FTPCMDS) FTP FTP
(FTPLOG) OVRDBF FILE(INPUT) TOFILE(PFEIFFER/QCLSRC) MBR(FTPCMDS)
OVRDBF FILE(OUTPUT) TOFILE(PFEIFFER/QCLSRC) MBR(FTPLOG)
CL FTP FTP RMTSYS
CL
Columns . . . : 1 71 Browse PFEIFFER/QCLSRC
SEU==> FTPBATCH
FMT ** ...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7
*************** Beginning of data ***********************************
0001.00 PGM
0002.00 CHGCMD CMD(QSYS/FTP) ALLOW(*ALL)
0003.00 OVRDBF FILE(INPUT) TOFILE(PFEIFFER/QCLSRC) +
0004.00 MBR(FTPCMDS)
0005.00 OVRDBF FILE(OUTPUT) TOFILE(PFEIFFER/QCLSRC) +
0006.00 MBR(FTPLOG)
0007.00 FTP RMTSYS(LOOPBACK) /* (FTP CL Program) */ A
0008.00 DLTOVR FILE(INPUT OUTPUT)
0009.00 ENDPGM
7

****************** End of data **************************************


F3=Exit F5=Refresh F9=Retrieve F10=Cursor F12=Cancel
F16=Repeat find F24=More keys

2. FTP
Columns . . . : 1 71 Browse PFEIFFER/QCLSRC
SEU==> FTPCMDS
FMT ** ...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7
*************** Beginning of data ***********************************
0001.00 hans hans
0002.00 close
0003.00 open rchrs001
0004.00 user root mozart
0005.00 ascii
0006.00 syscmd dltf file(hans/rs6)
0007.00 get /tmp/ftpput.txt hans/rs6.rs6
0008.00 close
0009.00 open mvax
0010.00 user tester test
0011.00 get [tester.hans]ftpput hans/vax.vax (replace
0012.00 close
0013.00 open rchasm02
0014.00 user hans hans
0015.00 ebcdic
0016.00 put hans/rs6.rs6 pfeiffer/rs6.rs6
0017.00 quote rcmd sndnetf file(pfeiffer/rs6) tousrid((pfeiffer rchas149))
0018.00 close
0019.00 quit
****************** End of data **************************************
F3=Exit F5=Refresh F9=Retrieve F10=Cursor F12=Cancel
F16=Repeat find F24=More keys
3. CL FTPBATCH
Columns . . . : 1 71 Browse PFEIFFER/QCLSRC
SEU==> FTPSUBMIT
FMT ** ...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7
*************** Beginning of data ***********************************
0001.00 PGM
0002.00 SBMJOB CMD(CALL PGM(PFEIFFER/FTPBATCH)) +
0003.00 JOB(FTPFRIDAY) OUTQ(PFEIFFER/PFEIFFER) +
0004.00 SCDDATE(*FRI) SCDTIME(170000) /* FTP for +
0005.00 Friday, 5:00 in the afternoon */
0006.00 ENDPGM
****************** End of data **************************************
F3=Exit F5=Refresh F9=Retrieve F10=Cursor F12=Cancel
8

F16=Repeat find F24=More keys


4. FTPLOG FTP
FTP FTP
Code Description
110 Restart marker reply
120 Service ready in nnn minutes
125 Data connection already open; transfer starting
150 File starting OK; about to open data connection
200 Command OK
202 Command not implemented; not used on this system
211 System status, or system help reply
212 Directory status
213 File status
214 Help message
220 Service ready for new user
226 Closing data connection; requested file action successful
230 User logged in
250 Requested file action okay, completed
257 Path name created
331 Password required
332 Account required
425 Cannot open data connection
426 Connection closed; transfer ended abnormally
450 Requested file action not taken; file busy
451 Requested action ended abnormally; local error in processing
452 Requested action not taken; insufficient storage in system space
500 Syntax error; command unrecognized
501 Syntax error in parameters or arguments
502 Command not implemented
503 Bad sequence of commands
504 Command not implemented for that parameter
530 Logon attempt rejected
532 Need account for storing files
550 Requested action not taken; file not found or no access
551 Requested action ended abnormally; page type unknown
552 Requested file action ended abnormally; exceeded storage allocation
553 Requested action not taken; file name not allowed

You might also like