Re: [U2] Best Practices

2007-11-20 Thread Charles_Shaffer
Or more.

Comments are key when done properly.  I try to break code in to sections 
that accomplish a single task and create a comment header that describes 
in human talk what it does.  I try to avoid comments like * Open the 
inventory master file when the next line is OPEN '', INVENTORY-MASTER 
TO F.INV THEN.  The comment did not add much.  Comments should explain in 
human talk what the code is doing.

Another thing I learned is that if you are not sure what to put in the 
header comment before you start coding, then you probably haven't thought 
through the intent of the section enough yet.  The Let's start coding and 
see what happens! approach can lead you astray. 

The comment header also allows easy location of different functional 
sections.  With obvious headers, you can scan down the page, or page down 
the screen quickly to find the section you are looking for.  I have seen 
some code that goes on for hundreds of lines in one long stream.  I have 
wasted many hours trying to figure out what is going on when clear 
structured code and comments could have made it easy.  Even if the code 
did what it was supposed to do initially, it creates negative value in the 
maintenance space.  (Wow I'm glad I got that MBA).

Charles Shaffer
Senior Analyst
NTN-Bower Corporation



 So I figure that 10-15% of what I'm typing is not code but comments. 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] OCONV Extraction Question - Good Practice

2007-11-20 Thread Jerry Banker
I don't like it. I've been in the language for over 25 years and have
passed the certification a couple of times and when I looked at this I
was scratching my head for a while. Obviously you know what you are
doing but what is going to happen with the next programmer when you
retire.

-Original Message-
From: MAJ Programming [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 11:12 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] OCONV Extraction Question - Good Practice

Oddly enough, to make things more interesting, I would have coded it
this
way:

CRT VAR1R0#6: :VAR2/100R2#10: :VAR3/1R4#14

Less typing. For output, the only time I use OCONV is a MTx time
conversion or if the value isn't justified and I want the all the
decimals.
I use DATE()D2/ beaucoups of times.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] UniData 7.1 Manuals online - updated

2007-11-20 Thread Wally Terhune
I just wanted to let you all know that the UniData 7.1 manuals have all
been refreshed on the IBM public web site.
They are the most recent version - note the cover page 'September 2007'.
Included is a new manual: U2 Web Services Developer.

Both the zip file (which contains all of the manuals) and the individual
manuals are all the September 2007 version.

http://www.ibm.com/software/data/u2/pubs/library/71unidata/

Note for UniVerse users:
We will be re-publishing all UV manuals sometime in the next couple of
months, as well.

Regards,
   
 Wally Terhune 
 SWG Client Support - Information  
 Management Software   
 U2 Support Architect b IBM U2 
 Client Support Team   
 4700 S. Syracuse St., Denver, CO  
 80237 
 Tel: (303) 773-7969   T/L 
 656-7969  
 Mobile: (303) 807-6222
 [EMAIL PROTECTED] 
   
   
   
   
 Register today for the premier
 U2 technical event!   

[demime 1.01d removed an attachment of type image/jpeg which had a name of 
27401148.jpg]

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


[U2] Unidata PE and webservices

2007-11-20 Thread Dave Walker
Hi all,

Is there a way to use one of the two seats in UD PE for connection pooling? 

I'm finally making some progress with the Web Service Developer and ruby,
(after a couple of weeks butting my head against a brick wall!) 

I'd like to work with it at home over the upcoming holiday weekend if
there's a way to do so.

TIA,
--
Dave Walker
Programmer/Analyst
Ivy Hill - Louisville
(502) 473-2811

*IBM Certified Solutions Expert
*U2 Family Application Development
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] OCONV Extraction Question - Good Practice

