Can i move a particular value in a variable to the index of a internal table
Fo ex: Can i do
Set Var to 3
Move Var to ws-eqrf-sub,
where sub is the index fo an internal table
01 filler redefines ws-eqrfn-table.
03 table-entries occurs 100
indexed by ws-eqrf-sub.
05 value1 pic x(2).
05 value2 pic x(2).
I got it. Yes we can only set the index, in this case i can set the index with the desired variable, hope i am correct.
Why hope? Why not read the manual (link at the top of the page)? Specifically, the COBOL Language Reference manual, section 184.108.40.206 on Format 1 for the SET statement gives the rules so you can know for sure.