Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
FTP multiple files to diff directories

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: FTP multiple files to diff directories
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

Moderator Team Head


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

PostPosted: Sat Jan 19, 2008 3:06 am    Post subject: Reply to: FTP multiple files to diff directories
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    Post subject: Reply to: FTP multiple files to diff directories
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

Moderator Team Head


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

PostPosted: Sat Jan 19, 2008 9:04 am    Post subject: Reply to: FTP multiple files to diff directories
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    Post subject: Reply to: FTP multiple files to diff directories
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: 632
Location: Wisconsin

PostPosted: Sat Jan 19, 2008 9:09 pm    Post subject:
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    Post subject: Reply to: FTP multiple files to diff directories
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    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 Comparing two sequential files Mohan Kothakota COBOL Programming 14 Mon Apr 16, 2018 6:35 pm
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts write multiple lines in PS file in cobol Balu5491 COBOL Programming 7 Wed Mar 07, 2018 10:27 am
No new posts How to build one file from two input ... daniele DFSORT/ICETOOL 5 Tue Feb 27, 2018 6:45 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us