It doesn't work because of an error on 1 line (missing a quote):
change:
s (strcat "(" (rtos x) "," (rtos y) "," (rtos z) "))
to
s (strcat "(" (rtos x) "," (rtos y) "," (rtos z) ")")
Another minor change allows a "drag line" for picking text location. Here's the entire code for ease of copy & pasting:
------------------------------------------
(DEFUN C

TT (/ osm p1 x y z s p2) ; ID a point, place coordinates text
(graphscr)
(setq osm (getvar "osmode"))
(command "osmode" 53)
(setq p1 (getpoint "\nSNAP to point to be ID'd: ")
x (car p1)
y (cadr p1)
z (caddr p1)
s (strcat "(" (rtos x) "," (rtos y) "," (rtos z) ")")
)
(command "osmode" 0)
(setq p2 (getpoint p1 "\nPick point for end of Leader: "))
(COMMAND "DIM1" "LE" p1 p2 "" s)
(command "osmode" osm)
(princ)
)