Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 565
  • Last Modified:

Renaming objects in IFS in a batch - remotely ?

What options are there to rename objects in the IFS by batch (with an example if possible). Can it be done in DOS ?... or would it have to be a CL ? I'd be happy Telneting in to kick it off ... or using Client Access.

Background:-I used to ftp objects down to sites but things have changed and now I don't want to overwrite - I want to come back later and rename the copied objects at a more convenient time ...
0
exppad
Asked:
exppad
  • 3
1 Solution
 
samic400Commented:
Sure, it can be done in DOS provided you have mapped a drive to your AS400.
0
 
exppadAuthor Commented:
how do you run a .bat file from telnet session ? you can see it with wrklnk but can it be 'run' ?
0
 
MurpheyApplication ConsultantCommented:
Why dont you rename it with FTP?

To run it in batch create a FTP-script:

Example:

---------- Begin FTP Script ------
open 123.123.123.123
user-id
password
put c:\filea.txt mylib\filea.txt
ren mylib\filea.txt mylib\fileb.txt
quit
---------- End FTP Script ------
(Instead of the IP-address you can also use the system name.)

To use the script with windows type this command:
  FTP -s:ftp-sccriptname
For DOS I think it is the same parameter (-s:) but if that does not work try the help :
 FTP -h or FTP -?

Good luck



0
 
exppadAuthor Commented:
That seems good - I can ftp later with the renames (as I don't want the rename to action during the file transfer phase)
I'll wait a day to see if anyone comes up with something really radical - but I can certainly live with doing an ftp for a rename - thanks Murphey2!
0
 
exppadAuthor Commented:
seems odd using FTP not to copy files - but hey it works - well..!
Thanks Murphey2
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now