We use intensively session variables in our analysis queries (which are used in DV datasets) and in particular we have a session variable called report_name which allows through the RPD to make the query retrieve data for this report. Currently our session variable statement would be e.g. set variable am_report_name = 'PER01-PBRER-PRODUCT1';
Question : is there a way to make the session variable dynamic using logic : e.g. am_report_name = derive value from parsing the actual analysis file name. Can session variable use logical sql and is there a way to retrieve the analysis file name in logical sql?
This would bring a huge benefit to us as then the analysis file name e.g. PER01-PBRER-PRODUCT1-case listing would drive the session variable name and we would have no need to update it as it would become dynamic.