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.