Prompts and comments are generated in the
prompt::fieldname and
comment::fieldname routines .
What I recommend is that you right-click on the procedure, choose "source" and embed whatever you like in those routines before the generated code.
This is one of the few times that you can use a local variable for the prompt and comment, and then in the top of those routines set the local variable to whatever you like.
Typically they are "fixed" values, they don't come from session values - but obviously it all depends on what you set the template prompt to.
cheers
Bruce