Greg Schraiber | 3 Feb 2009 17:29
Favicon

[U2] unibasic's sort function

I have a dynamic array built like this:

LIST = ""

KEY = CONDES.DESIGNATION : "*" : CONTRIB.DONOR.DATE : "*" : ID.NO

IF LEN(LIST) = 0 THEN

 LIST = KEY

END ELSE

 LIST :=  <at> AM : KEY

END

When I do:

LIST = SORT(LIST) in Unibasic, compil and run it, it returns LIST=0

Can anyone tell me what I am doing wrong?

Thanks for your help!

Greg Schraiber

Beloit College
-------
u2-users mailing list
u2-users <at> listserver.u2ug.org
(Continue reading)

doug chanco | 3 Feb 2009 17:44
Favicon

[U2] converting universe files between aix/linux

hey all,
    I am attempting to make a QA virtual universe system and I think I 
am going to have a big Indian/little Indian issue (when moving the 
databases from aiz to linux), I seem recall that there was some tool 
available to convert the databases but for the life of me I cannot 
remember what its called.

Also if anyone has any tools they already developed to do this and would 
be willing to share I would greatly appreciate it as well as any gotchas 
you may have run across doing such a conversion

thanks

dougc
-------
u2-users mailing list
u2-users <at> listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Dave Laansma | 3 Feb 2009 17:56

RE: [U2] unibasic's sort function

I am not sure about the  SORT, but I would suggest simply:

LIST = ""
KEY = ....
LIST<-1> = KEY

David Laansma
IT Manager
Hubbard Supply Co. 
Direct: 810-342-7143
Office:810-234-8681
Fax: 810-234-6142
www.hubbardsupply.com
"Delivering Products, Services, and Innovative Solutions"

-----Original Message-----
From: owner-u2-users <at> listserver.u2ug.org
[mailto:owner-u2-users <at> listserver.u2ug.org] On Behalf Of Greg Schraiber
Sent: Tuesday, February 03, 2009 11:30 AM
To: u2-users <at> listserver.u2ug.org
Subject: [U2] unibasic's sort function

I have a dynamic array built like this:

LIST = ""

KEY = CONDES.DESIGNATION : "*" : CONTRIB.DONOR.DATE : "*" : ID.NO

IF LEN(LIST) = 0 THEN

(Continue reading)

Jeff Schasny | 3 Feb 2009 18:05
Picon

Re: [U2] converting universe files between aix/linux

fnuxi

In uv/bin

doug chanco wrote:
> hey all,
>    I am attempting to make a QA virtual universe system and I think I 
> am going to have a big Indian/little Indian issue (when moving the 
> databases from aiz to linux), I seem recall that there was some tool 
> available to convert the databases but for the life of me I cannot 
> remember what its called.
>
> Also if anyone has any tools they already developed to do this and 
> would be willing to share I would greatly appreciate it as well as any 
> gotchas you may have run across doing such a conversion
>
> thanks
>
> dougc
> -------
> u2-users mailing list
> u2-users <at> listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
>

--

-- 
------------------------------------------------------------------------
Jeff Schasny - Denver, Co, USA
jschasny at gmail dot com
/"Come To The Dark Side, We Have Cookies."/
(Continue reading)

Edward Brown | 3 Feb 2009 18:14
Picon

RE: [U2] unibasic's sort function

