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

FTP from MVS system to Windows Server


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Tue Feb 23, 2010 5:18 pm
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Feb 23, 2010 9:21 pm
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Feb 23, 2010 9:55 pm
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
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: 400
Location: Mumbai

PostPosted: Tue Feb 23, 2010 10:09 pm
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Feb 23, 2010 11:34 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Sysplex System won't IPL at DR site I... All Other Mainframe Topics 2
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
Search our Forums:

Back to Top