in the end i iterated through the text file to build a file of SUPR commands
using CHAIN. It took about an hour to write the job and 15 mins to execute.

Thanks to one and all who gave advice and tips.

martin