RE: [U2] The best way to access SQLServer from UV

2007-06-27 Thread Ross Craig
Universe BCI works very well.

http://212.241.202.162/kb/kbview.wsp?id=9

Ross


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jerry Banker
Sent: Wednesday, June 27, 2007 6:10 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] The best way to access SQLServer from UV

I know this question has come up before but there have been many new
developments in Universe including a whole new release so I'm going to
ask it anyway. Also I know that it sometimes it's a matter of what you
have been taught.

What is the best way to get information to and from a SQLServer database
using Universe Basic?

I would prefer to hear about built in features and not outside sources.
Not that I don't appreciate that you guys have some wonderful products
but we have a fully qualified staff of programmers here and other than
the operating systems we have pretty much developed everything we have
in-house.

We are running Red Hat Enterprise Linux AS release 3 with uniVerse
10.1.12 Reality flavor. The SQLServer will be on a Windows 2003 Server
and most likely the latest version of SQLServer. We are not opposed to
upgrading the Linux or uniVerse if that would give us more to work with.



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


RE: Re:[U2] New UV system

2007-06-14 Thread Ross Craig
Serial devices such as printers, bar-code scanners, and terminals work
fine on Windows.  Use Lantronix terminal servers and print servers to
connect the devices.  You can set up the printers as standard TCP/IP
printers and use a generic text driver to print from UV.

Ross


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anthony
Youngman
Sent: Thursday, June 14, 2007 6:29 AM
To: u2-users@listserver.u2ug.org
Subject: RE: Re:[U2] New UV system

Your memory is faulty :-( though I would advise people to do what you
suggest.

We've had serial cards plugged in the back of servers and they worked
fine (when they worked...). But if you have any sense, you do tend to
stick a network card into a printer, or plug it into a dedicated
printserver box (even there, I had nightmares getting serial printers to
work - parallel was fine).

You can get Windows to print to a serial port on a terminal server -
been there done that got the t-shirt - but don't ask me how, it's too
long ago (Prime LTS300s and a Shiva Atom).

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


RE: [U2] Triple-DES Encryption - Java question for U2 group

2007-06-07 Thread Ross Craig
Try this:

http://www.acme.com/java/software/Package-Acme.Crypto.html

Ross


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of George R Smith
Sent: Tuesday, June 05, 2007 9:00 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] Triple-DES Encryption - Java question for U2 group

All,

I am testing the 7.1 ENCRYPT function (Unidata). Previous to 7.1 you
could
not encrypt in a language such as C# and have the Unibasic ENCRYPT
function
decrypt a string. I believe that IBM has fixed this in 7.16 therefore
the
test.

