Thanks BR for the reply, I see that I have mis wrote my question,
I my part program I need to write G0 x(value) and G0 z(value) on two separate lines many many times. I would like to have 1 macro number say M9999 with x(variable) and z(variable) and move linear.
Example
N10 M9999 X5 Z10 = X moves to 5 then Z moves to 10
N20 M9999 X15 Z2 = X moves to 15 then Z moves to 2
N30 M9999 X11 Z22 = X moves to 11 then Z moves to 22
M30
Thanks again for your help
Dave