List variables

132 views
Skip to first unread message

Scott Johnston

unread,
Jul 20, 2012, 2:54:25 PM7/20/12
to mvd...@googlegroups.com
I'm working in RS UV 10.??  When I used jBase, I could simply type a "/" at the debug prompt and the value every variable would stream by in order on screen.  I've been searching here.. and some over there.... even look under the couch and can't find one. 

Does UV have a hidden function to do the same?

Bruce Holt

unread,
Jul 20, 2012, 3:02:56 PM7/20/12
to mvd...@googlegroups.com
In UV the convention in RAID (UV debugger - gotta love that name!) is:

VARIABLE/

That will give the value of that variable. More infor is available in the UniVerse BASIC manual (available in PDF format on Rocket's site).

Bruce

On Fri, Jul 20, 2012 at 1:54 PM, Scott Johnston <talo...@gmail.com> wrote:
I'm working in RS UV 10.??  When I used jBase, I could simply type a "/" at the debug prompt and the value every variable would stream by in order on screen.  I've been searching here.. and some over there.... even look under the couch and can't find one. 

Does UV have a hidden function to do the same?

--
You received this message because you are subscribed to
the "Pick and MultiValue Databases" group.
To post, email to: mvd...@googlegroups.com
To unsubscribe, email to: mvdbms+un...@googlegroups.com
For more options, visit http://groups.google.com/group/mvdbms

Scott Johnston

unread,
Jul 20, 2012, 3:07:28 PM7/20/12
to mvd...@googlegroups.com
Yes, that's obvious.  I need to list EVERY variable at once.

BruceH

unread,
Jul 20, 2012, 3:30:29 PM7/20/12
to mvd...@googlegroups.com
I figured as much. I don't believe RAID does precisely what you are asking for.


On Friday, July 20, 2012 2:07:28 PM UTC-5, Scott Johnston wrote:
Yes, that's obvious.  I need to list EVERY variable at once.

On Fri, Jul 20, 2012 at 3:02 PM, Bruce Holt <> wrote:
In UV the convention in RAID (UV debugger - gotta love that name!) is:

VARIABLE/

That will give the value of that variable. More infor is available in the UniVerse BASIC manual (available in PDF format on Rocket's site).

Bruce

On Fri, Jul 20, 2012 at 1:54 PM, Scott Johnston <> wrote:
I'm working in RS UV 10.??  When I used jBase, I could simply type a "/" at the debug prompt and the value every variable would stream by in order on screen.  I've been searching here.. and some over there.... even look under the couch and can't find one. 

Does UV have a hidden function to do the same?

--
You received this message because you are subscribed to
the "Pick and MultiValue Databases" group.
To post, email to: mvd...@googlegroups.com
To unsubscribe, email to: mvdbms+unsubscribe@googlegroups.com

For more options, visit http://groups.google.com/group/mvdbms

--
You received this message because you are subscribed to
the "Pick and MultiValue Databases" group.
To post, email to: mvd...@googlegroups.com
To unsubscribe, email to: mvdbms+unsubscribe@googlegroups.com

Tony Gravagno

unread,
Jul 20, 2012, 4:16:06 PM7/20/12
to mvd...@googlegroups.com

In D3 you can use " /* " to see all vars. Perhaps this was added but not documented in UV.  That's something one would generally not do in a larger program where thousands of variables can be active, so I'd understand if it was not implemented.

 

For a tacky home-grown solution, I don’t recall what the option is but I believe you can compile a program in UV with an option to generate a variable mapping. Write some code to parse that and generate a stream of lines that look like this:

 

/VAR_1

/NAME

/FOO

/BAR

 

See? … Tacky…  Now open that in a screen editor, select all, go into debug, and paste. Make sure you have an extra empty line as the last line or you'll need to press Enter again.  Depending on emulation/communication circumstances you may need to break up the display rather than pasting the whole thing in.

 

That's a complete last resort if there is no built-in solution.

 

HTH

T

 

From: Scott Johnston

 

Yes, that's obvious.  I need to list EVERY variable at once.

Anthony Youngman

unread,
Jul 21, 2012, 6:59:09 AM7/21/12
to mvd...@googlegroups.com
On 20/07/12 21:16, Tony Gravagno wrote:
> For a tacky home-grown solution, I don�t recall what the option is but I
> believe you can compile a program in UV with an option to generate a
> variable mapping. Write some code to parse that and generate a stream of
> lines that look like this:
>
BASIC blah blah XREF

I think this creates a new BP.XREF file and sticks it in there, but I'm
not sure. I only really used this option on Pr1me where it stuck
everything in BP and this option created a PROGRAM.XREF file.

Cheers,
Wol

Scott Ballinger

unread,
Jul 22, 2012, 1:23:42 PM7/22/12
to mvd...@googlegroups.com
On Sunday, July 22, 2012 3:25:15 AM UTC-7, Chuck Stevenson wrote:
Does BSYM still exist in D3?

Hi Chuck,

Yes, in D3 the basic/compile (x option clears the bsym file and produces an item for each variable and label. Pretty handy except that you have to have exclusive use of the bsym file; I also use the (m option to view a list of all the variables so I can review an look for typos (the UV compiler is nicer that way).

From "compile" in D3 ref:

x  Creates a cross-reference of all the labels and variables
used in the Pick/BASIC program and stores this information in
the "bsym" file, which must exist before using. The "x" option
first clears data in the "bsym" file, then creates an item for
every variable and label used in the program, using the variable
or label name as the item-id. After creating the cross-reference
items, attribute one contains the line numbers where the
variable or label is referenced; each line number is a value.
The line number where a label is defined, or where the value of
the variable is changed is preceded by an asterisk (*). If the
variable  names and labels are in both upper and lower case, the
"d-pointer" for the "bsym" file-defining item should not have
the "s" option.

m  Generates a program "map" of the descriptor table and
correlates source code lines to generated object code frames.
Each variable in the program is listed along with its decimal
offset.


/Scott Ballinger
Pareto Corporation
Edmonds WA USA
206 713 6006

Reply all
Reply to author
Forward
0 new messages