View previous topic :: View next topic
|
Author |
Message |
rohanatl
New User
Joined: 21 Oct 2005 Posts: 22
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Kevin,
Good catch
d |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
rohanatl
New User
Joined: 21 Oct 2005 Posts: 22
|
|
|
|
Hi All thnks a lot for ur replay now i am able to send the file to Unix
Thanks alot for your help |
|
Back to top |
|
|
|