I have a similar question; but not...
I read a table
let current_week=peek(week1); /* value is set to WK1010'
now I want to use current_week in various ways - all fail.
load $(current_week) as weektoload
fails with file not found and brings the following message
load WK1010 as weektoload....
it is not using the TEXT WK1010 it seems like it's using the WK1010 as a column name.
I realy want to load 'WK1010' into the table.