RE: [U2] Green Software -> Green Business

2008-07-25 Thread Don Verhagen
Susan,

While the below changes may result in "green" results I tend to believe the
main motivation behind most of the changes were monetary not environmental.

Every "green" change has monetary benefit to the business owner.
1) Software and Documentation
- No CD production costs / No Reams of Paper

2) Don't commute / Employees don't commute
-- No office building rent/lease, a/c, water, etc.

3) Travel
-- Obvious, however, it may be like me and I like to keep me shoes on in
public. =)

I think the question is what really motivated the change. Money (and
convenience) or "green"?

Would you make a "green" change if it *cost you more* money than not going
"green".

And as a side note, I hate green, the movement, the color. Can't we go blue?
The sky is blue, so is the ocean, so is the porn..., damn it, blue is out.

Don Verhagen
Commuting 60 miles a day in 5.7L Hemi SUV with the a/c on high and the
windows open.





> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Susan Joslyn
> Sent: Friday, July 25, 2008 7:25 AM
> To: u2-users@listserver.u2ug.org
> Subject: [U2] Green Software -> Green Business
> 
> This idea is interesting, though.  Is this bordering - or 
> boldly going -
> into an off-topic discussion? 
> 
> Software companies (and departments) are among the types of 
> organizations
> that can most easily lend themselves to "Kermit-chrome".  I 
> can't say that I
> require payment by Paypal - my customers' are businesses that have
> accounting departments and pay cycles and all kinds of things 
> that I don't
> feel are my right to force them to circumvent in order to do 
> business with
> me. But I do provide the software and the documentation via electronic
> media,  I avoid unnecessary paper, I don't commute and the 
> folks that do
> work for me also do it from home.  I do upgrades and training 
> remotely with
> more and more use of web-based meetings.  So less flying my 
> carbon footprint
> around (which also conserves my more personal energy!)
> 
> So far my efforts to go green have been very easy.  They 
> corresponded with
> technology advances, good sense budget monitoring and 
> convenience.  That's a
> triple win!  I would be interested in hearing about other 
> companies who are
> making any efforts and what kind of efforts to go green.  
> 
> Replacing monitors?  Lowering the power settings? (I'd have a 
> hard time
> seeing my laptop screen!) What else is anyone doing or 
> thinking of doing?
> 
> Curiously and even spuriously yours,
> Susan J.
> ---
> 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] Green Software -> Green Business

2008-07-25 Thread Garry Smith
So can I coin the term "carbon-belt"same as the "rust-belt" (old
steel industry)

It has all the connotations as the word "legacy".  

It appears you work for a "carbon" challenged company. Or mgmt are
'cabrons' - spanish slang

Garry L. Smith
Dir Info Systems
Charles McMurray Company
V# 559-292-5782   F# 559-346-6169

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeff Powell
Sent: Friday, July 25, 2008 4:28 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Green Software -> Green Business

Well Susan, my company makes it's money selling products to
manufacturers of oil and natural gas equipment. I tried to bring up the
subject of telecommuting and was laughed out of the room.

My motives were however purely selfish as I don't like pouring $40-$50 a
week down the filler tube on my car.

We are trying to go paperless. We print thousands of sheets of paper,
then scan and shred them once we're done writing on them.

Oh well ... going green is not on the radar anytime soon.
---
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] Green Software -> Green Business

2008-07-25 Thread Jeff Powell
Well Susan, my company makes it's money selling products to
manufacturers of oil and natural gas equipment. I tried to bring up the
subject of telecommuting and was laughed out of the room.

My motives were however purely selfish as I don't like pouring $40-$50 a
week down the filler tube on my car.

We are trying to go paperless. We print thousands of sheets of paper,
then scan and shred them once we're done writing on them.

Oh well ... going green is not on the radar anytime soon.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Green Software -> Green Business

2008-07-25 Thread Kevin King
Susan, I've had this up on my screen all day, pondering this topic and your
comments on it.  While I applaud companies who make concerted efforts for
overall betterment in any direction, I have grave concerns over the current
"kermit-chrome" movement.  If it were about saving the planet, that's
something to get behind.  But it's not.  Rather, it's first and foremost a
marketing angle to try to improve perception among an increasingly cynical
market.

Case in point: I received correspondence from a company touting itself as
"going green" with all sorts of platitudes about saving the environment,
yada, yada, yada.  I would have really appreciated their efforts had this
correspondence not been done via a big color catalog.