The SORT function (which I'm embarrassed to say I didn't think existed,
and I've been coding unibasic for the last 8 or 9 years!) sorts the data
passed into it; there isn't a return value. So

SORT(LIST)
CRT LIST

does work. Your original program sets LIST to 0 because LIST is set to
the return result of the sort statement - perhaps this should throw a
compiler error? Or perhaps there's an undocumented return code if the
data could not be sorted?

Edward

-----Original Message-----
From: owner-u2-users <at> listserver.u2ug.org
[mailto:owner-u2-users <at> listserver.u2ug.org] On Behalf Of Dave Laansma
Sent: 03 February 2009 16:56
To: u2-users <at> listserver.u2ug.org
Subject: RE: [U2] unibasic's sort function

I am not sure about the  SORT, but I would suggest simply:

LIST = ""
KEY = ....
LIST<-1> = KEY

David Laansma
IT Manager
Hubbard Supply Co. 
(Continue reading)

Israel, John R. | 3 Feb 2009 18:15

RE: [U2] unibasic's sort function

I am confused by the SORT, but I am guessing that something like this would work:

LIST = ""
(some selection criteria)
LOOP
WHILE READNEXT KEY
   LOCATE KEY IN LIST<1> BY "AL" SETTING POS ELSE
      INS KEY BEFORE LIST<POS>
   END
REPEAT

This builds you list and sorts it all at once.

Based on the flavor you are running, you might need to replace:
LIST<1> with just LIST

If you can build your select in a "SELECT" command, you could replace the LOCATE logic with a simple:
   LIST<-1> = KEY

John Israel
Sr. Programmer/Analyst

-----Original Message-----
From: owner-u2-users <at> listserver.u2ug.org [mailto:owner-u2-users <at> listserver.u2ug.org] On Behalf
Of Greg Schraiber
Sent: Tuesday, February 03, 2009 11:30 AM
To: u2-users <at> listserver.u2ug.org
Subject: [U2] unibasic's sort function

I have a dynamic array built like this:
(Continue reading)

Martin Phillips | 3 Feb 2009 18:23

Re: [U2] converting universe files between aix/linux

Hi Doug,

The tool you are looking for is format.conv and it runs from the Linux 
command line. You can find it documented in the UniVerse System 
Administation manual.

Martin Phillips
Ladybridge Systems Ltd
17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB
+44-(0)1604-709200
-------
u2-users mailing list
u2-users <at> listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

BNeylon | 3 Feb 2009 18:39

RE: [U2] unibasic's sort function

On my ancient version of UD (5.2) I need to code it using a throw away;
JUNK = SORT(LIST)
Bruce

Bruce M Neylon
Health Care Management Group 
Phone: (301) 608-8633

"Edward Brown" <ebrown <at> civica.co.uk> 
Sent by: owner-u2-users <at> listserver.u2ug.org
02/03/2009 12:14 PM
Please respond to
u2-users <at> listserver.u2ug.org

To
<u2-users <at> listserver.u2ug.org>
cc

Subject
RE: [U2] unibasic's sort function

The SORT function (which I'm embarrassed to say I didn't think existed,
and I've been coding unibasic for the last 8 or 9 years!) sorts the data
passed into it; there isn't a return value. So

SORT(LIST)
CRT LIST

does work. Your original program sets LIST to 0 because LIST is set to
the return result of the sort statement - perhaps this should throw a
(Continue reading)

Jeff Schasny | 3 Feb 2009 18:54
Picon

[U2] [UV] Where have all the printers gone?

Universe 10.2.4

In the process of setting up a new printer I've noticed that most of my 
printers have no entry in &DEVICE&. Where is UV storing them these days?
--

-- 
------------------------------------------------------------------------
Jeff Schasny - Denver, Co, USA
jschasny at gmail dot com
/"Come To The Dark Side, We Have Cookies."/
------------------------------------------------------------------------
-------
u2-users mailing list
u2-users <at> listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Bessel, Karen | 3 Feb 2009 19:03

RE: [U2] unibasic's sort function

I didn't think it existed either, that's pretty darned cool. I looked
for it in the BASIC.HELP file, and it isn't there. Is it a UniData
thing?

Karen Bessel
Software Developer

Tyler Technologies, Inc.
6500 International Parkway, Suite 2000
Plano, TX 75093
Phone: 972.713.3770 ext:6227
Fax: 972.713.3777 
Email: Karen.Bessel <at> tylertech.com
Web: http://www.tylertech.com
-----Original Message-----
From: owner-u2-users <at> listserver.u2ug.org
[mailto:owner-u2-users <at> listserver.u2ug.org] On Behalf Of Edward Brown
Sent: Tuesday, February 03, 2009 11:15 AM
To: u2-users <at> listserver.u2ug.org
Subject: RE: [U2] unibasic's sort function

The SORT function (which I'm embarrassed to say I didn't think existed,
and I've been coding unibasic for the last 8 or 9 years!) sorts the data
passed into it; there isn't a return value. So

SORT(LIST)
CRT LIST

does work. Your original program sets LIST to 0 because LIST is set to
the return result of the sort statement - perhaps this should throw a
(Continue reading)


Gmane