View previous topic :: View next topic
|
Author |
Message |
JPPR
New User
Joined: 04 Jul 2007 Posts: 20 Location: Sao Paulo
|
|
|
|
Do anyone Know what this abend mean ?
I had it in PGM=FTP, running in batch JCL process.
Thank´s |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 631 Location: Wisconsin
|
|
|
|
What is the EZxxxxxx message number? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forums,
If you post your jcl, the ftp control information for the problem run, and the diagnostic information returned by the system, we may be able to help. |
|
Back to top |
|
|
JPPR
New User
Joined: 04 Jul 2007 Posts: 20 Location: Sao Paulo
|
|
|
|
Here´s my JCL Code:
//NW10D01$ JOB 'NW_DPUBB34924',CLASS=4,PRTY=6,
// MSGCLASS=Q,REGION=0M
//* %%GLOBAL UBB
//* %%LIBSYM %%GLB_TABVAR %%MEMSYM GERAL
//* %%LIBSYM %%GLB_TABVAR %%MEMSYM ROUTPROD
//* %%LIBSYM %%GLB_TABVAR %%MEMSYM TABORDER
/*ROUTE XEQ %%ROUTSPC2GR3
//* %%INCLIB %%GLB_TABVAR %%INCMEM ORDERBC1
//OUT1 OUTPUT JESDS=ALL,DEST=%%ROUTLOG
//OUT2 OUTPUT JESDS=ALL,DEST=%%ROUTLOG,CLASS=0
//*
//NWFTP020 EXEC PGM=FTP,REGION=0M,COND=(0,NE),PARM='/(EXIT=01'
//*********************************************************************
//* TRANSMITE ARQUIVO BOLETIM PARA SERVIDOR 106.128.2.53 *
//*********************************************************************
//SYSMDUMP DD SYSOUT=(,),OUTPUT=(*.OUT1)
//SYSPRINT DD SYSOUT=(,),OUTPUT=(*.OUT1)
//OUTPUT DD SYSOUT=(,),OUTPUT=(*.OUT1)
//INPUT DD *
IP_number
login
pass
PUT 'in_dataset' out_dataset.txt
QUIT |
|
Back to top |
|
|
JPPR
New User
Joined: 04 Jul 2007 Posts: 20 Location: Sao Paulo
|
|
|
|
Here´s the messages:
EZA1736I FTP (EXIT=01
EZA1450I IBM FTP CS V1R4
EZA1772I FTP: EXIT has been set.
EZA1456I Connect to ?
EZA1736I 106.128.2.53
EZA1554I Connecting to: 106.128.2.53 port: 21.
220 CesarFTP 0.99g Server Welcome !
EZA1459I NAME (106.128.2.53:CMBATCH):
EZA1701I >>> USER bol
331 User login OK, waiting for password
EZA1789I PASSWORD:
EZA1701I >>> PASS
230 User password OK, CesarFTP server ready
EZA1460I Command:
EZA1736I PUT 'R6.NW.BOLETIM.PHP(0)' BOLETIM.TXT
EZA1701I >>> SITE FIXrecfm 300 LRECL=300 RECFM=FB BLKSIZE=27900
202 Unsupported Command
EZA1701I >>> PORT 10,34,180,1,13,92
200 command successfully executed
EZA1701I >>> STOR BOLETIM.TXT
501 Unknown error
EZA1735I FTP Return Code = 27501, Error Code = 00002
EZA1701I >>> QUIT
221 Good Bye |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 631 Location: Wisconsin
|
|
|
|
You got an error back from the FTP server of 501. The 27 is doesn't matter but the abend is the 501 portion of that.
Code: |
EZA1735I Std Return Code = rc, Error Code = ec
Explanation: FTP has ended with an error only because the user has
specified EXIT as a start parameter. Normally FTP would continue.
rc is the standard return code. rc is in the format yyxxx, where
yy the subcommand code, which is a number from 0 to 99.
xxx This is the last reply code received from the FTP server. If a
subcommand failed before a reply was received from the server,
this value is 000.
ec is the client error code set by the FTP client.
System Action: The FTP client ends.
|
Check Google for possible 501 causes. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
501 is a syntax error.
A few things to maybe try.
1. You might want to fix this problem:
EZA1701I >>> SITE FIXrecfm 300 LRECL=300 RECFM=FB BLKSIZE=27900
202 Unsupported Command
2. Some FTP servers are very case sensitive. Maybe your upper-case PUT should be a lower-case put. |
|
Back to top |
|
|
JPPR
New User
Joined: 04 Jul 2007 Posts: 20 Location: Sao Paulo
|
|
|
|
I tried to use Lower-case put, but i got a same error.
Some times the PUT FTP end ok, some times it´s end not ok.
But thank´s for the help. |
|
Back to top |
|
|
JPPR
New User
Joined: 04 Jul 2007 Posts: 20 Location: Sao Paulo
|
|
|
|
Here´s the same process END OK:
EZA1736I FTP (EXIT=01
EZA1450I IBM FTP CS V1R4
EZA1772I FTP: EXIT has been set.
EZA1456I Connect to ?
EZA1736I 106.128.2.53
EZA1554I Connecting to: 106.128.2.53 port: 21.
220 CesarFTP 0.99g Server Welcome !
EZA1459I NAME (106.128.2.53:CMBATCH):
EZA1701I >>> USER bol
331 User login OK, waiting for password
EZA1789I PASSWORD:
EZA1701I >>> PASS
230 User password OK, CesarFTP server ready
EZA1460I Command:
EZA1736I put 'r6.nw.boletim.php(0)' boletim.txt
EZA1701I >>> SITE FIXrecfm 300 LRECL=300 RECFM=FB BLKSIZE=27900
202 Unsupported Command
EZA1701I >>> PORT 10,34,180,1,5,108
200 command successfully executed
EZA1701I >>> STOR boletim.txt
150 Data connection created for /boletim.txt storing
226 File successfully uploaded
EZA1617I 42315 bytes transferred in 0.005 seconds. Transfer rate 8463.00 Kbytes
EZA1460I Command:
EZA1736I quit
EZA1701I >>> QUIT
221 Good Bye |
|
Back to top |
|
|
JPPR
New User
Joined: 04 Jul 2007 Posts: 20 Location: Sao Paulo
|
|
|
|
Here´s END OK in UPPER CASE:
EZA1736I FTP (EXIT=01
EZA1450I IBM FTP CS V1R4
EZA1772I FTP: EXIT has been set.
EZA1456I Connect to ?
EZA1736I 106.128.2.53
EZA1554I Connecting to: 106.128.2.53 port: 21.
220 CesarFTP 0.99g Server Welcome !
EZA1459I NAME (106.128.2.53:CMBATCH):
EZA1701I >>> USER bol
331 User login OK, waiting for password
EZA1789I PASSWORD:
EZA1701I >>> PASS
230 User password OK, CesarFTP server ready
EZA1460I Command:
EZA1736I PUT 'R6.NW.BOLETIM.PHP(0)' BOLETIM.TXT
EZA1701I >>> SITE FIXrecfm 300 LRECL=300 RECFM=FB BLKSIZE=27900
202 Unsupported Command
EZA1701I >>> PORT 10,34,180,1,13,73
200 command successfully executed
EZA1701I >>> STOR BOLETIM.TXT
150 Data connection created for /BOLETIM.TXT storing
226 File successfully uploaded
EZA1617I 42315 bytes transferred in 0.005 seconds. Transfer rate 8463.00 Kbytes
EZA1460I Command:
EZA1736I QUIT
EZA1701I >>> QUIT
221 Good Bye |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 631 Location: Wisconsin
|
|
|
|
If it successful sometimes, there is nothing wrong with your JCL then it is a FTP server-side error. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Is there a way that you might speak with the people who support the ftp server (either on the phone or e-mail)?
It may be that the ftp service is only available part of the time and you might need to schedule accordingly. If the seerver is supposed to be available all of the time, those same admin people can see why certain connections failed. |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 631 Location: Wisconsin
|
|
|
|
Its odd because he is connecting successfully, but then the server won't accept the PUT command. Maybe throw a DIR in there before your PUT statement. Sending a command like that may just prod the server... |
|
Back to top |
|
|
JPPR
New User
Joined: 04 Jul 2007 Posts: 20 Location: Sao Paulo
|
|
|
|
Hi,
I understood the problem and found the answer !!!!
When i put the file and its already exist in the server, the process abend with 27501.
If the file Ãs not in the server the process dont have a abend.
I need configure the FTP Server to replace the file if it exist in the Server.
But when i list the possible causes of abend 501 in FTP process, it didnt have this cause listed.
Thanks for all. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
You're welcome
Good to hear that you have found the cause of the error. Thanks for posting what you found. |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 631 Location: Wisconsin
|
|
|
|
The exit is forced by the PARM='/(EXIT=01'. If you issue a
DEL BOLETIM.TXT
command, will it fail if the file is not there and cause an abend? If so you probably want to get rid of that PARM from the step. |
|
Back to top |
|
|
|