Thank you Christophe and Sven.
This looks promising, but as I feared, that does not work for more than 4 private variables. Here is my setup for 5 private variables (TR1, TR2, TR3, TR4 and SP1). For this test, these are homogeneous fields with value 1, 2, 3, 4 and 5, respectively.
I print them in the DRAGFO subroutine (where I want to access them in the final configuration). As you can see in the standard output, it works for the first 4, but not for the 5th variable (which remains 0).
I looked a bit at the FONSTR subroutine, it seems that the variable N_NAMES_PRIV remains 4 even if we use more than 4 private variables. And if I force it to be 5, I have a segmentation fault...
Would you have some suggestion to go further?
I also have a side question (probably more easy). In the CAS file, I'm getting trouble with the keyword NAMES OF PRIVATE VARIABLES if gets too long. For example, this works
NAMES OF PRIVATE VARIABLES = 'TR1';'TR2';'TR3';'TR4';'SP1'
But it doesn't work anymore for a longer list or longer names. Is there a way to circumvent that? Is there a maximum size for strings in the CAS file or something like that?
Thank you all for your help!