var !SPEC collect all (SPEC) for ce
!folder = 'C:\PDMS\'
do !x from 1 to !SPEC.size()
$!SPEC[$!x]
!outputSpec = '/' + !folder + !x.string() + '.txt'
$P $!outputSpec
file $!outputSpec
output ce
term
enddo
var !SPEC collect all (SPEC) for ce
!folder = 'C:\PDMS\'
do !x from 1 to !SPEC.size()
$!SPEC[$!x]
!outputSpec = '/' + !folder + !x.string() + '.txt'
$P $!outputSpec
file $!outputSpec
output ce
term
enddo