Re: [U2] Java UniCommand

2005-08-23 Thread Wendy Smoak

From: "Rick Ward" <[EMAIL PROTECTED]>


We've recently started investigating the UniVerse java
interface. We're able to set up a connection, read
files, and execute simple commands, but I'm having a
problem getting on of my commands to run and return
any results.


I use UOJ extensively and would be glad to help, *but* I would suggest 
ditching UniCommand almost immediately in favor of UniSubroutine.


Invariably, you need to do more than one thing before returning a result. 
It's far better to make one call, have it do its thing, and then return one 
result (or more-- you have access to all the subroutine parameters).


What's the end goal here, to generate some XML from U2 and get it back to 
the Java program?


--
Wendy Smoak 
---

u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] Java UniCommand

2005-08-23 Thread Rick Ward
We've recently started investigating the UniVerse java
interface. We're able to set up a connection, read
files, and execute simple commands, but I'm having a
problem getting on of my commands to run and return
any results.

I've copied a code snippet below that shows two LIST
statements being run through the UniCommand interface.
The first statement (which executes quickly at the
command line) returns the expected result text to the
UniCommand.response() method. The second statement
takes a few moments to run from the command line (but
runs properly - ES.POPULATION is a phrase in the AC
dict that specifies my desired population), and it
does not return the expected data to the response()
method. It also returns a 0 to status(), suggesting
that server has processed the command and has finished
with it.

Does anybody have any advice?

Rick

code below

 //first I try to run a simple query that
returns a result quickly
 String stringSelect = "LIST AC 65432101 NAME
CURR.SERV ACC.STATUS TOXML ELEMENTS";
 UniCommand uniSelectCommand =
uSession.command();
 uniSelectCommand.setCommand(stringSelect);
 System.out.println("EXECUTE: "+stringSelect);
 uniSelectCommand.exec();
 System.out.println
(uniSelectCommand.status());
 System.out.println
(uniSelectCommand.response());
 System.out.println
(uniSelectCommand.status());
 //that works fine
 
 //then I try to run a query that takes a bit
of time to return a result
 stringSelect = "LIST AC ES.POPULATION TOXML
ELEMENTS";
 uniSelectCommand.setCommand(stringSelect);
 System.out.println("EXECUTE: "+stringSelect);
 uniSelectCommand.exec();
 System.out.println
(uniSelectCommand.status());
 System.out.println
(uniSelectCommand.response());
 System.out.println
(uniSelectCommand.status());
 //this doesn't





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] Solaris and Unidata

2005-08-23 Thread George Smith
I have a licensed copy of unidata 7.1 running on windows but would love
to try unidata 7.1 on Solaris 10.



I can not see the free Solaris 2 user system download on the IBM site.
Anyone know how I could try this.



Also, has anyone used the c#.net running on a windows client connected
to a Solaris box.



Thanks.







George R Smith

Programmer / Analyst

479.684.3382   direct

479.684.3403   fax

www.budgetext.com 



CONFIDENTIALITY NOTICE: The materials in this electronic mail
transmission (including all attachments) are private and confidential
and are the property of the sender. The information contained in the
material is privileged and is intended only for the use of the named
addressee(s). If you are not the intended addressee, be advised that any
unauthorized disclosure, copying, distribution or the taking of any
action in reliance on the contents of this material is strictly
prohibited.  If you received this electronic mail message in error,
please immediately notify the sender by telephone at 888-869-0366 or
send an electronic message to [EMAIL PROTECTED], and thereafter,
destroy the electronic message immediately.

[demime 1.01d removed an attachment of type image/gif which had a name of 
image001.gif]
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Undefined Vars

2005-08-23 Thread Stuart Boydell
3rd time lucky? What I was trying to say before my e-mails got very rudely
truncated by the listserver was...

> On unidata I'm looking for a way to test if a variable has been defined
> or not. 

In UV basic there are ASSIGNED() and UNASSIGNED() functions. I thought the
UNASSIGNED() one originally came from UD and the ASSIGNED was added later (in
UV) for symmetry ...
Try something like this:
if unassigned(comvar) then gosub SetUpCommon:
Cheers. S
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/