Frankly, the concept of a small software company "going green" and achieving
any positive impact (other than the market perception issue) is laughable.
While I'm all for making big changes through small moves, I believe the
greatest effort to be "green" will pale in comparison to the global positive
impact that corporate honesty and integrity could bring.   For starters, a
company could stop talking about "green" and just do it.  At least then
there's a chance that they're being honest about it, rather than
bastardizing altruistic causes for personal gain.

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


Re: [U2] CAPTURING TOXML

2008-07-25 Thread Charles_Shaffer
Thanks to all who responded. 

After playing with this for a while, I've decided to build the HTML in the 
UniBasic program. 

Part of the complication is that the web server is on Linux so I am using 
a Java Bridge and some Java stubs to get the data into PHP.  I have 
managed to get XML documents to the browser, but parsing it looks like 
more trouble than just building the HTML in UniBasic.

Thanks again.

Charles Shaffer
Senior Analyst
NTN-Bower Corporation
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] U2U

2008-07-25 Thread Ken Hall

Dianne -
I took 2 certification exams last year at U2 University and found 
that there was plenty of time to do so without missing sessions that 
I wanted to see. The certification tests were open early and during 
meal breaks so it wasn't a problem.  I highly recommend going through 
the exams too.


Ken Hall

At 05:57 AM 7/25/2008, you wrote:
Can anyone comment on the U2 certification?  I'm considering it at 
U2 University, but since it means I'll be missing sessions, I want 
to make sure it's worth it.

Thanks,
Dianne
---
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] static/dynamic file(s) opinions wanted!

2008-07-25 Thread iggchamp
Thanks Jeff,

Or... You could call me by my nickname of LOL.  

Sincerely,

AFAIK

-- Original message -- 
From: "Jeff Fitzgerald" <[EMAIL PROTECTED]> 

> Gee, with all that, shouldn't the [ad] flag be in uppercase, underlined 
> and bolded? 
> 
> Perhaps HTH will download your stuff and post a review. I think you 
> should address him formally as Mr. Helps, though. Later, when you are 
> friends you could use his first name, Hope. 
> 
> ;-) 
> 
> Jeff Fitzgerald 
> Fitzgerald & Long, Inc. 
> 
> 
> -Original Message- 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of daverch 
> Sent: Thursday, July 24, 2008 1:10 PM 
> To: u2-users@listserver.u2ug.org 
> Subject: RE: [U2] static/dynamic file(s) opinions wanted! 
> 
> [ad] 
> Hi HTH, 
> 
> U2logic has created a resize plug-in for Eclipse IDE that surpasses 
> their functionality. We do not 
> <...snip...> 
> 
> [/ad] 
> 
> -Original Message- 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> [EMAIL PROTECTED] 
> Sent: Wednesday, July 23, 2008 10:25 PM 
> To: u2-users@listserver.u2ug.org 
> Subject: RE: [U2] static/dynamic file(s) opinions wanted! 
> 
> Hi Doug, 
> 
> In addition to the great info from this group (like Dan provides), this 
> site http://www.fitzlong.com/ provides great insight into U2 files. You 
> should take some time to read the papers that they've provided. Also, 
> they have an incredible product called "fast" that can really help you 
> eliminate a lot of the maintenance headaches and increase your system 
> performance. 
> 
> HTH 
> --- 
> 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] Basic SORT() Function not avail in UniVerse?

2008-07-25 Thread MAJ Programming
For those managing D3 as well, you can write the array to ANY file-item and
use

SORT-LIST FILENAME ITEMNAME

instead of the Pointer-File.
Mark Johnson
- Original Message -
From: "Dave Laansma" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, July 24, 2008 10:49 AM
Subject: RE: [U2] Basic SORT() Function not avail in UniVerse?


