Solved

Renaming objects in IFS in a batch - remotely ?

Posted on 2001-06-25
5
482 Views
Last Modified: 2012-06-21
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
Comment
Question by:exppad
  • 3
5 Comments
 
LVL 13

Expert Comment

by:samic400
Comment Utility
Sure, it can be done in DOS provided you have mapped a drive to your AS400.
0
 

Author Comment

by:exppad
Comment Utility
how do you run a .bat file from telnet session ? you can see it with wrklnk but can it be 'run' ?
0
 
LVL 16

Accepted Solution

by:
theo kouwenhoven earned 200 total points
Comment Utility
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
 

Author Comment

by:exppad
Comment Utility
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
 

Author Comment

by:exppad
Comment Utility
seems odd using FTP not to copy files - but hey it works - well..!
Thanks Murphey2
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now