× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Ray

One idea I've used is to have a QMQRY that replaces a line in a script - I have a shell with all the lines I need that I copy to a temporary member, maybe in QTEMP, maybe in the same file. Then STRQMQRY to replace anything I need to. STRQMQRY can have substitution variables, which could be your file name.

So, something like

cpyf ftpscripts ftpscripts shell temp mbropt(*replace)
ovrdbf ftpscripts ftpscripts temp
strqmqry yourqry setvar((filename &file))
dltovr ftpscripts
ovrdbf input ftpscripts temp
ftp ip-address
dltovr input

Another option could use QShell, I think, with grep or sed, to replace a marker with the filename. Again, you'd want to copy the shell to a temp member, so as not to change the shell.

hth

VERN

At 04:33 AM 7/9/2003 +0000, you wrote:
Hi all,

Is it a best practice to use multi-member Physical File for FTP script for multiple file transfer?
Each member in the PF contains FTP script for different files.
Files need to be transfered from a non-AS/400 server to the IFS using a auto batch CL.


Is there any other way so that we can avoid hardcoding the file name in FTP script and use a single
FTP script for all different files?


Any suggestions?

Thanks in advance.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.