> I think I like this one better than the Unix sort.  It is really quick
> too.  However I'd suggest using the SORT.LIST instead of the
> GET.LIST/MERGE.LIST:
>
>SUBROUTINE HUB.SORT.C (ITAB)
>
>SORT.KEY= "tmpsortfile"
>SORT.KEY<2> = @UID
>SORT.KEY<3> = @USERNO
>SORT.KEY<4> = TIME()
>SWAP @AM WITH "_" IN SORT.KEY
>
>WRITELIST ITAB ON SORT.KEY
>
>CMD = "SORT.LIST ":SORT.KEY
>EXECUTE CMD CAPTURING MSG RETURNING ERR
>
>READLIST ITAB FROM SORT.KEY ELSE ITAB = ""
>
>  
>
>RETURN
>
>END
>
> 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: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Rex Gozar
> Sent: Thursday, July 24, 2008 8:15 AM
> To: u2-users@listserver.u2ug.org
> Subject: Re: [U2] Basic SORT() Function not avail in UniVerse?
>
> And since no one has mentioned it yet, MERGE.LIST takes advantage of
> Universe's built-in (a.k.a "C") sorting ability.
>
> SUBROUTINE SORT.ITEM(ITEM)
> WRITELIST ITEM ON "MYLIST"
> STMT = ""
> STMT<-1> = "GET.LIST MYLIST"
> STMT<-1> = "MERGE.LIST 0 UNION 0"
> STMT<-1> = "SAVE.LIST MYLIST"
> READLIST ITEM FROM "MYLIST" ELSE ABORTM "IMPOSSIBLE!"
> DELETELIST "MYLIST"
> RETURN
> END
>
> Of course, this still adds the i/o overhead of reading and writing, but
> is still faster than LOCATE's on 1000+ element items.
>
> "[Another] aspect is that a lot dynamic arrays in programs do more than
> just hold keys..."  which is why I wrote ROW2COL and QUICKSORT as
> complimentary subroutines (both on PickWiki).  ROW2COL will flip
> associated multivalues "sideways" so QUICKSORT can sort and subsort on
> values in the corresponding "rows"; then I use ROW2COL to flip them
> back.  Ideally, Universe should provide similar built-in functionality.
>
> rex
> ---
> 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] CAPTURING TOXML

2008-07-25 Thread Allen Egerton

[EMAIL PROTECTED] wrote:
Hello.  I've been building and returning some simple pages from Unidata to 
PHP, but I now have a big complex report to adapt.  Is there someway that 
I can take advantage of the TOXML verb by CAPTURING the XML and returning 
it to the calling PHP?


I tried something like this.

ECMD = "SELECT   TOXML"
EXECUTE ECMD CAPTURING RESULT  (where RESULT is returned to the calling 
PHP program.but got the error message:
protocol error: , Invalid document end at col 32. Check the back end log 
for details.


I suspect this is due to the marks separating the dynamic array elements. 
Will something like this work, or am I barking up the wrong tree?


And where is the backend log?


Perhaps a different approach?

Assuming that you're calling/executing a Universe/Unidata program from 
within PHP.


1)  Issue a SEPTR command with mode = 3 to send output to the &HOLD& 
directory.


2)  LIST somefile field1 field2 field3 TOXML LPTR to send the output you 
want to the &HOLD& directory in XML format.


3)  Use code within your program to READ the record (aka file), within 
the &HOLD& directory into variable RESULT.


4)  Pass the RESULT back to PHP


I played with the TOXML keyword briefly this morning on a Universe 
system, bringing the result back to a MS desktop and importing into 
Excell.  When I did so, I found that I had to strip extraneous cr/lf 
sequences from the beginning of the XML file I'd created.


Rgds.

--
Allen Egerton
aegerton at pobox dot com
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Basic SORT() Function not avail in UniVerse?

2008-07-25 Thread MAJ Programming
I don't think that the sort/extract function alone is justification for
choosing dim arrays over dynamic arrays in programs.

Sure, for large array concepts/projects, DIM will prevail. But IMHO, for
data READ/WRITE, dynamic appears just as fast as DIM.

Maybe this doesn't apply to large systems with 100's of users. But I recall
when the <> replaced the EXTRACT family of commands that typingly incouraged
programmers to use MATREAD instead of READ.

I've also run into problems with legacy systems where the data in a file
exceeds a nominal maximum number of fields and I've spent (wasted) clients
time/money changing DIM REC(100) to DIM REC(200). Who knows, in 20 years
I'll be the errant programmer when 200 needs to go to 300.

If there is a file defining INCLUDE that has the DIM, then it's an easy
repair to move forward. If they're DIM'd separately in each program (with
differing names), then it's a nightmare and bound to omit one.

My 2 cents
Mark Johnson
- Original Message -
From: "Baakkonen, Rodney A (Rod) 46K" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, July 23, 2008 1:24 PM
Subject: RE: [U2] Basic SORT() Function not avail in UniVerse?