2007-11-20 Thread Jeff Schasny
I'm not as concerned about the old style format strings as I am about 
the readability of the code and ease of future modification concerning 
the printed (CRT'd in this case) string. I'd do this:

OUT.LINE = FMT(OCONV(VAR1,MD0),R#6 )
OUT.LINE := FMT(OCONV(VAR2,MD2),R#10)
OUT.LINE := FMT(OCONV(VAR3,MD4),R#14)
CRT OUT.LINE


Womack, Adrian wrote:
 IMO, the only thing wrong with your example is the use of the trailing
 format strings - everyone (and I mean everyone) should be using the FMT
 function, making your example:

 CRT FMT(OCONV(VAR1,MD0),R#6 ):FMT(OCONV(VAR2,MD2),R#10
 ):FMT(OCONV(VAR3,MD4),R#14)

 The old method is a disaster waiting to happen.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of MAJ Programming
 Sent: Tuesday, 20 November 2007 2:12 PM
 To: u2-users@listserver.u2ug.org
 Subject: Re: [U2] OCONV Extraction Question - Good Practice

 Here begins the voting for differences.

 I actually do not care for the inclusion of the extra Var1.F variables
 as, mentioned earlier, is that variable used elsewhere? Plus, it implies
 that it maybe part of a calculation instead of an upcoming, disposable
 CRT statement.

 Will I rot as I use this CRT statement?

 CRT OCONV(VAR1,MD0)R#6': :OCONV(VAR2,MD2)R#10:
 :OCONV(VAR3,MD4)R#14.



 DISCLAIMER:
 Disclaimer.  This e-mail is private and confidential. If you are not the 
 intended recipient, please advise us by return e-mail immediately, and delete 
 the e-mail and any attachments without using or disclosing the contents in 
 any way. The views expressed in this e-mail are those of the author, and do 
 not represent those of this company unless this is clearly indicated. You 
 should scan this e-mail and any attachments for viruses. This company accepts 
 no liability for any direct or indirect damage or loss resulting from the use 
 of any attachments to this e-mail.
 ---
 u2-users mailing list
 u2-users@listserver.u2ug.org
 To unsubscribe please visit http://listserver.u2ug.org/

   

-- 

Jeff Schasny - Denver, Co, USA
jeff at schasny dot com

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


RE: [U2] Via Systems

2007-11-20 Thread Baker Hughes
Try viasystemsinc.com

(no ad because I'm just answering someone's question)

Just got an e-mail from DBTA advertising a Via product.

So... Ross you everyone on the list a coke.  It was not as you bet a
case of someone forgetting to renew their domain.  It was a case of
someone not leaving a forwarding placard on their old domain or just
re-directing to their new one when you put their old url in your
browser. %-) 

-Baker 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ross Ferris
Sent: Monday, November 19, 2007 1:26 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Via Systems

NOT HAPPY JAN!! (will make sense to the aussies)

I'm guessing that someone may have forgotten to renew their domain,
which has been swooped upon by an E-squatter. If something more serious
has happened, I can offer you my alternative viewpoint for one of the
products mentioned oops - AD??

Ross Ferris
Stamina Software
Visage  Better by Design!

Does anyone know what the current status of Via Systems is?  Their 
domain appears to be for sale.  As I am contemplating making a 
commitment to MyViewPoint and use ViaDuct rather extensively, the 
sudden
disappearance
of
their website is unsettling.
Thanks,
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] Baker's Challenge

2007-11-20 Thread Bill Haskett
Thanks Ken.

I am a member of the list but don't want to subscribe to the community.  :-(

I was thinking Charles had created a link on the U2UG.org site to allow both 
submits
and comments on some of these postings, kind of like a wiki or what the old U2
suggestions used to do.

I must have misunderstood.  :-(

Bill

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Ken Hall
Sent: Monday, November 19, 2007 8:22 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] Baker's Challenge

Bill -
To subscribe to the list  [EMAIL PROTECTED]
  please visit http://listserver.u2ug.org/

Then just send your emails to [EMAIL PROTECTED]


Ken


At 07:07 PM 11/19/2007, you wrote:
Charles:

Where is the community?  I can't find that nor can I figure out how to post 
to the
Wiki.  :-(

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


RE: [U2] Unidata PE and webservices

2007-11-20 Thread Bill Haskett
Dave:

I don't believe so.  Presently, you need a Connection Pooling license to use
connection pooling via UniObjects (or U2's java connectivity).

Bill

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Walker
Sent: Tuesday, November 20, 2007 7:45 AM
To: 'u2-users@listserver.u2ug.org'
Subject: [U2] Unidata PE and webservices

Hi all,

Is there a way to use one of the two seats in UD PE for 
connection pooling? 

I'm finally making some progress with the Web Service Developer and ruby,
(after a couple of weeks butting my head against a brick wall!) 

I'd like to work with it at home over the upcoming holiday weekend if
there's a way to do so.

TIA,
--
Dave Walker
Programmer/Analyst
Ivy Hill - Louisville
(502) 473-2811

*IBM Certified Solutions Expert
*U2 Family Application Development
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] OCONV Extraction Question - Good Practice

2007-11-20 Thread Bill Haskett
Adrian:

I'm not sure about the disaster part.  We've moved from D3 to Unidata (a trying
experience) and the string handling seems to work fine.  We have code like:

CRT OCONV(VAR1, 'MD0') R(#06) :
CRT OCONV(VAR2, 'MD2') R(#10) : 
CRT OCONV(VAR3, 'MD4') R(#14)   ; ** end of output line

...and it works perfectly.  So, since FMT isn't (or at least hasn't been) as 
portable
as the string formating code (FMT wasn't part of the Adds, GA, R83, AdvPick, D3 
line
of MV), I'd say using FMT violates the guideline of make it portable.

Just a thought...

Bill

Womack, Adrian wrote:
 IMO, the only thing wrong with your example is the use of the trailing
 format strings - everyone (and I mean everyone) should be using the FMT
 function, making your example:

 CRT FMT(OCONV(VAR1,MD0),R#6 ):FMT(OCONV(VAR2,MD2),R#10
 ):FMT(OCONV(VAR3,MD4),R#14)

 The old method is a disaster waiting to happen.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of MAJ Programming
 Sent: Tuesday, 20 November 2007 2:12 PM
 To: u2-users@listserver.u2ug.org
 Subject: Re: [U2] OCONV Extraction Question - Good Practice

 Here begins the voting for differences.

 I actually do not care for the inclusion of the extra Var1.F variables
 as, mentioned earlier, is that variable used elsewhere? Plus, it implies
 that it maybe part of a calculation instead of an upcoming, disposable
 CRT statement.

 Will I rot as I use this CRT statement?

 CRT OCONV(VAR1,MD0)R#6': :OCONV(VAR2,MD2)R#10:
 :OCONV(VAR3,MD4)R#14.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] UniData 7.1 Manuals online - updated

2007-11-20 Thread Bill Haskett
Wally:

Is there a way to download them all at one time?  Do these manuals have a 
manual
manager; like a master menu/pdf document where a search searches all manuals?

Thanks,

Bill 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Wally Terhune
Sent: Tuesday, November 20, 2007 7:59 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] UniData 7.1 Manuals online - updated

I just wanted to let you all know that the UniData 7.1 manuals have all
been refreshed on the IBM public web site.

They are the most recent version - note the cover page 'September 2007'.
Included is a new manual: U2 Web Services Developer.

Both the zip file (which contains all of the manuals) and the individual
manuals are all the September 2007 version.

http://www.ibm.com/software/data/u2/pubs/library/71unidata/

Note for UniVerse users:
We will be re-publishing all UV manuals sometime in the next couple of
months, as well.

Regards,
   

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


Re: [U2] OCONV Extraction Question - Good Practice

2007-11-20 Thread Susan Lynch
Also, according to the UniBasic Reference Manual, The FMT function can 
produce different results based on the BASICTYPE setting.  So, if we are 
going to discuss programming standards, do we have to discuss them for each 
BASICTYPE flavor?  The manual documents what happens with BASICTYPE U, but 
those of us who are in SB shops are required to use BASICTYPE P, where the 
documentation does not often specify what the variations will be.


Susan M. Lynch
F.W. Davison  Company, Inc.

- Original Message - 
From: Bill Haskett [EMAIL PROTECTED]

To: u2-users@listserver.u2ug.org
Sent: Tuesday, November 20, 2007 3:14 PM
Subject: RE: [U2] OCONV Extraction Question - Good Practice



Adrian:

I'm not sure about the disaster part.  We've moved from D3 to Unidata (a 
trying
experience) and the string handling seems to work fine.  We have code 
like:


CRT OCONV(VAR1, 'MD0') R(#06) :
CRT OCONV(VAR2, 'MD2') R(#10) :
CRT OCONV(VAR3, 'MD4') R(#14)   ; ** end of output line

...and it works perfectly.  So, since FMT isn't (or at least hasn't been) 
as portable
as the string formating code (FMT wasn't part of the Adds, GA, R83, 
AdvPick, D3 line

of MV), I'd say using FMT violates the guideline of make it portable.

Just a thought...

Bill


Womack, Adrian wrote:

IMO, the only thing wrong with your example is the use of the trailing
format strings - everyone (and I mean everyone) should be using the FMT
function, making your example:

CRT FMT(OCONV(VAR1,MD0),R#6 ):FMT(OCONV(VAR2,MD2),R#10
):FMT(OCONV(VAR3,MD4),R#14)

The old method is a disaster waiting to happen.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of MAJ Programming
Sent: Tuesday, 20 November 2007 2:12 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] OCONV Extraction Question - Good Practice

Here begins the voting for differences.

I actually do not care for the inclusion of the extra Var1.F variables
as, mentioned earlier, is that variable used elsewhere? Plus, it implies
that it maybe part of a calculation instead of an upcoming, disposable
CRT statement.

Will I rot as I use this CRT statement?

CRT OCONV(VAR1,MD0)R#6': :OCONV(VAR2,MD2)R#10:
:OCONV(VAR3,MD4)R#14.

---
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] Zip File For UniData Documentation

2007-11-20 Thread Bob Wyatt
http://www-306.ibm.com/software/data/u2/pubs/library/

Regards, 

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


RE: [U2] UniData 7.1 Manuals online - updated

2007-11-20 Thread Wally Terhune
Bill H wrote:
Is there a way to download them all at one time?  Do these manuals have a
manual
manager; like a master menu/pdf document where a search searches all
manuals?

The zip file is up one level. This contains all of the manuals in a single
download.
http://www.ibm.com/software/data/u2/pubs/library/

On that screen:
UniData V7.1.x (all documents -- download ZIP file)
   
 Wally Terhune 
 SWG Client Support -  
 Information Management Software   
 U2 Support Architect b IBM U2 
 Client Support Team   
 4700 S. Syracuse St., Denver, 
 CO  80237 
 Tel: (303) 773-7969   T/L 
 656-7969  
 Mobile: (303) 807-6222
 [EMAIL PROTECTED] 
   
   
   
   
 Register today for the premier
 U2 technical event!   

[demime 1.01d removed an attachment of type image/jpeg which had a name of 
16346133.jpg]

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


RE: [U2] UniData 7.1 Manuals online - updated

2007-11-20 Thread Bill Haskett
Thanks Bob and Wally.  :-)

Bill 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Wally Terhune
Sent: Tuesday, November 20, 2007 1:27 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] UniData 7.1 Manuals online - updated

Bill H wrote:
Is there a way to download them all at one time?  Do these manuals have a
manual manager; like a master menu/pdf document where a search searches all
manuals?

The zip file is up one level. This contains all of the manuals in a single
download.

http://www.ibm.com/software/data/u2/pubs/library/

On that screen:
UniData V7.1.x (all documents -- download ZIP file)
   

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


[U2] UniObjects 101 - Java

2007-11-20 Thread Brutzman, Bill
I am struggling with the UniObjects demos in the c:\IBM\UniDK\lib\asjava.

Are there any easier beginner-level (Hello World) examples of UniObject Java
code available?

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


[U2] Richard Taylor/VERTIS is out of the office.

2007-11-20 Thread Richard Taylor
I will be out of the office starting Tue 07/17/2007 and will not return
until Mon 11/26/2007.

I will respond to your message when I return.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Baker's Challenge

2007-11-20 Thread Charles Barouch

Bill,
  The eventual goal is to post the specifications. First we need more 
feedback and, I assume, some alternate specs to post alongside mine.
  So, Bill, you didn't misunderstand, you just understood before it was 
true.


   - Chuck Getting There Eventually Barouch

Bill Haskett wrote:

I was thinking Charles had created a link on the U2UG.org site to allow both 
submits
and comments on some of these postings, kind of like a wiki or what the old U2
suggestions used to do.

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


Re: [U2] UniObjects 101 - Java

2007-11-20 Thread Dawn Wolthuis
I just checked and my efforts with UOJ have been backed up and are not
handy right now, but I thought that Wendy put some examples on the
pickwiki.com site under the Java and JSP examples at
http://www.pickwiki.com/cgi-bin/wiki.pl?SourceCode

I did not review them now to be sure, but I suspect that will give an
idea.  Wendy was using JSP for the UI and you can add in an AJAX
framework like DOJO to bring it more up to date for today's
expectations in browser-based interfaces.  It is no small deal to get
this all working, by the way, even if you are already proficient in
Java.

For the backend, we coded our own connection pooling, which I gather
is no longer permitted (or you need to pay as much as if you used
IBM's connection pooling or ...?)

So, I suspect that this is NOT a Hello World out on pickwiki, but
hopefully can make it easier to figure one out.  cheers!  --dawn

On Nov 20, 2007 7:21 PM, Brutzman, Bill [EMAIL PROTECTED] wrote:
 I am struggling with the UniObjects demos in the c:\IBM\UniDK\lib\asjava.

 Are there any easier beginner-level (Hello World) examples of UniObject Java
 code available?

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




-- 
Dawn M. Wolthuis
Tincat Group, Inc.

Take and give some delight today
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/