With my problems behind me, I'm writing a bash srcipt (first one). I want to process the records in an MVS dataset. Are there any examples of using a loop? I didn't want to write a script to execute fromdsn and pipe it to another script, which is what I see in the docs examples.[/code]
I wish to reciporcate. After using your suggestion, I found this also works. Thanks again.
while read line
do
array[$i]="$line"
printf "%s\n" "$array[$i]"
((i++))
done < <(fromdsn '//A.DATA.SET(MEMBER)')