> That is why we discourage developers from using dynamic arrays in
> programs. Once they get to a certain size, performance goes out the
> window. We have them store all intermediate program data in work files
> that sort quickly when well sized.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Dave Laansma
> Sent: Wednesday, July 23, 2008 10:42 AM
> To: u2-users@listserver.u2ug.org
> Subject: RE: [U2] Basic SORT() Function not avail in UniVerse?
>
> I've been experimenting and discovered something.  Instead of waiting
> until you have all (say) 100,000 elements to sort at once, why not sort
> them in blocks of (say) 5,000.  So I wrote this little subroutine that
> takes two parameters, a relatively small un-sorted table and the larger
> sorted table and sorts the un-sorted into the sorted table.
>
> The calling program accumulates the unsorted ITAB and when it reaches a
> certain watermark, say 5,000 elements, this subroutine is called and
> those 5,000 get inserted into the master sorted OTAB, which initially is
> .
>
> My experimentation discovered this method to run extremely quickly
> compared to waiting for the entire 100,000 element table to be built
> before starting the sort.  Try it out!
>
>   SUBROUTINE HUB.SORT.B (ITAB,OTAB)
>
>   X2= DCOUNT(ITAB,@AM)
>
>   FOR X = 1 TO X2
> ELEM = ITAB
> LOCATE ELEM IN OTAB BY "AL" SETTING PLACE ELSE NULL
> OTAB = INSERT(OTAB,PLACE;ELEM)
>   NEXT X
>
> 
>
>   RETURN
>
>   END
>
> 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: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Marcos
> Sent: Tuesday, July 22, 2008 7:35 PM
> To: u2-users@listserver.u2ug.org
> Subject: RE: [U2] Basic SORT() Function not avail in UniVerse?
>
> We had the same issue back in the 90's. So a clever guy (Ed) that worked
> with us wrote a small C program (on Unix) to do the sort. This also
> included controlling/dependants fields. Any universe program could call
> it, passing in the variables and returned the items sorted.
>
> Speed is incredible. To this day it's still used and blitzes any
> universe program methods in sorting large arrays.
>
> Regards,
> Jeff Marcos
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Allen E. Elwood
> Sent: Wednesday, 23 July 2008 6:59 AM
> To: u2-users@listserver.u2ug.org
> Subject: RE: [U2] Basic SORT() Function not avail in UniVerse?
>
> Hey, and don't forget to do a speed test.  You know, because LOCATE is
> coded
> as part of the OS it just *might* be faster than bubble or speed sort
> options.
>
> In fact, this was a topic on this list about 3 or 4 years ago and
> someone
> doing the speed test concluded LOCATE was in fact faster.
>
> And no I don't remember who it was, or have a link to the thread (sorry)
>
> :-)
>
> Allen
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Israel, John R.
> Sent: Tuesday, July 22, 2008 10:26
> To: 'u2-users@listserver.u2ug.org'
> Subject: RE: [U2] Basic SORT() Function not avail in UniVerse?
>
>
> Note that if the array is big, you would get much better performance by
> loading it into a DIM array, so the sort of sort below, then put the
> results
> back into a dynamic array.
>
> Dynamic arrays are much easier to use, but when used wisely, dimensioned
> arrays can be MUCH faster.  This is true for any application, esp.
> looping
> through multi-values.
>
> John Israel
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of DAVID WADEMAN
> Sent: Tuesday, July 22, 2008 1:0

Re: [U2] Basic SORT() Function not avail in UniVerse?

2008-07-25 Thread MAJ Programming
This is a little catch-22. Years ago, there was a limit on the number of
'variables' a program had. This, since each element in a DIM array is a
variable, you could not DIM REC(10). Thus legacy code may have been
forced to use dynamic arrays on large items.

Nowadays, we may not be held to any limits (or they are very large). Us
programmers tend to stretch the limits of what's available at the time.

Thus, knowing all of the programming options (array types, REMOVE, LOCATE,
concatenation, work files etc), we can apply the best fit for the issue at
hand.

Mark Johnson
- Original Message -
From: "Baakkonen, Rodney A (Rod) 46K" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, July 23, 2008 3:48 PM
Subject: RE: [U2] Basic SORT() Function not avail in UniVerse?