My problem is that (sad to say unlike C# but now I must use Java) it is
hard
to find code in Java to produce the base64 encrypted string IF YOU HAVE
TO
USE THE FOLLOWING PARAMETERS.

KEY= "1234ABCDEF&&ABCDEFGH1234"  - Length = 24
KEY.SALT   = "01234567"  - Length = 8
IV = "1ABCDEF1"  - Length = 8

What I am trying to do is produce an encrypted string in Java using the
above paramerters and give it to Unidata decrypt it (that program is
written
and working).

I also have to base64 encode the encrypted string.

The following code is what I have so far - can someone help or point me
to
another newsgroup. Notice that I have not found out how to pass in the
salt
value.


String instr = "This is the string to be Encrypted";
String b64es;
String decstr;
byte[] encrypted;
byte[] toEncrypt;
byte[] fromEncrypt;
byte[] es;

byte[] myKey = "1234ABCDEF&&ABCDEFGH1234".getBytes();
byte[] iv= "1ABCDEF1".getBytes();
   
try
{
  System.out.println("Start of Encryption Test");
  
  // Prepare for Encryption
  IvParameterSpec ivParameterSpec = new IvParameterSpec(iv);
  
  
  DESedeKeySpec keySpec = new DESedeKeySpec(myKey);
  SecretKeyFactory secretKeyFactory =
SecretKeyFactory.getInstance("DESede");
  SecretKey secretKey = secretKeyFactory.generateSecret(keySpec); 
  
  Cipher cipher = Cipher.getInstance("DESede/CBC/PKCS5Padding");
  cipher.init(Cipher.ENCRYPT_MODE,secretKey);
  // cipher.init(arg0, secretKey, ivParameterSpec)

  // Get encrypted array of bytes.
  toEncrypt = instr.getBytes();

 // Encrypts byte data
  encrypted = cipher.doFinal(toEncrypt);

 int keySizeInBits = keySpec.DES_EDE_KEY_LEN;
 System.out.println("Effective key size is " + keySizeInBits + "
bits.\n");

 // get the cipher algorithm
 String alg = cipher.getAlgorithm();
 System.out.println("Algorithm " + alg);
//  
//  // get the Key
//  System.out.println("Input Key : " + new
String(key.getEncoded()));
//  
//  // get the IV
//  System.out.println("Input IV : " + new String(cipher.getIV()) +
"\n");
//  
  // Base 64 Encode the encrypted string
  b64es = new BASE64Encoder().encodeBuffer(encrypted);
  System.out.println("Base64 encrypted output : " + b64es);

  // decrypt
  // Convert base64 encrypted string to encrypted byte array 
  es = new BASE64Decoder().decodeBuffer(b64es);

  // Initializes thE cipher
  cipher.init(Cipher.DECRYPT_MODE,secretKey);

  // decrypt byte array
  fromEncrypt = cipher.doFinal(es);

  // convert byte array into string
  decstr = new String(fromEncrypt);
  System.out.println("Input string : " + instr);
  System.out.println("Output string : " + decstr);
  
}
catch (Exception e)
{
  System.out.println("Error : " + e);
}
  }
}



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


RE: [U2] Connecting to a remote Universe server in Universe Basic

2007-05-01 Thread Ross Craig
The BCI is very useful and easy to use.

This will get you started:
http://212.241.202.162/kb/kbview.wsp?id=9

Ross

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Lin
Sent: Tuesday, May 01, 2007 4:47 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Connecting to a remote Universe server in Universe
Basic

On Tue, 1 May 2007, Hona, David S wrote:

> If you don't want to purchase any third-party software or add-on
modules
> for UV and still code it in BASIC, then the BASIC Call Interface (BCI)
> is the way to go. Depending on your UV release, you may need to
"enable"
> the UCI/BCI module - later releases it isn't necessary to do (check
your
> UV UCI/BCI Guide).

I will look at the manuals for UCI/BCI and see if there is anything
useful.

Thanks for the suggestion.

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


RE: [U2] Universe on Windows login setup

2007-04-24 Thread Ross Craig
Maybe you can fake it by running the DOS command at the end of your UV
login paragraph.

Ross
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of IT-Laure Hansen
Sent: Tuesday, April 24, 2007 2:11 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] Universe on Windows login setup

Hello,

A vendor is asking me to set up a login on our Universe server (Win2003
server/UV 10.2.3) with "direct access to the OS" when logging in via
Telnet. Pretty much no matter how I set it up, the login ends up at a
TCL prompt. I can't picture the login ending at a DOS prompt considering
that Universe telnet services are running - and need to be - and am
actually wondering whether it is even possible.

Does anyone have experience with such a set up?

Thanks in advance,

Laure Hansen,
City of Redwood City
Information Technology
www.redwoodcity.org 
1017 Middlefield Road
Redwood City, CA 94063
Tel: 650-780-7087
Fax: 650-556-9204
[EMAIL PROTECTED] 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Sending to the HOLD file

2006-11-29 Thread Ross Craig
LPTR

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Woodward
Sent: Wednesday, November 29, 2006 4:25 PM
To: U2-Users List
Subject: [U2] Sending to the HOLD file

Hi folks.

