Thank you. That made a difference but the numbers of totally off in the other direction. It should be about 2 miles but not it is showing 3538.42664. I will continue to play with it because you were right on the money that it was GCS.
Again, I find it really frustrating that it works just fine interactively but not in batch.