> I guess my point was a little off topic, as I was really calling
> attention to performance issues with dynamic arrays in general and not
> about sorting keys. When dynamic arrays can out perform work files, we
> will use them.
>
>  We have seen processes that used dynamic arrays run for a week. Even
> with doing REMOVE and using concatenation to build the array. Changing
> the logic to use a work file resulted in the same process finishing in
> hours.
>
> The other aspect is that a lot dynamic arrays in programs do more that
> just hold keys. Doing a locate on one array may result in multiple data
> elements being inserted into corresponding arrays. With this type of
> intermediate data, writing and sorting a work file will run circles
> around internal arrays.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Rex Gozar
> Sent: Wednesday, July 23, 2008 1:50 PM
> To: u2-users@listserver.u2ug.org
> Subject: Re: [U2] Basic SORT() Function not avail in UniVerse?
>
> I've done research on sorting in the past, working with 100,000 to
> 1,000,000 element lists.
>
> Allen: LOCATE's are faster, but only when you're dealing with less than
> 100 elements.  Because LOCATE's must start at the beginning of a string
> and traverse the entire length, they get slower and slower.  Bubble
> sorts are also useless when dealing with a large number of elements.
>
> Jeff: Yes, a C program is the fastest (at least it was at my last job
> where we used GCI to integrate it with the universe shell.)
>
> As for writing out ids to work files just to sort them, it adds
> unnecessary overhead to the whole process.
>
> I wish universe had an intrinsic sort() function.  Since they don't I
> wrote my own and posted it on PickWiki.  You could also use the
> QuickSort sample posted in this thread.  Once you standardize on a
> particular sorting program, you'll be amazed at the number of times it
> comes in handy.
>
> http://www.pickwiki.com/cgi-bin/wiki.pl?Sorting
> http://www.pickwiki.com/cgi-bin/wiki.pl?ShellSort
> http://www.pickwiki.com/cgi-bin/wiki.pl?QuickSort
>
> Another handy function is to be able to flip fields to values and vice
> versa.  See http://www.pickwiki.com/cgi-bin/wiki.pl?Row2Col and again
> it's optimized for a large number of elements.
>
> rex
> ---
> 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] Basic SORT() Function not avail in UniVerse?

2008-07-25 Thread MAJ Programming
Sidebar:
If we're concerned for speed, then don't have the DCOUNT in the end value of
a FOR...NEXT loop. Set the variable once before the loop.

example:

LAST=DCOUNT(ITAB,@AM)
FOR X=1 TO LAST

Mark Johnson
- Original Message -
From: "Dave Laansma" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, July 23, 2008 10:35 AM
Subject: RE: [U2] Basic SORT() Function not avail in UniVerse?


