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

JCL to transfer GDG thru FTP


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Tue May 29, 2007 4:53 pm
Reply with quote

Hi all,

I have a scenario as follows:

We have two servers named rh and wp . I have been asked to write a JCL to transfer the currently created GDG from rh to wp after i receive a mail ... I wrote the JCL but when i execute it , it is throwing an error saying as

Code:
EZA1450I IBM FTP CS V1R7                     
EZA1772I FTP: EXIT has been set.             
EZA1456I Connect to ?                       
EZA1736I   RH
EZA1553E Invalid port number. Open fails.   


So I dont see any error with my JCL ... To copy within the same server it's working fine ... I dont know what might be the error with that .. Can any one help me out in this?

Below is the JCL for your reference ...
Code:

//C5723GD JOB (834,9234,7),'WP56-756',CLASS=I,NOTIFY=&SYSUID     
//F5714001 EXEC PGM=FTP,PARM='(EXIT=08)'                           
//OUTPUT   DD SYSOUT=*                                             
//SYSPRINT DD SYSOUT=*                                             
//INPUT    DD *                                                   
  RY
  USERNAME
  ******                                                     
  TYPE E                                                           
  MODE B                                                           
  SITE CYL PRI=100 SEC=25 UNIT=CTAPE                               
  PUT 'MXT.MBY.C34ET.P000.MULTI.CXFILE(0)' +                       
      'MXT.MBY.C34ET.P000.MULTI.CXFILE(+1)'                       
  PUT 'MXT.MBY.C34ET.P000.MULTI.VTFILE(0) +                       
      'MXT.MBY.C34ET.P000.MULTI.VTFILE(+1)                         
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue May 29, 2007 6:32 pm
Reply with quote

Code:
EZA1450I IBM FTP CS V1R7                     
EZA1772I FTP: EXIT has been set.             
EZA1456I Connect to ?                       
EZA1736I   RH
EZA1553E Invalid port number. Open fails.


Connect to RH failing. Is your new FTP Server RH configured?
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Tue May 29, 2007 6:57 pm
Reply with quote

Hi Dev,

It's configured and i am able to do FTP in RH & WP indivudually .. But to transfer between this both i am facing the problem !!!
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue May 29, 2007 7:08 pm
Reply with quote

Quote:
Invalid port number


Have you tried specifying the proper port number?
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue May 29, 2007 7:08 pm
Reply with quote

You are doing FTP from RH to WP? Is this configured?

Also your JCL shows FTP to RY and your error message connect to RH.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Tue May 29, 2007 7:11 pm
Reply with quote

Superk,

Quote:

Have you tried specifying the proper port number?


Where should i need to specify ..

Devzee,
Code:
You are doing FTP from RH to WP? Is this configured?


Yes.

Quote:
Also your JCL shows FTP to RY and your error message connect to RH.
.

i am sorry it's RH only .. It's my mistake ...
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue May 29, 2007 7:15 pm
Reply with quote

How did you checked that the FTP configuration is setup ?
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Tue May 29, 2007 8:26 pm
Reply with quote

Hi Dev,

No error with FTP configurations .. I am saying you that individual server FTP is running fine ...
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed May 30, 2007 7:42 am
Reply with quote

Quote:
No error with FTP configurations .. I am saying you that individual server FTP is running fine ...


Individual FTP server is running doesnt mean that they are connected.

Have you verified the FTP connection?
Back to top
View user's profile Send private message
GlobalGyan

New User


Joined: 31 Jan 2006
Posts: 28

PostPosted: Wed May 30, 2007 10:01 am
Reply with quote

I am not sure if 'RH' will work, you can try putting the IP address instead of RH.

Port number will be 21 by default. If your server is configured on a different port number then you need specify the port number after IP.

qw FTP for more

-GG
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts MFT File transfer problems All Other Mainframe Topics 5
No new posts Transfer TB of data from Mainframe to... All Other Mainframe Topics 2
No new posts File transfer from host with filler f... TSO/ISPF 15
No new posts File transfer to remote system using ... TSO/ISPF 2
No new posts File transfer issue with end of line ... TSO/ISPF 4
Search our Forums:

Back to Top