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 MVS system to Windows Server

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
sobiswal

New User


Joined: 23 Feb 2010
Posts: 1
Location: Kolkata

PostPosted: Tue Feb 23, 2010 5:16 pm    Post subject: FTP from MVS system to Windows Server
Reply with quote

Please find my JCL below.
Code:

//STEP001 EXEC PGM=FTP,PARM='(EXIT'                   
//SYSPRINT  DD SYSOUT=*                               
//OUTPUT    DD SYSOUT=*                               
//FTPIN     DD DSN=SEBID2.IU.WBT7601.TBSEA,DISP=SHR         
//INPUT     DD *                                     
9.184.95.84                                           
ibm                                                   
gi1111ft                                             
cd c:\                                               
put //DD:FTPIN ewz.txt                               
QUIT                                                 
/*                                                   
/*                                                   


And here whats the error showing in spool..The connection is working but error is poitning towards the file directory..

EZA1459I NAME (9.184.95.84:SEBID2):
EZA1701I >>> USER ibm
331 Password required for ibm.
EZA1789I PASSWORD:
EZA1701I >>> PASS
230 User ibm logged in.
EZA1460I Command:
EZA1736I cd c:\
EZA1701I >>> CWD c:\
550 c:\: The filename, directory name, or volume label syntax is incorrect
EZA1735I Std Return Code = 07550, Error Code = 00002
EZA1701I >>> QUIT
221


COuld you please let me know what needs to be rectified or added so that I can avoid this error..
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Tue Feb 23, 2010 5:18 pm    Post subject: Reply to: FTP from MVS system to Windows Server
Reply with quote

c:\

is NOT a valid name of a directory. Use LS or DIR to find the names of the directories on that server.
Back to top
View user's profile Send private message
rukmakiran

New User


Joined: 19 Apr 2005
Posts: 21

PostPosted: Tue Feb 23, 2010 9:16 pm    Post subject:
Reply with quote

Jobs is abending with the below error in FTP mainframe file to Middleware server ,folder 'PI' is not accessible since yesterday even though there are
no changes in folder "PI" , and the folder was accessible for last but one run.

.EZA1460I Command:
.EZA1736I cd pi
.EZA1701I >>> CWD pi
.550 pi: The system cannot find the file specified.
.EZA1735I Std Return Code = 07550, Error Code = 00002
.EZA1701I >>> QUIT
.221

Can you suggest where will be the issue ? at server or in FTP ?

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

Global Moderator


Joined: 06 Jun 2008
Posts: 7999
Location: Bellevue, IA

PostPosted: Tue Feb 23, 2010 9:21 pm    Post subject:
Reply with quote

It's most likely a server issue. Permissions could have been changed on the server. The directory name case may have changed (Unix, for example, is case sensitive so PI and pi are two different directories). The directory may have been moved so a full or relative path name may be needed (cd /root/pi for example).

Another possibility, on the FTP side, is that someone renumbered the FTP script. FTP does not like line numbers since it did not come out of the TSO / ISPF environment.
Back to top
View user's profile Send private message
rukmakiran

New User


Joined: 19 Apr 2005
Posts: 21

PostPosted: Tue Feb 23, 2010 9:31 pm    Post subject:
Reply with quote

Thanks for Quick reply,
Asked my server operations group to look into the privileges, but there were no changes in case or line numbers also in location of the folder.

Are there any possibility from TSO environment which effect FTP ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7999
Location: Bellevue, IA

PostPosted: Tue Feb 23, 2010 9:55 pm    Post subject:
Reply with quote

Verify the file containing the FTP commands has spaces all the way to the end of each line -- if there are line numbers in it, you will have trouble.
Back to top
View user's profile Send private message
rukmakiran

New User


Joined: 19 Apr 2005
Posts: 21

PostPosted: Tue Feb 23, 2010 10:01 pm    Post subject:
Reply with quote

Issue resolved by changing "cd PI" to "cd \PI" , but i just want to know why the "cd PI" was acceptable till day before & currently not ? and where was the change - Is it from middleware server or changes in TSOenvironmentt ? do you have nay idea ?

Thanks,
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Tue Feb 23, 2010 10:09 pm    Post subject: Reply to: FTP from MVS system to Windows Server
Reply with quote

maybe the ftp server on the workstation was started in a working directory of the root when it worked and started with a different working directory when it failed. In any case, fully qualifying the target name is always a good idea.
Back to top
View user's profile Send private message
rukmakiran

New User


Joined: 19 Apr 2005
Posts: 21

PostPosted: Tue Feb 23, 2010 10:57 pm    Post subject:
Reply with quote

My Question is - why it wors before & did not work currently with the same script?

Also let me know if you have any idea on where can we find the maaped location for FTP address SERVER1.nj.ssmb.com is mapped to \\SERVER1\Archive\Data\ ?

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

Global Moderator


Joined: 06 Jun 2008
Posts: 7999
Location: Bellevue, IA

PostPosted: Tue Feb 23, 2010 11:34 pm    Post subject:
Reply with quote

It worked before and did not work currently with the same script because something was changed on the server (permissions, default folder, operating system, something).

FTP address SERVER1.nj.ssmb.com is resolved either through a NETRC (look at the JCL for the FTP job to see if there's a NETRC DD name), or through DNS (which may be done on the mainframe or via a name server on your network -- you'll want to get with your site support group for either of these cases). There is no need for a mapping as FTP works with an IP address and port number on that IP address.
Back to top
View user's profile Send private message
rukmakiran

New User


Joined: 19 Apr 2005
Posts: 21

PostPosted: Wed Feb 24, 2010 12:52 am    Post subject:
Reply with quote

Thanks Reobert.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts FTP Server and FTP.DATA vasanthz All Other Mainframe Topics 2 Wed Oct 12, 2016 11:49 pm
No new posts Get system time in micro second or cl... lind sh CICS 11 Mon Sep 05, 2016 11:14 pm


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