Ray, Could you share a specific example which shows the problem of output being "not valid" ? Raj -- //www.freelists.org/webpage/oracle-l