Embedded calls worked after a fashion as long as returns variables were being used and the language for generation was WinC. The calls are generated before the statement in which they are used and so fine for assignments or plain 'if' statements. Obviously, the code was not correct for 'while' statements, where the calls need to be repeated on each iteration, and for a second 'when' (implemented as 'else if'). I have created a fix which handles these different constructs appropriately and supports output variables, not only for WinC, but also the other generation languages supported. The fix is attached to issue 18541175, but will also go into 6.1 PTF 012 (and our 6.0 and 5.5SP1 PTF streams). Regards, Paul Vereycken