> I'd suggest this subroutine.  Brief and to the point:
>
>   SUBROUTINE HUB.SORT.B (ITAB)
>
>   OTAB = ""
>
>   FOR X = 1 TO DCOUNT(ITAB,@AM)
> ELEM = ITAB
> LOCATE ELEM IN OTAB BY "AL" SETTING PLACE ELSE NULL
> OTAB = INSERT(OTAB,PLACE;ELEM)
>   NEXT X
>
>   ITAB = OTAB
>
> 
>
>   RETURN
>
>   END
>
> 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: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Marcos
> Sent: Tuesday, July 22, 2008 7:35 PM
> To: u2-users@listserver.u2ug.org
> Subject: RE: [U2] Basic SORT() Function not avail in UniVerse?
>
> We had the same issue back in the 90's. So a clever guy (Ed) that worked
> with us wrote a small C program (on Unix) to do the sort. This also
> included controlling/dependants fields. Any universe program could call
> it, passing in the variables and returned the items sorted.
>
> Speed is incredible. To this day it's still used and blitzes any
> universe program methods in sorting large arrays.
>
> Regards,
> Jeff Marcos
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Allen E. Elwood
> Sent: Wednesday, 23 July 2008 6:59 AM
> To: u2-users@listserver.u2ug.org
> Subject: RE: [U2] Basic SORT() Function not avail in UniVerse?
>
> Hey, and don't forget to do a speed test.  You know, because LOCATE is
> coded
> as part of the OS it just *might* be faster than bubble or speed sort
> options.
>
> In fact, this was a topic on this list about 3 or 4 years ago and
> someone
> doing the speed test concluded LOCATE was in fact faster.
>
> And no I don't remember who it was, or have a link to the thread (sorry)
>
> :-)
>
> Allen
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Israel, John R.
> Sent: Tuesday, July 22, 2008 10:26
> To: 'u2-users@listserver.u2ug.org'
> Subject: RE: [U2] Basic SORT() Function not avail in UniVerse?
>
>
> Note that if the array is big, you would get much better performance by
> loading it into a DIM array, so the sort of sort below, then put the
> results
> back into a dynamic array.
>
> Dynamic arrays are much easier to use, but when used wisely, dimensioned
> arrays can be MUCH faster.  This is true for any application, esp.
> looping
> through multi-values.
>
> John Israel
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of DAVID WADEMAN
> Sent: Tuesday, July 22, 2008 1:00 PM
> To: u2-users@listserver.u2ug.org
> Subject: RE: [U2] Basic SORT() Function not avail in UniVerse?
>
> This is a UniData subroutine, but should work 
>
> SUBROUTINE B42.SORT.ARRAY(SORTED,ARRAY)
> * Bubble sort the elements of a dynamic array
> * Created by: David Wademan
> * Creation Date: 01/05/05
> SORTED=""
> VALUES = DCOUNT(ARRAY,@VM)
> LOOP
>CHANGES = 0
>FOR X = 2 TO VALUES
>   * For each adjacent pair
>   ELEMENT1 = ARRAY<1,X-1>
>   ELEMENT2 = ARRAY<1,X>
>
>   IF ELEMENT2 < ELEMENT1 THEN
>  * Swap if pair out of sequence
>  ARRAY<1,X> = ELEMENT1
>  ARRAY<1,X-1> = ELEMENT2
>  CHANGES = 1
>   END
>NEXT X
> WHILE CHANGES DO REPEAT
> SORTED=ARRAY
> RETURN
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Baker Hughes
> Sent: Tuesday, July 22, 2008 10:51 AM
> To: 'u2-users@listserver.u2ug.org'
> Subject: [U2] Basic SORT() Function not avail in UniVerse?
>
> Hey,
>
> I'm needing to SORT a dynamic array and apparently UniVerse doesn't have
> this
> Function.
>
> Other MV implementations have this, such as D3 - "The sort() function
> sorts an
> attribute or value mark delimited str.exp in ascending order." [from
> ePick]
>
> There was also a user exit u1072 that did the same thing.
>
> Does anyone have a work around or fast path to same thing  maybe I'm
> missing something but can't see this in UV docs.
>
> -Baker
> ---
> 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-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
>
> The information conta

Re: [U2] U2U

2008-07-25 Thread Charlie Rubeor
I just started a new job and having the certifications did help me to get 
it.


Before I was hired, there was nobody here with a detailed knowledge of 
Unidata or Unix, so they really could not ask the right questions.  They 
could check references, look at my resume, etc, but having those little 
pieces of paper from IBM really did put their minds at ease.


Also, I thought you could take the certification exams any time you wanted, 
at any number of testing facilities.  That way you would not have to miss 
any classes.


- Original Message - 
From: "Dianne Ackerman" <[EMAIL PROTECTED]>

To: "U2 List Server" 
Sent: Friday, July 25, 2008 8:57 AM
Subject: [U2] U2U


Can anyone comment on the U2 certification?  I'm considering it at U2 
University, but since it means I'll be missing sessions, I want to make 
sure it's worth it.

Thanks,
Dianne
---
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] Basic SORT() Function not avail in UniVerse?

2008-07-25 Thread MAJ Programming
Given my age, I've used many manual sort methods (including bubble) years
and years ago.

Ever since I could LOCATE with the optional sorting parameter, I've never
put a bubble sort in MV programs. VB and QB yes. MV, No.

My 2 cents.
Mark Johnson
- Original Message -
From: "DAVID WADEMAN" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, July 22, 2008 12:59 PM
Subject: RE: [U2] Basic SORT() Function not avail in UniVerse?


