Thank you Vadim. I'll tested it next week. It's just because I don't have access to my system and I'm reviewing coding from offshore team .
It's the 1st time I see this coding.
But I understand now
example
If the package passed the value Company code ( %ENTITY_SET%) we can used the
*FOR %ENTITY123% = %ENTITY_SET%
/// We can code
*XDIM_MEMBERSET = %ENTITY123%
........
.......
*NEXT
why don't used the %ENTITY_SET% passed by the package ? is it a technical reason or we can used both in any case ?