I'm pulling what little hair I have left out by the roots trying to
figure out what I thought would be a simple process from TCL.  I just
want to be able to send an AD-HOC report to the HOLD file without having
to go through a PROC.  I thought it was just going to be an SP-ASSIGN
command then run the report with the (P option but I now know that won't
get it.  Can anyone offer up a Q&D TCL command for this?

Thanks,

Bob Woodward
Senior Programmer/Analyst
Harbor Wholesale Grocery
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Why does the IF statement think these values are different?

2006-11-08 Thread Ross Craig
I haven't been following this so someone may have suggested this
already.  Try adding zero to both sides of the comparison to force both
to numbers.

Ross


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve Ferries
Sent: Wednesday, November 08, 2006 7:17 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Why does the IF statement think these values are
different?

HI All,

Try the ABS() function
No, this had no effect.
 
>Don't know if you have already checked but what is your wide zero set
to in uvconfig? It is a hex number.
WIDE0 0x3dc0

I have called our vendor for support on this, but their recommendation
is leave it alone, but grudgingly they will find out what it could be
set to.

>Another solution is to use string maths...look at SADD,SDIV,SMUL &
SSUB..

I tried this:
 CUSTOMCALC: 451:  PRINT INTREC:'  ':PRNREC:' # ':INTPAY:'  ':PRNPAY
:: S
24016.35  978.56 # 24016.35  978.56
 CUSTOMCALC: 452:   IF SADD(INTREC,PRNREC)# SADD(INTPAY,PRNPAY) THEN
:: S
 CUSTOMCALC: 458: IF PFLAG THEN

The above worked. I would still like to 'see' what the system thinks is
the difference when performing INTREC+PRNREC#INTPAY+PRNPAY, and why I
can't make it work with type NUMBERS instead of type STRING.

This code has been in production for 15 years, and this is the first
time I have had to look at this.

I will wait to see what the vendor says about WIDE0.

Thanks for all the help and suggestions.

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


RE: [U2] [UD] Compilation Failed...

2006-10-24 Thread Ross Craig
Here's a long shot.  Try formatting the code with the Format command
before you compile.  See if the Format command runs without errors.

Ross

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, October 24, 2006 5:27 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] [UD] Compilation Failed...

Make sure that you have "modify" rights in the BP directory.

Hth
Colin Alfke
Calgary Canada 

>-Original Message-
>From: David Wolverton
>
>Well ... It does not appear to be TEMP related...
>
>Example:
>
>TEST>BASIC BP IMPORT.CLIENTS
>Compiling Unibasic: \STUFFHERE\BP\IMPORT.CLIENTS in mode 'p'.
>
>compilation failed 
> 
>TEST>COPY BP IMPORT.CLIENTS  
>TO: TESTING2
>
>1 records copied
>
>
>TEST>BASIC BP TESTING2 
> 
>Compiling Unibasic: \STUFFHERE\BP\TESTING2 in mode 'p'.  
>compilation finished
>
>
>SO... I cannot compile the EXISTING program, but if I copy the 
>source it to a new name, I **CAN** compile it.  So there is 
>some permissions settings on the EXISTING object code 
>(_progname) file that is the issue -- the problem is figuring out what.
>
>I guess I'll just have the user compare the security of the 
>two object codes to see what is different - as bad as I hate that!
>
>If this extra information rings bells, please let me know...
>
>
>David W.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Citrix with Universe

2006-05-12 Thread Ross Craig
Try VNC, it's free.

Ross


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Pflugfelder
Sent: Friday, May 12, 2006 11:49 AM
To: u2-users
Subject: [U2] Citrix with Universe

Does anyone out here have experience with Citrix as it pertains to
Universe?

We have some customers / prospects that use Macs as their desktop
computer and would like to connect to our app.  Our front-end is written
in Visual Basic and doesn't run on the Mac.  Someone from sales just
mentioned that we might be able to use Citrix to get the app to a Mac.
So, does Citrix have a Mac client?  Does anyone have any war stories
from an implementation or anything like that?

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


RE: [U2] Universe users under Win2003

2006-02-15 Thread Ross Craig
Allow regular users permission to modify files in your UV directory.

Ross


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeff Schasny
Sent: Wednesday, February 15, 2006 12:53 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] Universe users under Win2003

I know this has been asked before but I was not paying attention

I have just loaded up the latest Universe PE on a win 2003 server. I can
log
in as administrator but not as an regular user. What do I have to do to
make
this happen?


