RE: [U2] UniObjects for Java on Linux

2006-01-11 Thread PJ Velzeboer
You little beauty, thank you very much. That has solved the problem. Time to tell the boss I can deliver on my promises . Cheers PJ -Original Message- From: John Hester [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 January 2006 11:08 AM To: u2-users@listserver.u2ug.org Subject: Re:

Re: [U2] UniObjects for Java on Linux

2006-01-11 Thread Wendy Smoak
On 1/11/06, PJ Velzeboer <[EMAIL PROTECTED]> wrote: > I have an interesting problem. I have written a jsp page which queries data > from a UniVerse database using UniObjects for java (asjava.uniobjects.*). > Whenever I read a field from a file the contents of the UniString are in the > following fo

Re: [U2] UniObjects for Java on Linux

2006-01-11 Thread John Hester
PJ Velzeboer wrote: I have an interesting problem. I have written a jsp page which queries data from a UniVerse database using UniObjects for java (asjava.uniobjects.*). Whenever I read a field from a file the contents of the UniString are in the following format field1?field2?field3?filed4 etc.

[U2] UniObjects for Java on Linux

2006-01-11 Thread PJ Velzeboer
Greetings, I have an interesting problem. I have written a jsp page which queries data from a UniVerse database using UniObjects for java (asjava.uniobjects.*). Whenever I read a field from a file the contents of the UniString are in the following format field1?field2?field3?filed4 etc. Effectivel

RE: [U2] PROC Question

2006-01-11 Thread Bruce Nichol
Goo'day, Jay Jay and . At 22:29 11/01/06 +, you wrote: It's been a LONG time ... I can remember writing a whole PL suite in MDIS PROC (don't ask...) I recall that in PQN procs you could have a construct such as PQN M RI IP: IF %1 = 1]2]3]4]5 G 10]20]30]40]50 That's the MDIS (MD

Re: [U2] UniVerse call to Java class

2006-01-11 Thread John Hester
Baker Hughes wrote: Thanks to Wendy, JayJay, and Kevin who responded to my previous posts about Java. Your replies, and the docs, all indicate that the U2 Java API only accommodates calls TO UV or UD databases, or Basic subroutines. From the code examples (found, thanks Wendy), and docs, it ap

Re: [U2] UniVerse call to Java class

2006-01-11 Thread Wendy Smoak
On 1/11/06, Baker Hughes <[EMAIL PROTECTED]> wrote: > That's wild, a separate JVM for each thread? I thought it was been slow > to load but... > So, I just kicked off a runLPClientTest.sh and set the thread count to > 18. > Then from another session I did 'ps -eaf | grep java' > Only 1 process was

RE: [U2] UniVerse call to Java class

2006-01-11 Thread Baker Hughes
On 1/11/06, Wendy wrote: >I may have edited it out, but one question I had was, what kind >of volume are we talking about here? Five transactions an hour? A minute? A second? More? 300 authorizations an hour, max; 2 thousand a day, max. This is growing steadily though. >You do *not* want to

RE: [U2] UniVerse call to Java class {Unclassified}

2006-01-11 Thread HENDERSON MIKE, MR
Baker, > -Original Message- > From: [EMAIL PROTECTED] On Behalf Of Baker Hughes > Sent: Thursday, 12 January 2006 10:03 > To: u2-users@listserver.u2ug.org > Subject: RE: [U2] UniVerse call to Java class > > It looks like the closest we can get to a Java call is either: > a) embedded shell

RE: [U2] PROC Question

2006-01-11 Thread John Jenkins
It's been a LONG time ... I can remember writing a whole PL suite in MDIS PROC (don't ask...) I recall that in PQN procs you could have a construct such as PQN M RI IP: IF %1 = 1]2]3]4]5 G 10]20]30]40]50 T "Bad entry G B 10 XTEN 20 XTWENTY 30 XTHIRTY 40 XFORTY 50 XFIFTY Etc - or whatever (]

RE: [U2] UniVerse call to Java class

