MIDRANGE dot COM Mailing List Archive



MIDRANGE-L » March 2013

RE: FTP batch script needs file name as parameter so differentfilescan be transmitted each time



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.

Paul Nelson
Cell 708-670-6978
Office 512-392-2577
nelsonp@xxxxxxxxxxxxx

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[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

Vernon,
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.






Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2013 by MIDRANGE dot 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 here. If you have questions about this, please contact