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

FTP from mainframe to UNIX


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Wed Aug 06, 2008 1:02 pm
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

Global Moderator


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

PostPosted: Wed Aug 06, 2008 2:42 pm
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

Moderator Emeritus


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

PostPosted: Wed Aug 06, 2008 7:32 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Aug 07, 2008 4:03 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Creating Unix Directory using COBOL i... COBOL Programming 2
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts How to Reformat a file using File Man... All Other Mainframe Topics 14
Search our Forums:

Back to Top