Copying an item component value into a block component value

If I wanted to copy the "pos" value in a lodestone compass into the "exit_portal" value of an end gateway, for example, how could I do that?
Continue to help post