> This is a UniData subroutine, but should work 
>
> SUBROUTINE B42.SORT.ARRAY(SORTED,ARRAY)
> * Bubble sort the elements of a dynamic array
> * Created by: David Wademan
> * Creation Date: 01/05/05
> SORTED=""
> VALUES = DCOUNT(ARRAY,@VM)
> LOOP
>CHANGES = 0
>FOR X = 2 TO VALUES
>   * For each adjacent pair
>   ELEMENT1 = ARRAY<1,X-1>
>   ELEMENT2 = ARRAY<1,X>
>
>   IF ELEMENT2 < ELEMENT1 THEN
>  * Swap if pair out of sequence
>  ARRAY<1,X> = ELEMENT1
>  ARRAY<1,X-1> = ELEMENT2
>  CHANGES = 1
>   END
>NEXT X
> WHILE CHANGES DO REPEAT
> SORTED=ARRAY
> RETURN
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Baker Hughes
> Sent: Tuesday, July 22, 2008 10:51 AM
> To: 'u2-users@listserver.u2ug.org'
> Subject: [U2] Basic SORT() Function not avail in UniVerse?
>
> Hey,
>
> I'm needing to SORT a dynamic array and apparently UniVerse doesn't have
> this
> Function.
>
> Other MV implementations have this, such as D3 - "The sort() function
> sorts an
> attribute or value mark delimited str.exp in ascending order." [from
> ePick]
>
> There was also a user exit u1072 that did the same thing.
>
> Does anyone have a work around or fast path to same thing  maybe I'm
> missing something but can't see this in UV docs.
>
> -Baker
> ---
> 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] U2U

2008-07-25 Thread Nick Gettino
I took the UniBasic certification (not the Administrator) and I believe
it was worth it.  I had IBM come to our office to administer the same
test to 5 of our Developers too and they all were glad they became
certified.

>From a business point of view, I believe in order to maintain discounts
on purchasing their products you have to have certified people within
your organization.


Nicholas M Gettino | Director of Development | EnRoute Emergency
Systems, an Infor company | office: 813-207-6998 | fax: 678-393-5389
[EMAIL PROTECTED] | www.enroute911.com
Register Now! | EnRoute Emergency Systems Customer Conference |
September 22-25, 2008 | Mainsail Suites Hotel & Conference Center |
Tampa, Florida
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dianne Ackerman
Sent: Friday, July 25, 2008 8:57 AM
To: U2 List Server
Subject: [U2] U2U

Can anyone comment on the U2 certification?  I'm considering it at U2 
University, but since it means I'll be missing sessions, I want to make 
sure it's worth it.
Thanks,
Dianne
---
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] CAPTURING TOXML

2008-07-25 Thread Brian Leach
Hi

Try using the TO option if that is supported on your release (part of that 
piecemeal way in which the XML stuff was released).

That creates a record in &XML& somename.xml. You can also create a schema to go 
with it:

SELECT * FROM BOOK_TITLES TOXML TO 'titles' WITHSCHEMA;

Not sure whether UniQuery has caught up with those features on UDT yet.

Brian


Hi Charles,

Can't comment on Unidata but have done this in Universe and had to jump through 
some hoops which may assist:

1. Try setting your terminal type to Dumb so that you don't get escape 
sequences.
2. Watch out for form feeds and the like that get added anyway (post 10.1.18)

HTH

Brett

<[EMAIL PROTECTED]> wrote in message 
news:<[EMAIL PROTECTED]>..
.
> Hello.  I've been building and returning some simple pages from Unidata to
> PHP, but I now have a big complex report to adapt.  Is there someway that
> I can take advantage of the TOXML verb by CAPTURING the XML and returning
> it to the calling PHP?
>
> I tried something like this.
>
> ECMD = "SELECT   TOXML"
> EXECUTE ECMD CAPTURING RESULT  (where RESULT is returned to the calling
> PHP program.but got the error message:
> protocol error: , Invalid document end at col 32. Check the back end log
> for details.
>
> I suspect this is due to the marks separating the dynamic array elements.
> Will something like this work, or am I barking up the wrong tree?
>
> And where is the backend log?
>
> Charles Shaffer
> Senior Analyst
> NTN-Bower Corporation
> ---
> 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] U2U

2008-07-25 Thread Dianne Ackerman
Can anyone comment on the U2 certification?  I'm considering it at U2 
University, but since it means I'll be missing sessions, I want to make 
sure it's worth it.

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


Re: [U2] CAPTURING TOXML

2008-07-25 Thread Brett Callacher
Hi Charles,

Can't comment on Unidata but have done this in Universe and had to jump through 
some hoops which may assist:

1. Try setting your terminal type to Dumb so that you don't get escape 
sequences.
2. Watch out for form feeds and the like that get added anyway (post 10.1.18)

HTH

Brett

