for a simple embedded SQL query in Cobol like this:
Depending on parameter given, if parameter = 1, I need to run this query:
select * from file1
if the parameter = 2, i need to run this query:
select * from file2
the name of the "file" is fixed but the number depends on the parameter. How can I achieve it? I can't use the colon sign like we do it for conditions, at the table selection level.