I've got a client using an RPG II program I wrote 10 years ago to populate
an ftp script file based on a position marker. It pushes files to a Unix box
and pulls different ones back.
You're welcome to it.
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Eric Lehti
Sent: Saturday, March 09, 2013 1:27 PM
To: Midrange Systems Technical Discussion
Subject: RE: FTP batch script needs file name as parameter so
differentfilescan be transmitted each time
Do you mean using STRQMQRY compiled with a parameter variable
(containing replacement file name) where its SQL updates source member
line that has the put statement?
The source line would PUT a different file each time.
I like that. I also appreciate your comment about doing it with RPG.
One idea is to use a place-marker for the file name, then do an SQL
REPLACE on that line - or do it in RPG native.