<[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> Hello.  I've been building and returning some simple pages from Unidata to
> PHP, but I now have a big complex report to adapt.  Is there someway that
> I can take advantage of the TOXML verb by CAPTURING the XML and returning
> it to the calling PHP?
>
> I tried something like this.
>
> ECMD = "SELECT   TOXML"
> EXECUTE ECMD CAPTURING RESULT  (where RESULT is returned to the calling
> PHP program.but got the error message:
> protocol error: , Invalid document end at col 32. Check the back end log
> for details.
>
> I suspect this is due to the marks separating the dynamic array elements.
> Will something like this work, or am I barking up the wrong tree?
>
> And where is the backend log?
>
> Charles Shaffer
> Senior Analyst
> NTN-Bower Corporation
> ---
> 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] Green Software -> Green Business

2008-07-25 Thread Susan Joslyn
This idea is interesting, though.  Is this bordering - or boldly going -
into an off-topic discussion? 

Software companies (and departments) are among the types of organizations
that can most easily lend themselves to "Kermit-chrome".  I can't say that I
require payment by Paypal - my customers' are businesses that have
accounting departments and pay cycles and all kinds of things that I don't
feel are my right to force them to circumvent in order to do business with
me. But I do provide the software and the documentation via electronic
media,  I avoid unnecessary paper, I don't commute and the folks that do
work for me also do it from home.  I do upgrades and training remotely with
more and more use of web-based meetings.  So less flying my carbon footprint
around (which also conserves my more personal energy!)

So far my efforts to go green have been very easy.  They corresponded with
technology advances, good sense budget monitoring and convenience.  That's a
triple win!  I would be interested in hearing about other companies who are
making any efforts and what kind of efforts to go green.  

Replacing monitors?  Lowering the power settings? (I'd have a hard time
seeing my laptop screen!) What else is anyone doing or thinking of doing?

Curiously and even spuriously yours,
Susan J.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] David Peters/Denver/IBM is out of the office.

2008-07-25 Thread David Peters
I will be out of the office starting  07/25/2008 and will not return until
07/30/2008.

I'll be on vacation during this time and won't be able to see your email
until I return.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Opinions Wanted !

2008-07-25 Thread Symeon Breen
+ it runs inside eclipse so your processor, disks and ram will be over
worked using more electricity and so being less green !




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brutzman, Bill
Sent: 24 July 2008 22:08
To: 'u2-users@listserver.u2ug.org'
Subject: RE: [U2] Opinions Wanted !

I am glad the product is "green" but also...

1. Do all the programmers use flat panel monitors, not energy-hogging crts?
2. What are the PC power settings there?
3. Is the code written without regard for race, creed, color, gender, or
se...?
4. Are the objects there created by vegetarians for vegetarians?
5. Have software testers there been purified by the spring waters of
spiritual holistics?

All other factors being unequal, these are the characteristics that I look
for before wooing my leaders for that elusive "green light"... leading to
placing a purchase.

--Bill

*--

  We are a "green" software product.
1) Software is only downloadable via our web site.
2) The software has not paper output, everything is displayed in
Eclipse.
3) Our documentation is in PDF or Word format.
4) Payment for our software is Pay Pal which is paperless.  
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.5.5/1569 - Release Date: 23/07/2008
13:31
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] static/dynamic file(s) opinions wanted!

2008-07-25 Thread Ray Wurlod
UniVerse Dynamic files do NOT resize every time they split.  They only "resize" 
a single group at each split.

The next group to split is allocated on a round robin basis from group number 1 
up to the group number that is the highest power of 2 less than or equal to the 
current modulus.  So, for a large dynamic file, it can be a long interval 
between when a group is "resized" and the next time it is "resized".  This is 
why we advocate resizing Dynamic files periodically.

Yes, they will work OK if you don't.

> - Original Message -
> From: "JPB-U2UG" <[EMAIL PROTECTED]>
> To: u2-users@listserver.u2ug.org
> Subject: Re: [U2] static/dynamic file(s) opinions wanted!
> Date: Thu, 24 Jul 2008 22:23:51 -0500
> 
> 
> Tom, The point is that it doesn't work with dynamic files.
> David, I don't really think you need to resize dynamic files 
> because they are always resizing themselves, unless they are not 
> changing size. This type of resizing is equivalent to defragging on 
> a windows system. Since dynamic files resize every time they split 
> then it is not necessary.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/