Yup, there sure is.. you can use the ubound() function to return the largest available subscript (nth index) of an array ...code:
break on
$line="aaa bbb ccc ddd"
$record=split($line," ",-1)
$nthfield=$record[ubound($record)]
?"nthfield=$nthfield"
exit
Shawn.
[This message has been edited by Shawn (edited 19 April 2001).]