2006-01-11 Thread John Jenkins
The way to go is a C wrapper for the Java API - most efficient way etc You need to watch you don't "leak" though. As an alternative I would recommend putting a free-standing wrapper around a Java listener process running as a service (daemon) and having it listen on a socket stream. The UniVer

RE: [U2] ODBC Difficulties

2006-01-11 Thread Kevin King
Thanks for the heads up, I do appreciate all the different ideas about this ODBC problem, but the uid and pw are both letters and numbers, no symbols. -K --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/

Re: [U2] UniVerse call to Java class

2006-01-11 Thread Wendy Smoak
On 1/11/06, Brutzman, Bill <[EMAIL PROTECTED]> wrote: > I believe that there is a way to invoke a Unix command-line thing (program) > from within UniBasic. On UniData it's PCPERFORM. I may have edited it out, but one question I had was, what kind of volume are we talking about here? Five transa

RE: [U2] UniVerse call to Java class

2006-01-11 Thread Baker Hughes
It looks like the closest we can get to a Java call is either: a) embedded shell command in Basic Sub call b) 'Execute' a Voc pointer from Basic Sub that has a shell command Does anyone have an example of this? a & b don't offer easy way to pass arguments, do they? c) wrap the Java call in a C pro

Re: [U2] UniVerse call to Java class

2006-01-11 Thread karlp
> Thanks to Wendy, JayJay, and Kevin who responded to my previous posts > about Java. > > Your replies, and the docs, all indicate that the U2 Java API only > accommodates calls TO UV or UD databases, or Basic subroutines. > >>From the code examples (found, thanks Wendy), and docs, it appears ther

RE: [U2] UniVerse call to Java class

2006-01-11 Thread Brutzman, Bill
I believe that there is a way to invoke a Unix command-line thing (program) from within UniBasic. --Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Baker Hughes Sent: Wednesday, January 11, 2006 1:28 PM To: u2-users@listserver.u2ug.org Subject: [U2]

RE: [U2] PROC Question

2006-01-11 Thread Bob Woodward
Thanks, everyone. I got exactly the answer I was afraid I would get. Yes, my mind is fried... Because of system programming standards, I need to stay with a PROC but I was hoping to be able to streamline them a little bit. I appreciate the answers everyone offered, including the ones to quit u

Re: [U2] UniVerse call to Java class

2006-01-11 Thread Gordon J Glorfield
I don't even know if this is possible as I'm not a C or Java programmer. UV has the GCI (General Call Interface) that allows it to make calls to external subroutines written in C, C++ and Fortran 77. It seems to me that you should be able to create a "wrapper" in C++ that would call the Java A

RE: [U2] PROC Question

2006-01-11 Thread u2
Wouldn't you rather just rewrite the proc in basic? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Bob Woodward > Sent: Wednesday, January 11, 2006 12:35 PM > To: U2-Users List > Subject: [U2] PROC Question > > > Hi folks, > > I can't find anyth

RE: [U2] PROC Question

2006-01-11 Thread Brian Leach
The only sensible ways are: 1. Subroutines GOSUB n n MV #1 "blah" P .. RSUB 2. Ext subroutines C has commands [file someproc] 3. Execute something sensible like a paragraph and give up using ugly PROCs Brian "Like PROC - ugly but works" -Original Message- From: "Bob Woodward"<[

RE: [U2] ODBC Difficulties

2006-01-11 Thread colin.alfke
That's right - I also had a problem with a user that had a password with a symbol in it. I don't recall which - I think it was just the "$". Colin >-Original Message- >From: robert dunnmiller > >I encountered an issue with ODBC connectivity, very similar to >what you are reporting. The

RE: [U2] PROC Question

2006-01-11 Thread Bill Haskett
Bob: I used to be pretty proficient in PROC and have never heard of this...but that doesn't mean it doesn't exist. :-) Bill > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Bob Woodward > Sent: Wednesday, January 11, 2006 9:35 AM > To: U2-Users

RE: [U2] PROC Question

