The command stack is also available as @COMMAND.STACK, which actually compiles as SYSTEM(33).
UV documentation erroneously says SYSTEM(33) returns only the last command, but Ray's right. It has the whole stack. I'm correcting the U2UG WIKI page for SYSTEM(n) to say: 33 Dynamic array containing the last 99 commands executed. (IBM doc erroneously says: "Returns the last command on the command stack.") @COMMAND.STACK is equivalent. It compiles as SYSTEM(33). cds -----Original Message----- From: Ray Wurlod The UniVerse sentence stack isn't stored anywhere. It is kept in the user's "printer shared memory segment" while the user is active. The .L command and the SYSTEM() function retrieve it from there. When the user exits from UniVerse, and if the VOC item STACKWRITE is set to ON, then the command stack is saved in &SAVEDLISTS& as others have posted. But it does not go there until the user exits from UniVerse. The command stack can be deliberately saved to &SAVEDLISTS&, for example via the SAVE.STACK command, but this is not an automatic operation. ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/