Results from ".idp" macro

I have placed the code of the system of elasticity of a 2D beam as a macro inside an .idp file so it can be called from a different .edp file. My question is how can I export the values I want from the .idp file on the .edp’s “memory”?