Hi,
Yes, not used the method you show to get page numbering in your RTF and that is probably why you get differing tagset output. I would suggest to do this. In your footnote statement have:
footnote1 j=r "^{thispage} of ^{lastpage}";
You should then see in your tagset output:
\pard\plain\intbl\keepn\sb10\sa10\qr\f1\fs16\cf1{Page {\field{\*\fldinst { PAGE }}} of {\field{\*\fldinst { NUMPAGES }}}\cell}
You can read the RTF file and count the number of the above to get total pages, although be careful, if your output goes over more than one actual page, you wont see this footnote duplicated in the RTF, however it will in the Word view. So if from SAS we get 2 pages, but the contents of page 2 are too big Word would split the page, and you would see 1 of 3 in the Word view but the above tagset output would only appear twice.
There are some solutions out there which do all kinds of complicated algorithms on text files to find page number, my recommendation would be to ensure you fix your output before outputting rather than trying to calculate after the event. So in my outputs I will explicitly fix say 20 rows per output page, this would allow 15 rows to roll over before a page break etc.