Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP from mainframe to UNIX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rohanatl

New User


Joined: 21 Oct 2005
Posts: 22

PostPosted: Wed Aug 06, 2008 9:57 am    Post subject: FTP from mainframe to UNIX
Reply with quote

Hi All,
I am trying to send a dataset to Unix thru FTP,But i am not gettng the desired result, can any one look in to the jcl and the spool message

Code:
EZA1736I FTP XXX.X.X.X (EXIT=8                                     
EZA1450I IBM FTP CS V1R8                                             
EZA1772I FTP: EXIT has been set.                                     
EZA1554I Connecting to:   XXX.X.X.X port: 21.                       
220-TCPFTP1 IBM FTP CS V1R8 at B1TCP.INTRANET.PBS, 11:22:34 on 2008-0
220 Connection will close if idle for more than 7 minutes.           
EZA1459I NAME (XXX.X.X.X:ABCD):                                     
EZA1701I >>> USER MNOP                                               
331 Send password please.                                           
EZA1701I >>> PASS                                                   
230 UP11 is logged on.  Working directory is "MNOP.".               
EZA1460I Command:                                                   
EZA1736I CD SAMPLE                                                   
EZA1701I >>> CWD SAMPLE                                             
250 "MNOP.SAMPLE." is the working directory name prefix.             
EZA1460I Command:                                                   
EZA1736I ASCII                                                       
EZA1701I >>> TYPE A                                                 
200 Representation type is Ascii NonPrint                           
EZA1460I Command:                                                   
EZA1736I PUT //DD:DD1 V.TXT                                         
EZA1701I >>> SITE FIXrecfm 121 LRECL=121 RECFM=FB BLKSIZE=1210       
200 SITE command was accepted                                       
EZA1701I >>> PORT XXX.X.X.X,8,205                                   
200 Port request OK.                                                 
EZA1701I >>> STOR V.TXT                                                         
125 Storing data set MNOP.SAMPLE.V.TXT                                         
250 Transfer completed successfully.                                           
EZA1617I 3700 bytes transferred in 0.005 seconds.  Transfer rate 740.00 Kbytes/s
EZA1460I Command:                                                               
EZA1736I QUIT                                                                   
EZA1701I >>> QUIT                                                               
221 Quit command received. Goodbye.             

After the submission i want my data set to be send to UNIX server but what i can see is the op is stored in the
" MNOP.SAMPLE.V.TXT " dataset
This is the JCL i submitted

Code:
//FTP001 EXEC PGM=FTP,PARM=XXXX.X.X.X (EXIT=8'         
//*SYSPRINT DD SYSOUT=*                                 
//OUTPUT DD SYSOUT=*                                     
//DD1    DD DSN=T.JJJJ.PSFILE,DISP=SHR                   
//NETRC DD DUMMY                                         
//INPUT DD *                                             
MNOP DDDDD
CD SAMPLE                                               
ASCII                                                   
PUT //DD:DD1 V.TXT                                       
QUIT                                                     
/*         



I need to get the T.JJJJ.PSFILE in to unix system
the path is U/MNOP/SAMPLE
I thnk i have wrongly specified the path ie why its not placed to unix
Back to top
View user's profile Send private message

dick scherrer

Site Director


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

PostPosted: Wed Aug 06, 2008 1:02 pm    Post subject:
Reply with quote

Hello,

What you have posted should transfer the T.JJJJ.PSFILE dataset and name it V.TXT on the unix system.

To better understand the activity going on for positioning in the unix file system, i'd suggest you talk with the unix admins or the network people.

FWIW - it usually works better if the unix server pulls the file rather than using the mainframe to push the file.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Wed Aug 06, 2008 2:42 pm    Post subject: Reply to: FTP from mainframe to UNIX
Reply with quote

I'm pretty sure that this line:

220-TCPFTP1 IBM FTP CS V1R8 at B1TCP.INTRANET.PBS, 11:22:34 on 2008-0

indicates that the FTP server you're connected to an IBM Communications Server V1R8, which would be running on a z/OS V1R8 mainframe.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Wed Aug 06, 2008 7:32 pm    Post subject: Reply to: FTP from mainframe to UNIX
Reply with quote

Hi Kevin,

Good catch icon_wink.gif

d
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Thu Aug 07, 2008 4:03 am    Post subject:
Reply with quote

Rohanatl: if you're wanting to transfer to a Unix Systems Services file, you need cd /u/mnop/sample instead of CD SAMPLE. z/OS boxes connect FTP to TSO by default so the CD SAMPLE command changes directories to your MNOP TSO user id with SAMPLE as the second level of DSNAME.

Also, /U/MNOP/SAMPLE and /u/mnop/sample are very different in Unix System Services ... be aware of the difference (hint: Unix is case sensitive).
Back to top
View user's profile Send private message
rohanatl

New User


Joined: 21 Oct 2005
Posts: 22

PostPosted: Thu Aug 07, 2008 10:41 am    Post subject:
Reply with quote

Hi All thnks a lot for ur replay now i am able to send the file to Unix
Thanks alot for your help icon_biggrin.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am
No new posts SNMP trap from Mainframe bipinpeter Compuware & Other Tools 6 Wed Apr 26, 2017 3:05 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Opening in Allianz India- T... Rajesh Gopinathan Mainframe Jobs 0 Wed Apr 19, 2017 11:33 am
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 7 Thu Mar 23, 2017 5:12 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us