2006-01-11 Thread Paul Sohn
Why not form GO TO blocks? Example: 5 C Print Menu T C O MENU 10 C Input Menu Option IP IF A = 1 GO 100 IF A = 2 GO 200 IF A = 3 GO 300 GO 10 100 C First menu Option HRUN USER.PL BASIC.PGM1 P HRUN USER.PL BASIC.PGM2 P GO 5 200 C Second Menu Option HRUN USER.PL BASIC.PGM4 P HRUN USER.PL BASIC

RE: [U2] PROC Question

2006-01-11 Thread Mark Eastwood
Maybe something like this? IF A = 5 G 500 ... 500 C [USER.PL BASIC1 [USER.PL BASIC2 G 10 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Woodward Sent: Wednesday, January 11, 2006 10:35 AM To: U2-Users List Subject: [U2] PROC Question Hi folks, I c

[U2] UniVerse call to Java class

2006-01-11 Thread Baker Hughes
Thanks to Wendy, JayJay, and Kevin who responded to my previous posts about Java. Your replies, and the docs, all indicate that the U2 Java API only accommodates calls TO UV or UD databases, or Basic subroutines. >From the code examples (found, thanks Wendy), and docs, it appears there is no UV c

Re: [U2] PROC Question

2006-01-11 Thread Glenn Herbert
That type of functionality is not possible (unless PROC has been modified since I worked in it) - that's the reason you can't find anything in the documentation. You have a choice of doing it the way you are, or using GOSUB/GOTO to define the multiple lines as a "subroutine". __

RE: [U2] ODBC Difficulties

2006-01-11 Thread Kevin King
Thanks Robert. The user ID is currently 4 characters and the password is currently 7. -k --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/

[U2] PROC Question

2006-01-11 Thread Bob Woodward
Hi folks, I can't find anything in the IBM Doc's for ProVerb's that tells me how to create an entry that will allow me to put multiple commands on a single line. In a nutshell, from a "menu" when a user selects an option, I want to be able to execute multiple commands. Currently, I use multiple

RE: [U2] ODBC Difficulties

2006-01-11 Thread [EMAIL PROTECTED]
I encountered an issue with ODBC connectivity, very similar to what you are reporting. The solution (as incomprehensible as it sounds) was the length of the user name and password. Once I used a user ID that was 8 characters (or less) and a password that was 9 characters (or less), my connectivity

[U2] Training resources in India.

2006-01-11 Thread Richard Taylor
Does anyone out there have any information regarding U2 training availability in India? In particular the Kolkata area of India. Rich Taylor | Senior Programmer/Analyst --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/

[U2] UV: Other ways of replicating?

2006-01-11 Thread Michael Doyle
UniVerse users, Recently, we've been looking at ways of developing a high availability cluster for our production UniVerse environment. Thanks to www.linux-ha.org we've been able to install two machines at different locations (cities twenty miles apart) and if the primary machine drops, users can

RE: [U2] ODBC Difficulties

2006-01-11 Thread colin.alfke
Rats, that was my best guess - unless it's some kind of "domain" type issue. (I don't give up easy do I?) Which version of the driver are you using? There were different drivers with the 6.0a and 6.0b client CD's, I might have even gotten a patched one from IBM. I always use the System DSN. I thi

RE: [U2] ODBC Difficulties

2006-01-11 Thread Kevin King
I forgot to mention that I'm using the same user ID on both systems, so it would seem that it's not the privilege file. Also, the fact that the errors get returned immediately - as if it doesn't even make an effort to connect - makes me think something is amiss with the driver. There should be no

RE: [U2] DATE conversion problem

2006-01-11 Thread asvin . dattani
Hi, Universe defaults to American style date format. To get round this, I explicitly set european date format when I create the session object: sess.command("DATE.FORMAT ON") where sess is the session object. hth, cheers, asvin [EMAIL PROTECTED] wrote on 11/01/2006 11:08:40: > REPOSTED FOR

RE: [U2] DATE conversion problem

2006-01-11 Thread u2ug
REPOSTED FOR NONMEMBER: "Kryka, Richard" <[EMAIL PROTECTED]> I have a specific problem whereby any formatting I do using UniObjects always gives me the date in US format even though all PC settings say UK settings. I think that UniObjects goes back to the UniVerse system for date conversions.