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

FTP multiple files to diff directories


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
km_madhu111

New User


Joined: 27 Jul 2005
Posts: 4
Location: Danbur, CT

PostPosted: Sat Jan 19, 2008 3:02 am
Reply with quote

I'm trying to FTP multiple files to different directories on a server but, it fails. Can someone help me fix this?

Sample:
-----------

ipaddr
username
pwd
cd aaa\bbb\ccc\ddd
put xxx.yyy.zzz xxx.txt
cd aaa\bbb\ccc\mmm
put ppp.qqq.rrr rrr.txt
quit
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Sat Jan 19, 2008 3:06 am
Reply with quote

We're going to need a whole lot more details ...

If there are error codes being generated, you'll need to post them, along with their description and the suggested resolution. If the FTP process is failing on the server, not on the mainframe, then you'll need to resolve the problem(s) at that level.
Back to top
View user's profile Send private message
km_madhu111

New User


Joined: 27 Jul 2005
Posts: 4
Location: Danbur, CT

PostPosted: Sat Jan 19, 2008 4:45 am
Reply with quote

I don't know if it could be a problem with the mainframe or the server coz, everytime I split them and run, the RC=0.

The problem arises only when I club them both into one FTP card. Even then, the first part goes thru completely. It even executes cd aaa\bbb\ccc\mmm but, when it tries to execute the 'put' statement after that it says 'the path is not found'.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Sat Jan 19, 2008 9:04 am
Reply with quote

If you change directory the first time to:

aaa\bbb\ccc\ddd

then that would make the working directory aaa\bbb\ccc\ddd.

If you change directory a second time to:

aaa\bbb\ccc\mmm

then wouldn't that make the current working directory aaa\bbb\ccc\ddd\aaa\bbb\ccc\mmm?
Back to top
View user's profile Send private message
km_madhu111

New User


Joined: 27 Jul 2005
Posts: 4
Location: Danbur, CT

PostPosted: Sat Jan 19, 2008 9:11 am
Reply with quote

Oh OK. Got it. But, if I wanna make aaa\bbb\ccc\ddd to aaa\bbb\ccc\mmm then how do I do it?
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 631
Location: Wisconsin

PostPosted: Sat Jan 19, 2008 9:09 pm
Reply with quote

put a \ in front of the whole path on the CD command

cd \aaa\bbb\ccc\ddd
put filea
cd \aaa\bbb\ccc\mmm
put fileb
Back to top
View user's profile Send private message
km_madhu111

New User


Joined: 27 Jul 2005
Posts: 4
Location: Danbur, CT

PostPosted: Tue Jan 22, 2008 7:34 pm
Reply with quote

Thanks a lot. It worked!!
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Joining files with intermittent heade... SYNCSORT 1
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts INPFIL FILES, FNAMES examples SYNCSORT 7
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts To Sort detail records in a file with... SYNCSORT 5
Search our Forums:


Back to Top