it's usually easier to just use another workshift like G55/G56 etc.
G00 Z (to clearance)
G00 X Y (somewhere near your next part)
The sub program O1234 will do all of the part machining. The zero is shifted by the G55/G56 workshift
But if you want to use G52 first read this, it might answer your question and save someone some typing
Shifting Program Zero On Machining Centers | Modern Machine Shop
also, here's the page from a manual showing how G52 works.... but it may confuse you more