Jeff Schasny | Westminster, CO, USA | [EMAIL PROTECTED]



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.9/261 - Release Date:
2/15/2006
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Telnet on Windows 2003 Server

2006-02-01 Thread Ross Craig
It's a file permission issue.  You need to allow non-admin users
permission to write to the UV directory.  Do not share this directory.

Ross


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Randall
Sent: Wednesday, February 01, 2006 3:20 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] Telnet on Windows 2003 Server

On a fresh install of UV on Windows 2003 server, only admin users can
telnet
in.   

Any ideas?

TIA

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


RE: [U2] Java Platform Struggles

2006-01-23 Thread Ross Craig
I use Webstart from Sun to launch Swing apps.   It's free and works
well.  

You can use Eclipse to package your application into a jar file that can
be distributed from your web server.  Your users see icons on their
desktops for each of your applications.  All applications are loaded
into the temporary internet files directory on each workstation. 

Ross

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brutzman, Bill
Sent: Monday, January 23, 2006 12:25 PM
To: 'u2-users@listserver.u2ug.org'
Subject: RE: [U2] Java Platform Struggles

My Java fantasy...

Host a Swing-Menu application on our HP-Ux box such that Windows users
can
launch this Swing-Menu by clicking on a Windows desktop icon.

The Swing-Menu would allow end-users to choose and launch Swing
applications.  Swing apps would be re-written green-screen legacy
programs.

I guess that this Eclipse (or NetBeans) project would have an EJB that
would
connect to the UniObjects proxy thing.
Thus, the UniBasic business logic would reside on the same HP-Ux box.

Most of the applications would be Swing-GUI, someday there would be
Java-Web-Applets for off-site users.

Of course, I do not yet have an entirely clear picture of how to make
this
work.  Suggestions would be appreciated.

Thanks to Wendy, Ross, Jeff, and John for responding.

--Bill





Thanks to those who wrot

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wendy Smoak
Sent: Monday, January 23, 2006 11:27 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Java Platform Struggles


On 1/23/06, Brutzman, Bill <[EMAIL PROTECTED]> wrote:

> I am writing to inquire... what Java tools are people using with U2?
>
> We have UniVerse running on HP-Ux.

What do you mean by 'tools'?

We use the JDK/JRE from HP.  We're on 1.5.0.01 at the moment, from June
2005.  There might be a newer one out there.  In my experience, HP's JVM
can
be a little flaky, but no major problems.

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


RE: [U2] Java Platform Struggles

2006-01-23 Thread Ross Craig
Start with Eclipse and Tomcat.  You will need the Sysdeo Tomcat plugin
for eclipse from http://www.sysdeo.com/eclipse/tomcatplugin  Install
Tomcat onto your PC to run your code.

Get the UniSessionFactory working first.  The code is at:

http://www.pickwiki.com/cgi-bin/wiki.pl?JavaSource

Use JDOM and U2 XML in a basic subroutine to move objects between Java
and U2.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wendy Smoak
Sent: Monday, January 23, 2006 8:27 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Java Platform Struggles

On 1/23/06, Brutzman, Bill <[EMAIL PROTECTED]> wrote:

> I am writing to inquire... what Java tools are people using with U2?
>
> We have UniVerse running on HP-Ux.

What do you mean by 'tools'?

We use the JDK/JRE from HP.  We're on 1.5.0.01 at the moment, from
June 2005.  There might be a newer one out there.  In my experience,
HP's JVM can be a little flaky, but no major problems.

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


RE: [U2] XML Extraction

2006-01-16 Thread Ross Craig
Try this instead:

http://www.informix.com/U2-xml";>
...


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Burwell, Edward
Sent: Monday, January 16, 2006 2:29 PM
To: 'u2-users@listserver.u2ug.org'
Subject: [U2] XML Extraction

I am on UniData 6.1 (AIX) and I have an XML doc that I would like to
extract
data from and it looks like this:



   
  
 12345
 EX-50
 12/14/2004
  
  
 ESS123456
 Approved
  
  
 ESS1234
 90.50
 Credit Card
  
  
 ESS1345
 
  
   


