The only way I have been able to do this is to use SQM/400 to create the final report. This allows you to use any data from the file in headings & footers.
I create a holding file to keep the parameter, e.g. User name, Company Name, date range, etc.
I join this file to my final created file, in SQM.
I then use the information in the header for the report.