IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP Return Code = 27501, Error Code = 00002


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
JPPR

New User


Joined: 04 Jul 2007
Posts: 20
Location: Sao Paulo

PostPosted: Wed Aug 22, 2007 10:50 pm
Reply with quote

Do anyone Know what this abend mean ?

I had it in PGM=FTP, running in batch JCL process.

Thank´s
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Wed Aug 22, 2007 11:15 pm
Reply with quote

What is the EZxxxxxx message number?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 22, 2007 11:49 pm
Reply with quote

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
View user's profile Send private message
JPPR

New User


Joined: 04 Jul 2007
Posts: 20
Location: Sao Paulo

PostPosted: Wed Aug 22, 2007 11:56 pm
Reply with quote

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
View user's profile Send private message
JPPR

New User


Joined: 04 Jul 2007
Posts: 20
Location: Sao Paulo

PostPosted: Wed Aug 22, 2007 11:58 pm
Reply with quote

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
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Aug 23, 2007 12:04 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Aug 23, 2007 12:13 am
Reply with quote

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
View user's profile Send private message
JPPR

New User


Joined: 04 Jul 2007
Posts: 20
Location: Sao Paulo

PostPosted: Thu Aug 23, 2007 12:46 am
Reply with quote

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
View user's profile Send private message
JPPR

New User


Joined: 04 Jul 2007
Posts: 20
Location: Sao Paulo

PostPosted: Thu Aug 23, 2007 12:47 am
Reply with quote

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
View user's profile Send private message
JPPR

New User


Joined: 04 Jul 2007
Posts: 20
Location: Sao Paulo

PostPosted: Thu Aug 23, 2007 12:48 am
Reply with quote

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
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Aug 23, 2007 1:07 am
Reply with quote

If it successful sometimes, there is nothing wrong with your JCL then it is a FTP server-side error.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 23, 2007 3:03 am
Reply with quote

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
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Aug 23, 2007 4:26 am
Reply with quote

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
View user's profile Send private message
JPPR

New User


Joined: 04 Jul 2007
Posts: 20
Location: Sao Paulo

PostPosted: Thu Aug 23, 2007 5:28 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 23, 2007 6:19 pm
Reply with quote

You're welcome icon_smile.gif

Good to hear that you have found the cause of the error. Thanks for posting what you found.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Aug 23, 2007 6:24 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
Search our Forums:

Back to Top