---

My .EXT file looks like this: (so far)


http://www.ibm.com/U2-xml";>






-

I can run:

PREPARE.XML "_XML_/FROM_ESS" junk_xml 

and it runs ok.  I can also run:

RELEASE.XML junk_xml 

and it runs ok.

-

But when I run:

list XMLDATA junk_xml "_XML_/TEST.EXT" ESS.ID

I get:

Open XML data file failed.
XMLParser error message: U2XMAP/U2XML_extraction: Illegal U2XMAP file,
missing t
he .

Open file error.

Any help would be GREATLY appreciated

Thanks in advance

Ed Burwell
973-361-5400 ext. 1512
[EMAIL PROTECTED]

__
This e-mail has been scanned by MCI Managed Email Content Service, using
Skeptic(tm) technology powered by MessageLabs. For more information on
MCI's Managed Email  Content Service, visit http://www.mci.com.
__
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UniSubroutine: ErrorCode: 30106: Wrong number of arguments supplied to the subroutine

2005-08-30 Thread Ross Craig
Check to see where the subroutine is actually cataloged from.  You may
be working with the wrong subroutine source code.

Ross

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rick Ward
Sent: Tuesday, August 30, 2005 8:32 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] UniSubroutine: ErrorCode: 30106: Wrong number of arguments
supplied to the subroutine

Does anyone have any idea why one would encounter
"ErrorCode: 30106, Wrong number of arguments supplied
to the subroutine" when the correct number of
arguments are being supplied to the subroutine?

Thank you,

Rick

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UV9 on Linux w/ UniObjects

2005-08-03 Thread Ross Craig
Add the following to your i18n file:

LANG="en_US"
SUPPORTED="en_US:en"


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin King
Sent: Wednesday, August 03, 2005 1:32 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] UV9 on Linux w/ UniObjects

I thought the same thing, but it doesn't make sense that all
delimiters would have the same value, and even if so, "why"?  What
setting might is causing this?

Huh.  Just looking at this again I wonder if he might have misstated
and it's really -1, -2, and -3 (as 16 bit unsigneds)?  If so, it might
just be a simple wordlength issue, but still that doesn't give me much
of a clue as to how to compensate.

-Kevin
[EMAIL PROTECTED]
http://www.PrecisOnline.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Walker
Sent: Wednesday, August 03, 2005 2:13 PM
To: 'u2-users@listserver.u2ug.org'
Subject: RE: [U2] UV9 on Linux w/ UniObjects

Just a guess here, but are they possibly being converted to Unicode?
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Include Equate record Errors Compiler

2005-03-14 Thread Ross Craig
If you use UniDebugger to edit the included files, format them with the
command line FORMAT command before you complie.

Ross


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, March 14, 2005 10:12 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Include Equate record Errors Compiler

It is possible .. I use TextPad and have for years .. but this is a new
client .. who knows.

I have noticed that since this problem started ...

if I don't leave a blank at the end of equates the compiler will simply
stop at the include.  It just locks up the session and there is no way
to kill the process/user/port.  I now have 7 sessions (6 hung) from
this mornings tracking .. 

I have never seen anything like this.

DSig
David Tod Sigafoos
SigsSolutions, Inc.


>  Original Message 
> Subject: RE: [U2] Include Equate record Errors Compiler
> From: "Brian Leach" <[EMAIL PROTECTED]>
> Date: Mon, March 14, 2005 9:09 am
> To: 
> 
> Dave,
> 
> Just a thought - what are you using to edit the INCLUDE source? It is
> possible that the last line of the file does not end in a CRLF or LF
> (depending on the OS). I've seen that cause similar problems. 
> 
> If that is the case, go into each include in ED and FILE it.
> 
> Brian 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > [EMAIL PROTECTED]
> > Sent: 14 March 2005 16:25
> > To: U2 Users List
> > Subject: [U2] Include Equate record Errors Compiler
> > 
> > Okay .. this one has got me ..
> > 
> > The program below will not compile.  It compiler responds with ..
> > 
> > *--
> > 01 basic DAVES.BP DEMO.MV 
> >   
> >
> > Compiling: Source = 'DAVES.BP/DEMO.MV', Object = 
> > 'DAVES.BP.O/DEMO.MV'   
> >
> > **
> > **?
> ---
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] XML extraction file

