variable robtarget name

Does anyone know how to specify the name of a robtarget that was constructed from adding strings and numbers together? For example, I have a robtarget that changes based on the job number that we are running, the job number is a variable number, x. I would like to build the robtarget name using the “x” variable such as:

MoveJ “Rob_Move”+NumToStr(x,0),v2500,z100,tool01;

If I am running job number 4, then the point is Rob_Move4. Of course this will change depending on the job that we are running. The NumToStr converts the x variable to a string and adds it to the end of Rob_Move. However, in this example, the name is read as a string and not as a robtarget. Does anyone know how I can construct the robtarget name with the variable and then use it in a move instruction?

have done this before (years ago and cant remeber exactly the process)

I think I used GetDataVal

something like this;

GetDataVal “target”+ ValToStr(num), temprobtarget
MoveL temprobtarget