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 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: 4648
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: 4648
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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 4 Fri Mar 24, 2017 2:24 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm


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