RE: [U2] UV sentence stack

2007-09-15 Thread Stevenson, Charles
 You may wish to add to the wiki that 99 is a tunable number in the
 ~/uv/uvconfig file as HISTSTK NN where NN = 99 as the default. If you
 wish, you can reduce or enlarge that number, which is what SYSTEM(33)
 will then return.

Or, given the nature of wikis, you may wish to add depth of content
yourself.  There's a lot that's cursory.

I wish someone more experienced with wikis would go to that article edit
or add hyperlinks and better indexing.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UV sentence stack

2007-09-14 Thread Stevenson, Charles
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/


RE: [U2] UV sentence stack

2007-09-14 Thread karlp
quote who=Stevenson, Charles
 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).

You may wish to add to the wiki that 99 is a tunable number in the
~/uv/uvconfig file as HISTSTK NN where NN = 99 as the default. If you
wish, you can reduce or enlarge that number, which is what SYSTEM(33) will
then return.

Karl


 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/



-- 
Karl Pearson
Director of I.T.
ATS Industrial Supply, Inc.
[EMAIL PROTECTED]
http://www.atsindustrial.com
800-789-9300 x29
Local: 801-978-4429
Fax: 801-972-3888

To mess up your Linux PC, you have to really work at it;
 to mess up a microsoft PC you just have to work on it.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] UV sentence stack

2007-07-17 Thread 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/


[U2] UV sentence stack

2007-07-16 Thread Clifton Oliver
In reply to a previous question (the e-mail of which I've already  
deleted--oops), the current sentence stack is accessible from UV  
Basic in system(33). Note, however, that the documentation in both  
the 10.2 manual (the only one I checked) and the 10.2 online help is  
incorrect. It states that system(33) Returns the last command on the  
command stack. In fact, the entire stack is returned using @fm as  
the delimiter.



--

Regards,

Clif

~~~
W. Clifton Oliver, CCP
CLIFTON OLIVER  ASSOCIATES
Tel: +1 619 460 5678Web: www.oliver.com
~~~


$uv
UniVerse Command Language 10.2
(c) Copyright IBM Corporation 2006. All rights reserved.
coliver logged on: Mon Jul 16 13:53:08 2007

DEC vt200/vt220 8 bit terminal (vt220)
.l
01 LOGIN
who
29 coliver
TIME
14:25:14 16 JUL 2007
ED BP SYSTEM33
7 lines long.

: P
0001:   dyn = system(33)
0002:   dynNdxLast = dcount(dyn, @fm)
0003:   for dynNdx = 1 to dynNdxLast
0004:  crt fmt(dynNdx, R## ) : dyndynNdx
0005:   next dynNdx
0006:   stop
0007:end
Bottom at line 7.
: EX
RUN BP SYSTEM33
1 RUN BP SYSTEM33
2 ED BP SYSTEM33
3 TIME
4 who
5 LOGIN
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/