How can I define a Postscript procedure whose definition survives page breaks, that is, which has global scope? Here is a trivial example, where the procedure invocations after a \newpage fail during ps2pdf conversion:
\documentclass{article}
\usepackage{pstricks}
\begin{document}
test
\pstVerb{/printany {256 string cvs print (\string\n) print} def}
\pstVerb{12345 printany} % works
\pstVerb{(john) printany} % works
\newpage
test
\pstVerb{12345 printany} % printany undefined
\pstVerb{(john) printany} % --"--
\end{document}