Thanks Cedric - glad you found it helpful.
It looks like there may be a typo in the slides or a something may have happened in the copy-and-paste process. The formatting should be %5.4f rather than \%5.4f. This is simpler and will also work:
corr TotalEven TotalOdd
scalar SBPF = 2 * r (rho) / (1 + r (rho))
disp "The Spearman-Brown Prophesy Reliability Estimate = " SBPF