2004-12-28 Thread Ross Craig
Could someone please help me with the XPath syntax for extracting an
element from an xml file with a particular attribute value?  The xml
data file has several different comments elements in it and I would like
to extract each one into the dynamic array that the rest of the xml file
is extracted into using UniVerse basic.  My basic program is able to
extract all of the other data from the xml file.

Extraction file data:


Xml file data:
Some shipping comments

Ross Craig
Alaska Diesel Electric
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] IBM positioning Linux against Microsoft

2004-05-20 Thread Ross Craig
All of us know that a green screen enables people to be much more
productive than a GUI

-- You need to learn how to write a better GUI.

Ever head of MVC?  The display logic used in an application has nothing
to do with what kind of database you use to store the data.

Ross Craig
Alaska Diesel Electric


-Original Message-
From: Tony Gravagno [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 20, 2004 11:59 AM
To: [EMAIL PROTECTED]
Subject: RE: [U2] IBM positioning Linux against Microsoft

Whenever I propose that people take their existing apps, do some
marketing,
and make a go of it in the mainstream world, the conversation often
turns
toward "but we need more tools".  People want the magic silver bullet
that
will make their procedural code into event-driven, their green screens
into
GUI, and their MV data structures into relational tables.  While
integration
with DB2 and other technologies is a good idea, my focus is on the
wealth of
business rules that already exist and are fully usable right where they
are.

The silver bullet will never come, so people must decide if they are in
business to grow, or if they only want to stay in business long enough
to
retire.  IBM is sitting on assets (you guys and your apps) that can be
posititioned now against mainstream offerings if people are actually
willing
to compete at the feature level rather than at the asthetic level.  I
understand that Joe Businessman has an average IQ of 23 but "it has to
be
GUI" is not a valid business position.  All of us know that a green
screen
enables people to be much more productive than a GUI - GUI has had long
enough to hang itself and to prove that "pretty" is neither fast, nor
does
it imply functional.  MV resellers need to stop coming up with excuses
why
their technology won't sell and putting it on someone else to develop
the
"whatever it is" they need to move forward.  If GUI is the only thing
stopping an app from going mainstream then there are tools in our market
to
address that issue.  I'll be happy to help people migrate their apps to
GUI
and integrate with GUI technologies if that's what it takes, but "GUI"
cannot be the strategy, "GUI" is one tactical step among many.  IBM has
solid positioning for those other tactical steps that VARs need to take
in
order to get their apps out there.  That is all I'm suggesting - that
IBM
should use its business strength to market and popularize MV technology
and
business apps, not that they should continue with years of development
to
make these apps look like everything else out there.  This is a business
initiative, not a technical one.  I think Joe Businessman may be ready
for
that.

Tony
Nebula R&D
 
> Do you mean the upcoming upgrade that will 'support' direct 
> use of DB2 files instead of Uniwhatever?
> 
> Or a conversion of Unibasic/Query/Proc into native mode DB2?
> Roger
> 
> > Um, I think IBM calls this an os/400...
> >
> > Face it.  If IBM is smart, they won't reinvent the wheel 
> > with UniVerse 
> > or UniData, they will provide a set of tools that will extract the 
> > application and host it on os/400, DB/2 or something else that they 
> > have put bucket loads of cash into over the years.
> > Don Kibbey
---
u2-users mailing list
[EMAIL PROTECTED]
http://www.u2ug.org/listinfo/u2-users
---
u2-users mailing list
[EMAIL PROTECTED]
http://www.u2ug.org/listinfo/u2-users


RE: [U2] Error 30107 when calling SubRoutines from UniObjects

2004-05-19 Thread Ross Craig
You should test all of your subroutines by calling them from universe
before trying to get them to work in VB.  You can use the debugger to
step through your code.  Create a calling program in universe to pass
the subroutine the necessary parameters.

Ross Craig
Alaska Diesel Electric

-Original Message-
From: peter watson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 19, 2004 7:12 AM
To: [EMAIL PROTECTED]
Subject: [U2] Error 30107 when calling SubRoutines from UniObjects

Hi
I am having problems with getting a response from any subroutine

I get error number 30107 = The subroutine failed to complete
successfully

I have even tried setting Arg(0) to "" but nothing seems to work can
anyone help me please.

here is my code if anyone can tell me why its not working.

Public Function doSubRout(ByVal sRoutine As String, Optional ByVal
Params As String = "") As String
' if Connection failed exit function
If Not Connect() Then
MsgBox("No Connection", MsgBoxStyle.Critical)
Exit Function
End If

Dim myErr As New UniErrors

' Exception on UniObjects Error
m_uniobject.ExceptionOnError = True

' Create subRoutine Object
Dim cu As Object = m_uniobject.Subroutine("MVACNOT", 4)

If m_uniobject.Error <> 0 Then
MsgBox("Error: (" & m_uniobject.Error & ") " +
myErr.getErrStr(m_uniobject.Error))
End If

Try
' Get date in Universe format
Dim Tod As New UniDate
Dim sDate As String = Tod.GetUniDate(DateAdd(DateInterval.Day, 20,
Now)).ToString()

'cu.Resetargs()

' Set subRoutine arguments
cu.SetArg(0, "")
If cu.Error <> 0 Then
MsgBox("Error: (" & cu.Error & ") " + myErr.getErrStr(cu.Error))
End If
cu.SetArg(1, "ZA4")
If cu.Error <> 0 Then
MsgBox("Error: (" & cu.Error & ") " + myErr.getErrStr(cu.Error))
End If
cu.SetArg(2, sDate)
If cu.Error <> 0 Then
MsgBox("Error: (" & cu.Error & ") " + myErr.getErrStr(cu.Error))
End If
cu.SetArg(3, "OW")
If cu.Error <> 0 Then
MsgBox("Error: (" & cu.Error & ") " + myErr.getErrStr(cu.Error))
End If

' call the subRoutine
cu.call()

If cu.Error <> 0 Then
MsgBox("Error: (" & cu.Error & ") " + myErr.getErrStr(cu.Error))
Else
' Display results
MsgBox("Args: " & cu.GetArg(0) & "," & cu.GetArg(1) & "," & cu.GetArg(2)
& "," & cu.GetArg(3))
End If

Disconnect()
Catch ex As Exception
' Error handling
If cu.Error <> 0 Then
MsgBox(ex.Message + vbCrLf + "UniVerse : Error: (" & cu.Error & ") " +
myErr.getErrStr(cu.Error))
End If
Disconnect()
System.GC.Collect()
Return ""
End Try

' Return Result
Return "Args: " & cu.GetArg(0) & "," & cu.GetArg(1) & "," & cu.GetArg(2)
& "," & cu.GetArg(3)
End Function


This is the first line of the subRoutine I need to call
SUBROUTINE MVACNOT(RETURN.SUPPLIER,ACCOM.CODE,REPORT.DATE,SEARCH.TYPE)

When the system calls this subroutine internally it uses the following

SUBR("MVACNOT",@ID,'DATE()','OW')

Pete





The information in this electronic mail message is Confidential and may
be legally privileged.
It is intended solely for the addressees. Access to this internet
electronic mail message by anyone else is unauthorized.
If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken
in reliance on it is prohibited and may be unlawful. The sender believes
that this E-mail and any attachments were free
of any virus, worm, Trojan horse, and/or malicious code when sent.
This message and its attachments could have been infected during
transmission. By reading the message and opening any
attachments, the recipient accepts full responsibility for taking
protective and remedial action about viruses and other
defects. The sender's employer is not liable for any loss or damage
arising in any way from this message or its attachments.
-VRG3a-
---
u2-users mailing list
[EMAIL PROTECTED]
http://www.u2ug.org/listinfo/u2-users
---
u2-users mailing list
[EMAIL PROTECTED]
http://www.u2ug.org/listinfo/u2-users