Arexx-Script
19-Apr-95 08:38:26
Sb: #46547-Arexx-Script
Fm: Jim Butterfield 73624,14
To: Frieder Sandel 100412,2545
I don't know ADPro, but the general approach will go as follows:
DO SUBSCR=1 TO 999
NAME = 'MOVIE.'RIGHT(SUBSCR,5,'0')
[now do your ADPro script thing using file NAME…]
END
The RIGHT function forces a five-character string, padded with character '0',
so the names end up as MOVIE.00001, MOVIE.00002, etc.
If the file numbers are not 100% consecutive, you might find it useful to add
an IF EXISTS test.
–Jim