MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

solve my FTP problem

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
manesh
Beginner


Joined: 11 Apr 2006
Posts: 12
Topics: 5

PostPosted: Mon Aug 28, 2006 11:35 am    Post subject: solve my FTP problem Reply with quote

Code:

//G54574J JOB ,,NOTIFY=&SYSUID,CLASS=B,MSGLEVEL=(1,1),MSGCLASS=X   
//STEP1 EXEC PGM=EZACFSM1                                         
//SYSIN DD *                                                       
ipaddress                                                   
username                                                           
password                                                         
PUT 'G54574.VIJAY.SEQ'  &LDAY&LMON&LYR2..TXT                     
QUIT                                                               
/*                                                                 
//SYSOUT DD DSN=G54574.VIJAY.LDAY,DISP=(OLD,CATLG,DELETE),         
//         SPACE=(TRK,(1,1)),LRECL=80,BLKSIZE=0,RECFM=FB           
//STEP0020 EXEC PGM=FTP,REGION=4096K PARM='(EXIT=8'               
//*                                                               
//SYSMDUMP DD SYSOUT=*                                             
//SYSPRINT DD SYSOUT=*                                             
//INPUT    DD DSN='G54574.VIJAY.LDAY',DISP=SHR

SUbmitting this job im getting Maxcc=0 but ftp is not being done...the messages in the output are....

EZA1736I FTP                                                                   
EZA1450I IBM FTP CS V1R4                                                       
EZA1456I Connect to ?                                                           
EZA1736I ipaddress                                                       
EZA1554I Connecting to:   ipaddress port: 31003.                           
EZA2590E getNextReply error from recv = (1128.769F0442) - EDC8128I Connection re
EZA1475I Connection with ipaddress terminated                               
EZA1460I Command:                                                               
EZA1618I Unknown command: 'username'                                           
EZA1619I For a list of the available commands, say HELP                         
EZA1460I Command:                                                               
EZA1736I password                                                             
EZA1618I Unknown command: 'password'                                           
EZA1460I Command:                                                               
EZA1736I PUT 'G54574.VIJAY.SEQ'  280806.TXT                            00035014
EZA1457I You must first issue the 'OPEN' command                               
EZA1460I Command:                                                               
EZA1736I QUIT
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Mon Aug 28, 2006 11:48 am    Post subject: Reply with quote

manesh,

why do you keep opening more than 1 topic for the same question ? You are not going to win friends like this.

Quote:

EZA2590E getNextReply error from recv = (1128.769F0442) - EDC8128I Connection re


Looks like your remote connection refused.

check this

Code:

 EDC8128I Connection refused.                                             
                                                                           
 Explanation:  A remote node refused to allow the attempted connect       
 operation. The attempt to connect to a socket was refused because there   
 was no process listening, or because the queue of connection requests was
 full and the underlying protocol does not support retransmissions.       
                                                                           
 Programmer Response:  Report the failure to your local administrator for 
 the TCP/IP function. Try the application again when the problem has been 
 corrected.                                                               
                                                                           
 System Action:  The request fails. The application continues to run.     
                                                                           
 Symbolic Feedback Code:  EDC7U0                                           


Kolusu

Ps: Next time you make the same mistake of opening more than 1 topic for the same question you will never be able to post on this board.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Mon Aug 28, 2006 11:51 am    Post subject: Reply with quote

port: 31003.

Odd port number for an FTP (usually 21 or 10021).

You DID verify proper connectivity to the FTP server first, right?
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Mon Aug 28, 2006 12:23 pm    Post subject: Reply with quote

EZA1456I Connect to ?
EZA1736I ipaddress
EZA1554I Connecting to: ipaddress port: 31003.
EZA2590E getNextReply error from recv = (1128.769F0442) - EDC8128I Connection re
EZA1475I Connection with ipaddress terminated
EZA1460I Command:
EZA1618I Unknown command: 'username'
EZA1619I For a list of the available commands, say HELP
EZA1460I Command:
EZA1736I password
EZA1618I Unknown command: 'password'

Looks like you actually ran the commands:

ipaddress
username
password

Is this true?

The 31003 is probably a line number on the right hand side of the member.
Back to top
View user's profile Send private message
manesh
Beginner


Joined: 11 Apr 2006
Posts: 12
Topics: 5

PostPosted: Tue Aug 29, 2006 12:53 am    Post subject: Reply with quote

today when i submitted my job this is messages i got in output...
Code:

EZA1450I IBM FTP CS V1R4                                                       
EZA1456I Connect to ?                                                           
EZA1736I ipaddress                                                       
EZA1554I Connecting to:   ipaddress port: 60002.  ...

Today port no is this 60002....i'm not understanding where im going wrong...i'm, using the same piece of code in some other jcl for FTPing..its working fine without any error and the port number is 21 in the output............ The jcl which is working fine is..........
Code:

//G54574J JOB ,,NOTIFY=&SYSUID,CLASS=D,MSGLEVEL=(1,1),MSGCLASS=X     
//STEP0   EXEC PGM=IEFBR14                                           
//DD1 DD DSN=G54574.SYSREC.PACQT,DISP=(OLD,DELETE,DELETE)             
//DD2 DD DSN=G54574.SYSPUNP,DISP=(OLD,DELETE,DELETE)                 
//UNLOAD  EXEC PGM=IKJEFT01,DYNAMNBR=20                               
//SYSTSIN  DD  *                                                     
 DSN SYSTEM(DSN1)                                                     
      RUN  PROGRAM(DSNTIAUL) PLAN(DSNTIAUL) -                         
      LIB('DSN710.RUNLIB.LOAD') -                                     
      PARMS('SQL')                                                   
      END                                                             
/*                                                                   
//SYSTSPRT DD SYSOUT=*                                               
//SYSPRINT DD SYSOUT=*                                               
//SYSUDUMP DD SYSOUT=*                                               
//SYSREC00 DD DSN=G54574.SYSREC.PACQT,                               
//            STORCLAS=MFI,UNIT=3390,SPACE=(CYL,(5,5),RLSE),         
//            DCB=(LRECL=3000,RECFM=FB,BLKSIZE=30000,DSORG=PS),     
//            DISP=(NEW,CATLG,DELETE)                               
//SYSPUNCH DD DSN=G54574.SYSPUNP,                                   
//            STORCLAS=MFI,UNIT=3390,SPACE=(CYL,(5,5),RLSE),         
//            DCB=(LRECL=120,RECFM=FB,BLKSIZE=800,DSORG=PS),         
//            DISP=(NEW,CATLG,DELETE)                               
//SYSIN    DD *                                                     
       SELECT RESUME                                                 
       FROM  DSN8710.EMP_PHOTO_RESUME                           
       ;                                                         
/*                                                               
//STEP0020 EXEC PGM=FTP,REGION=4096K PARM='(EXIT=8'             
//*                                                             
//SYSMDUMP DD SYSOUT=*                                           
//SYSPRINT DD SYSOUT=*                                           
//INPUT    DD *                                                 
ipaddress                                                   
username                                                         
password                                                         
PUT 'G54574.SYSREC.PACQT'   SAG1.MDB                             
PUT 'G54574.COBDB2.SEQLF'   SAG2.IDB                             
LS                                                               
CLOSE                                                           
QUIT                                                             
/*                                                               
//*     


Please give me the inputs for solving my problem....................
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Tue Aug 29, 2006 4:37 am    Post subject: Reply with quote

manesh,

In step0020 input DD * Scroll to the right and clear out the contents in pos 72-80. It seems you have some garbage values in pos 72 thru 80. Get rid of them and re-submit the job.


Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
manesh
Beginner


Joined: 11 Apr 2006
Posts: 12
Topics: 5

PostPosted: Fri Sep 01, 2006 7:06 am    Post subject: Reply with quote

hi kolusu...... i tried that also...it is not comingggg
Back to top
View user's profile Send private message
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Fri Sep 01, 2006 7:25 am    Post subject: Reply with quote

From SDSF do an SJ on a failing job and scroll to the right as Kolusu suggested. It is VERY common to have sequence numbers in the far right columns. They will cause the errors you are seeing.
As an aside, how did you come up with the blocksizes you are using for your 2 files?
Back to top
View user's profile Send private message
manesh
Beginner


Joined: 11 Apr 2006
Posts: 12
Topics: 5

PostPosted: Wed Sep 06, 2006 12:02 am    Post subject: Reply with quote

blocksizes of 2 files??well that is my friend's code..and maybe my friend is storing a image in those 2 files......

and my FTP jcl is working...i gave ip,userid and password in a file and giving that file to FTP jcl and its working fine........

and thanx for everyone for helping........
Back to top
View user's profile Send private message
spendam
Beginner


Joined: 13 Jan 2006
Posts: 7
Topics: 2

PostPosted: Tue Oct 03, 2006 11:13 am    Post subject: Reply with quote

I am getting below Invalid message while transferring file from C drive to Mainframe system. Its saying Command:
GET 'APLSM.DATA.OUTPUT' 'C
Invalid local file identifie, I gave correct path only, but I am getting below error message. Could you please advise me on this one. I will appreciate your hlep.

EZA1736I FTP 161.178.53.2 (TIMEOUT 720 EXIT=08
EZA1450I IBM FTP CS V1R4
EZA1772I FTP: EXIT has been set.
EZA1554I Connecting to: 161.178.53.2 port: 21.
220-FTPD1 IBM FTP CS V1R4 at WIZCOM-MVS2, 15:50:20 on 2006-10-03.
220 Connection will close if idle for more than 7 minutes, 30 seconds.
EZA1459I NAME (161.178.53.2:APLSM):
EZA1701I >>> USER aplsm
331 Send password please.
EZA1701I >>> PASS
230 APLSM is logged on. Working directory is "APLSM.".
EZA1460I Command:
EZA1736I GET 'APLSM.DATA.OUTPUT' 'C:/FTP/DATA/temp.txt'
EZA1685W Invalid local file identifier
EZA1735I FTP Return Code = 16000, Error Code = 00002
EZA1701I >>> QUIT
221 Quit command received. Goodbye.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group