Re: [U2] Mixed Case UV Basic Programming Standards.

2009-06-25 Thread Symeon Breen
I use camel case in all the languages i program in. In unibasic i have
capitalised verbs because i do not have the setting set to allow lowercase
verb useage.




-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Charles Stevenson
Sent: 24 June 2009 19:39
To: U2 Users List
Subject: [U2] Mixed Case UV Basic Programming Standards.

I don't like the way I use mixed case, so it tends to evolve.  Not good, 
because consistency in programming style throughout an application makes 
for easier maintenance,  maintainability is the god of software quality.

So I am wondering how others use mixed case.
Do you capitalize/lower/mix case for  commands? Operators? Variables? 
Equates? etc.
How do you use/not use special characters in variable names?

For example:
   readu OrderMaster from ORDER.MASTER, OrderMasterId locked ...
   readU OE_rec from OE_f, OE_id  locked ...
   ReadVU OE_Date From ORDER.MASTER, OE$Id,  OE$Date Locked ...
   READU order.master.rec( oe$date ) FROM order.master.file, 
order.master.id LOCKED ...
That sort of thing.

I hesitate to even ask this for fear of starting a war. So ground rules 
for this thread:

1. NOT about MERITS of Uppercase only vs. Mixed Case programming.
 I am only interested in answers from people who actually use mixed 
case.
2. NOT about GOTO.  Take it outside.
3. This is about PREFERENCE, NOT SUBSTANCE.
 By substantive I mean rules like:
- Only open a file once.
   - Readu should always have a locked clause.
 By preference I mean stuff like my example.  They are all 
functionally equivalent.
4. NO ARGUMENTS about whether someone's style is good or bad, or yours 
is better.
   Explaining why you do it a certain way is helpful, though.
   Just remember, when it comes to preferences, no two programmers 
will agree,
   yet consistent style, whate'er it be, increases maintainability.

Thanks,
Chuck Stevenson
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Mixed Case UV Basic Programming Standards.

2009-06-25 Thread Boydell, Stuart
Same 
Also leading capital letter for SubroutineLabels: 
No underscores, dots or other extraneous characters.
File handle variables are just another variable so follow the camelCase rule 
but I prefix them with fv: open 'MY.FILE.NAME' to fvMyFileName
Cheers,
Stuart Boydell



From: u2-users-boun...@listserver.u2ug.org on behalf of Larry Hiscock
Sent: Thu 25/06/2009 05:05
To: 'U2 Users List'
Subject: Re: [U2] Mixed Case UV Basic Programming Standards.



I tend to use all lower case for verbs (e.g. read, for, loop, etc), all
upper case for constants (i.e. equates -- equ TAB lit char(9)), and camel
case for variables (e.g. orderMaster, customerName, etc)

One advantage is that I can tell at a glance the difference between a
variable and a constant.

Just my $.02

Larry Hiscock
Western Computer Services

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users



 
**
This email message and any files transmitted with it are confidential and 
intended solely for the use of addressed recipient(s). If you have received 
this communication in error, please reply to this e-mail to notify the sender 
of its incorrect delivery and then delete it and your reply.  It is your 
responsibility to check this email and any attachments for viruses and defects 
before opening or sending them on. Spotless collects information about you to 
provide and market our services. For information about use, disclosure and 
access, see our privacy policy at http://www.spotless.com.au 
Please consider our environment before printing this email. 
** 

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Mixed Case UV Basic Programming Standards.

2009-06-25 Thread Les Hewkin
Does anyone else remember the days when there was only UPPER case on
terminals and line printers? Our internal standard says use upper case
only, we have twenty year old programs. When switching from an old
program to a new one written in wobbly case you tend to miss read the
code.

We do have someone who is very techy that loves wobbly case, but he is
just a bit strange, you know who you are..


Les Sherlock Hewkin 
Project Manager
Group Financial Systems
I.T. Department
Ryehill House
Ryehill Close,
Lodge Way Industrial Estate,
Northampton.
NN5 7UA

T 01604 592289 
M 07917 856195

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Boydell,
Stuart
Sent: 25 June 2009 07:29
To: U2 Users List
Subject: Re: [U2] Mixed Case UV Basic Programming Standards.

Same
Also leading capital letter for SubroutineLabels: 
No underscores, dots or other extraneous characters.
File handle variables are just another variable so follow the camelCase
rule but I prefix them with fv: open 'MY.FILE.NAME' to fvMyFileName
Cheers, Stuart Boydell



From: u2-users-boun...@listserver.u2ug.org on behalf of Larry Hiscock
Sent: Thu 25/06/2009 05:05
To: 'U2 Users List'
Subject: Re: [U2] Mixed Case UV Basic Programming Standards.



I tend to use all lower case for verbs (e.g. read, for, loop, etc), all
upper case for constants (i.e. equates -- equ TAB lit char(9)), and
camel case for variables (e.g. orderMaster, customerName, etc)

One advantage is that I can tell at a glance the difference between a
variable and a constant.

Just my $.02

Larry Hiscock
Western Computer Services

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users



 
**
This email message and any files transmitted with it are confidential
and intended solely for the use of addressed recipient(s). If you have
received this communication in error, please reply to this e-mail to
notify the sender of its incorrect delivery and then delete it and your
reply.  It is your responsibility to check this email and any
attachments for viruses and defects before opening or sending them on.
Spotless collects information about you to provide and market our
services. For information about use, disclosure and access, see our
privacy policy at http://www.spotless.com.au Please consider our
environment before printing this email. 
** 

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

html
head
meta http-equiv=Content-type content=text/html; charset=UTF-8
/head
body
P style=MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0ptSPAN 
style=FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'This e-mail and any 
attachments are confidential and intended solely for the use of the addressee 
only. If you have received this message in error, you must not copy, distribute 
or disclose the contents; please notify the sender immediately and delete the 
message. /SPAN/P
P style=MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0ptSPAN 
style=FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'This message is 
attributed to the sender and may not necessarily reflect the view of Travis 
Perkins plc or its subsidiaries (Travis Perkins). Agreements binding Travis 
Perkins may not be concluded by means of e-mail communication. /SPAN/P
P style=MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0ptSPAN 
style=FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'E-mail transmissions are 
not secure and Travis Perkins accepts no responsibility for changes made to 
this 
message after it was sent. Whilst steps have been taken to ensure that this 
message is virus free, Travis Perkins accepts no liability for infection and 
recommends that you scan this e-mail and any attachments. /SPAN/P
P style=MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0ptSPAN 
style=FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'Part of Travis Perkins 
plc. Registered Office: Lodge Way House, Lodge Way, Harlestone Road, 
Northampton, NN5 7UG. /SPAN/P
/BODY
/HTML

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Mixed Case UV Basic Programming Standards.

2009-06-25 Thread Symeon Breen
Wobbly case -  lol


Yes i remember years ago we had a chain printer that only printed caps - we
moved to a new machine and the print runs came out all funny lots of
characters missing, it took us ages to figure out it was only printing the
caps chars, the old machine uppercased everything in the spooler so we had
to copy the spooler code over as well...

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Les Hewkin
Sent: 25 June 2009 09:07
To: U2 Users List
Subject: Re: [U2] Mixed Case UV Basic Programming Standards.

Does anyone else remember the days when there was only UPPER case on
terminals and line printers? Our internal standard says use upper case
only, we have twenty year old programs. When switching from an old
program to a new one written in wobbly case you tend to miss read the
code.

We do have someone who is very techy that loves wobbly case, but he is
just a bit strange, you know who you are..


Les Sherlock Hewkin 
Project Manager
Group Financial Systems
I.T. Department
Ryehill House
Ryehill Close,
Lodge Way Industrial Estate,
Northampton.
NN5 7UA

T 01604 592289 
M 07917 856195

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Boydell,
Stuart
Sent: 25 June 2009 07:29
To: U2 Users List
Subject: Re: [U2] Mixed Case UV Basic Programming Standards.

Same
Also leading capital letter for SubroutineLabels: 
No underscores, dots or other extraneous characters.
File handle variables are just another variable so follow the camelCase
rule but I prefix them with fv: open 'MY.FILE.NAME' to fvMyFileName
Cheers, Stuart Boydell



From: u2-users-boun...@listserver.u2ug.org on behalf of Larry Hiscock
Sent: Thu 25/06/2009 05:05
To: 'U2 Users List'
Subject: Re: [U2] Mixed Case UV Basic Programming Standards.



I tend to use all lower case for verbs (e.g. read, for, loop, etc), all
upper case for constants (i.e. equates -- equ TAB lit char(9)), and
camel case for variables (e.g. orderMaster, customerName, etc)

One advantage is that I can tell at a glance the difference between a
variable and a constant.

Just my $.02

Larry Hiscock
Western Computer Services

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users



 
**
This email message and any files transmitted with it are confidential
and intended solely for the use of addressed recipient(s). If you have
received this communication in error, please reply to this e-mail to
notify the sender of its incorrect delivery and then delete it and your
reply.  It is your responsibility to check this email and any
attachments for viruses and defects before opening or sending them on.
Spotless collects information about you to provide and market our
services. For information about use, disclosure and access, see our
privacy policy at http://www.spotless.com.au Please consider our
environment before printing this email. 
** 

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

html
head
meta http-equiv=Content-type content=text/html; charset=UTF-8
/head
body
P style=MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0ptSPAN 
style=FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'This e-mail and any 
attachments are confidential and intended solely for the use of the
addressee 
only. If you have received this message in error, you must not copy,
distribute 
or disclose the contents; please notify the sender immediately and delete
the 
message. /SPAN/P
P style=MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0ptSPAN 
style=FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'This message is 
attributed to the sender and may not necessarily reflect the view of Travis 
Perkins plc or its subsidiaries (Travis Perkins). Agreements binding Travis 
Perkins may not be concluded by means of e-mail communication. /SPAN/P
P style=MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0ptSPAN 
style=FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'E-mail transmissions
are 
not secure and Travis Perkins accepts no responsibility for changes made to
this 
message after it was sent. Whilst steps have been taken to ensure that this 
message is virus free, Travis Perkins accepts no liability for infection and

recommends that you scan this e-mail and any attachments. /SPAN/P
P style=MARGIN-TOP: 0pt; MARGIN-BOTTOM: 0ptSPAN 
style=FONT-SIZE: 8.2pt; FONT-FAMILY: 'MS Sans Serif'Part of Travis
Perkins 
plc. Registered Office: Lodge Way House, Lodge Way, Harlestone Road, 
Northampton, NN5 7UG. /SPAN/P
/BODY
/HTML

___
U2-Users mailing list
U2-Users@listserver.u2ug.org

Re: [U2] Mixed Case UV Basic Programming Standards.

2009-06-25 Thread Brian Leach
Hi

I use mixed case using the same capitalization as for Delphi and VB (rather
than camelCase for C# and Java).

OpenSeq
NumberOfFields = DCount(SomeVariable, @FM)

However I use upper case to distinguish things that are 'special' e.g.
equate literals, file and select variables, common variables and compiler
directives. That way they stand out. 

I also use upper case for STOP and the main RETURN from an external
subroutine, which helps to distinguish it from the Return from a local
GoSub.

I don't worry about searching since the editors I use are capable of
searching case-independently, and you can always write an IDescriptor to do
an UPCASE(@RECORD) if you want to search in a source file. In fact,
generally I find doing a SELECT with a LIKE clause on that is faster than
using the SEARCH command.

There should be no need to do anything special to format your comments since
any editor worth using will distinguish these (as a bare minimum). I have a
simple 'autodoc' markup in the comments that makes it easy to generate
technical docs. 

So, putting it all together:

PROGRAM ShowStuff
*-
*  @@Name: ShowStuff
*  @@Project : Demo
*   (other autodoc header info here)
*-
*  @@Info{
*Shows some stuff.
*bAnd some other comments in here with HTML markups/b
*  }
*-
* (other autodoc comments here: modifications, keywords, todo etc.
*-
* version stamp goes in here - assigned to a variable so it compiles into
* the object and I can then rip it from the string table.

VERDATA = Version=001002003;
VERDATA:= VerDate=12345;
VERDATA:= VerDesc=Short Description here;
(etc)

*-
$INCLUDE BOOK_TITLES.h

Open BOOK_TITLES To TITLES Else
   Crt Cannot open the TITLES File
   RETURN
End

Execute SSELECT BOOK_TITLES, SELECT.  SLIST
Fin = @False
Loop
   ReadNext TitleId From SLIST Else 
 Fin = @True
   End
Until Fin Do
  GoSub ShowISBN
Repeat

RETURN

*--
*  ShowISBN: show the title id, ISBN and price
*--
ShowISBN:
  Read TitleRec From TITLES,TitleId Then 
 Crt TitleId, TitleRecBOOK_TITLES.ISBN,
OConv(TitleRecBOOK_TITLES.PRICE,MD2)
  End
  Return


I find it much more legible, since I spent at least half of my life in
client languages. But I understand the point of view of those raised on
upper case only who don't use modern (grin) languages, and may initially
find it confusing. It's just a question of what you're used to.

Incidentally, this has evolved over the years. I started off upper case (no
other choice back then), went to lower case in the 'C/UNIX' age, and then
camelCase before settling on this style. When I go back to older code I can
see that this one works best.


But the main thing is to be consistent with your style and use a good
editor.


Brian

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Mixed Case UV Basic Programming Standards.

2009-06-25 Thread Brian Leach

Of course it doesn't help the example when your mail client screws up your
formatting...


No, I didn't put the Loop on the same line.

sigh

Brian
 

 
 Execute SSELECT BOOK_TITLES, SELECT.  SLIST Fin = @False Loop
ReadNext TitleId From SLIST Else 
  Fin = @True
End
 Until Fin Do
   GoSub ShowISBN
 Repeat
 
 RETURN

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Mixed Case UV Basic Programming Standards.

2009-06-25 Thread Symeon Breen
An important point there from Brian on editors, yes the editors we use (no
one writes code in ed do they?) will colour highlight verbs, literals,
comments, variables etc + do case insensitive searches..




-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian Leach
Sent: 25 June 2009 10:14
To: 'U2 Users List'
Subject: Re: [U2] Mixed Case UV Basic Programming Standards.

Hi

I use mixed case using the same capitalization as for Delphi and VB (rather
than camelCase for C# and Java).

OpenSeq
NumberOfFields = DCount(SomeVariable, @FM)

However I use upper case to distinguish things that are 'special' e.g.
equate literals, file and select variables, common variables and compiler
directives. That way they stand out. 

I also use upper case for STOP and the main RETURN from an external
subroutine, which helps to distinguish it from the Return from a local
GoSub.

I don't worry about searching since the editors I use are capable of
searching case-independently, and you can always write an IDescriptor to do
an UPCASE(@RECORD) if you want to search in a source file. In fact,
generally I find doing a SELECT with a LIKE clause on that is faster than
using the SEARCH command.

There should be no need to do anything special to format your comments since
any editor worth using will distinguish these (as a bare minimum). I have a
simple 'autodoc' markup in the comments that makes it easy to generate
technical docs. 

So, putting it all together:

PROGRAM ShowStuff
*-
*  @@Name: ShowStuff
*  @@Project : Demo
*   (other autodoc header info here)
*-
*  @@Info{
*Shows some stuff.
*bAnd some other comments in here with HTML markups/b
*  }
*-
* (other autodoc comments here: modifications, keywords, todo etc.
*-
* version stamp goes in here - assigned to a variable so it compiles into
* the object and I can then rip it from the string table.

VERDATA = Version=001002003;
VERDATA:= VerDate=12345;
VERDATA:= VerDesc=Short Description here;
(etc)

*-
$INCLUDE BOOK_TITLES.h

Open BOOK_TITLES To TITLES Else
   Crt Cannot open the TITLES File
   RETURN
End

Execute SSELECT BOOK_TITLES, SELECT.  SLIST
Fin = @False
Loop
   ReadNext TitleId From SLIST Else 
 Fin = @True
   End
Until Fin Do
  GoSub ShowISBN
Repeat

RETURN

*--
*  ShowISBN: show the title id, ISBN and price
*--
ShowISBN:
  Read TitleRec From TITLES,TitleId Then 
 Crt TitleId, TitleRecBOOK_TITLES.ISBN,
OConv(TitleRecBOOK_TITLES.PRICE,MD2)
  End
  Return


I find it much more legible, since I spent at least half of my life in
client languages. But I understand the point of view of those raised on
upper case only who don't use modern (grin) languages, and may initially
find it confusing. It's just a question of what you're used to.

Incidentally, this has evolved over the years. I started off upper case (no
other choice back then), went to lower case in the 'C/UNIX' age, and then
camelCase before settling on this style. When I go back to older code I can
see that this one works best.


But the main thing is to be consistent with your style and use a good
editor.


Brian

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] What Program Am I?

2009-06-25 Thread Brett Callacher
Agreed about use of SYSTEM(9001), however as it is not clear on the platform 
there is one caveat if you are using UniObjects.  You may need to ensure that 
you are using at least UV 10.2.4 as some previous versions did a hang on 
consecutive calls to this function (Issue 8283).  Am not sure when this bug was 
introduced so you may be ok.

phil walker p...@gnosys.co.nz wrote in message 
news:6806801183013245804b6a7c6b34750715a...@hera.gnosys.local...
 Depending on the version of UV you are on you should be able to access
 SYSTEM(9001) from memory. This is an array which contains the call
 stack.

  -Original Message-
  From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
  boun...@listserver.u2ug.org] On Behalf Of David A Barrett
  Sent: Wednesday, 24 June 2009 8:46 a.m.
  To: u2-users@listserver.u2ug.org
  Subject: [U2] What Program Am I?
 
  We've got a UV client/server application with a thick VB client.  The
  vintage is around 1997, and the architecture has a debug mode that I
  leave
SNIP
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Mixed Case UV Basic Programming Standards.

2009-06-25 Thread Ron Hutchings

Yeah, no one would be silly enough to still be using ED.  Just because you can 
count on it being on every client machine since it is delivered with the 
standard system.  Nobody could possibly be more productive in ED then any of 
the color sensitive editors that may not lock records while two people are in 
the same record.

 From: syme...@gmail.com
 To: u2-users@listserver.u2ug.org
 Date: Thu, 25 Jun 2009 10:58:55 +0100
 Subject: Re: [U2] Mixed Case UV Basic Programming Standards.
 
 An important point there from Brian on editors, yes the editors we use (no
 one writes code in ed do they?) will colour highlight verbs, literals,
 comments, variables etc + do case insensitive searches..
 
 
 
 
 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian Leach
 Sent: 25 June 2009 10:14
 To: 'U2 Users List'
 Subject: Re: [U2] Mixed Case UV Basic Programming Standards.
 
 Hi
 
 I use mixed case using the same capitalization as for Delphi and VB (rather
 than camelCase for C# and Java).
 
 OpenSeq
 NumberOfFields = DCount(SomeVariable, @FM)
 
 However I use upper case to distinguish things that are 'special' e.g.
 equate literals, file and select variables, common variables and compiler
 directives. That way they stand out. 
 
 I also use upper case for STOP and the main RETURN from an external
 subroutine, which helps to distinguish it from the Return from a local
 GoSub.
 
 I don't worry about searching since the editors I use are capable of
 searching case-independently, and you can always write an IDescriptor to do
 an UPCASE(@RECORD) if you want to search in a source file. In fact,
 generally I find doing a SELECT with a LIKE clause on that is faster than
 using the SEARCH command.
 
 There should be no need to do anything special to format your comments since
 any editor worth using will distinguish these (as a bare minimum). I have a
 simple 'autodoc' markup in the comments that makes it easy to generate
 technical docs. 
 
 So, putting it all together:
 
 PROGRAM ShowStuff
 *-
 *  @@Name: ShowStuff
 *  @@Project : Demo
 *   (other autodoc header info here)
 *-
 *  @@Info{
 *Shows some stuff.
 *bAnd some other comments in here with HTML markups/b
 *  }
 *-
 * (other autodoc comments here: modifications, keywords, todo etc.
 *-
 * version stamp goes in here - assigned to a variable so it compiles into
 * the object and I can then rip it from the string table.
 
 VERDATA = Version=001002003;
 VERDATA:= VerDate=12345;
 VERDATA:= VerDesc=Short Description here;
 (etc)
 
 *-
 $INCLUDE BOOK_TITLES.h
 
 Open BOOK_TITLES To TITLES Else
Crt Cannot open the TITLES File
RETURN
 End
 
 Execute SSELECT BOOK_TITLES, SELECT.  SLIST
 Fin = @False
 Loop
ReadNext TitleId From SLIST Else 
  Fin = @True
End
 Until Fin Do
   GoSub ShowISBN
 Repeat
 
 RETURN
 
 *--
 *  ShowISBN: show the title id, ISBN and price
 *--
 ShowISBN:
   Read TitleRec From TITLES,TitleId Then 
  Crt TitleId, TitleRecBOOK_TITLES.ISBN,
 OConv(TitleRecBOOK_TITLES.PRICE,MD2)
   End
   Return
 
 
 I find it much more legible, since I spent at least half of my life in
 client languages. But I understand the point of view of those raised on
 upper case only who don't use modern (grin) languages, and may initially
 find it confusing. It's just a question of what you're used to.
 
 Incidentally, this has evolved over the years. I started off upper case (no
 other choice back then), went to lower case in the 'C/UNIX' age, and then
 camelCase before settling on this style. When I go back to older code I can
 see that this one works best.
 
 
 But the main thing is to be consistent with your style and use a good
 editor.
 
 
 Brian
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users

_
Windows Live™: Keep your life in sync. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Mixed Case UV Basic Programming Standards.

2009-06-25 Thread Joshua Gallant
People use something other than ED?  For the most part, all programmers
on our staff do use the ED editor but there are a few of us who like the
functions like syntax highlighting, etc.  We code in all UPPER case
here.  We've had programs around for 30 years so the base programs were
always uppercase and we just stuck with it over the years.

- Josh


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Symeon Breen
Sent: Thursday, June 25, 2009 5:59 AM
To: 'U2 Users List'
Subject: Re: [U2] Mixed Case UV Basic Programming Standards.

An important point there from Brian on editors, yes the editors we use
(no
one writes code in ed do they?) will colour highlight verbs, literals,
comments, variables etc + do case insensitive searches..




-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian Leach
Sent: 25 June 2009 10:14
To: 'U2 Users List'
Subject: Re: [U2] Mixed Case UV Basic Programming Standards.

Hi

I use mixed case using the same capitalization as for Delphi and VB
(rather
than camelCase for C# and Java).

OpenSeq
NumberOfFields = DCount(SomeVariable, @FM)

However I use upper case to distinguish things that are 'special' e.g.
equate literals, file and select variables, common variables and
compiler
directives. That way they stand out. 

I also use upper case for STOP and the main RETURN from an external
subroutine, which helps to distinguish it from the Return from a local
GoSub.

I don't worry about searching since the editors I use are capable of
searching case-independently, and you can always write an IDescriptor to
do
an UPCASE(@RECORD) if you want to search in a source file. In fact,
generally I find doing a SELECT with a LIKE clause on that is faster
than
using the SEARCH command.

There should be no need to do anything special to format your comments
since
any editor worth using will distinguish these (as a bare minimum). I
have a
simple 'autodoc' markup in the comments that makes it easy to generate
technical docs. 

So, putting it all together:

PROGRAM ShowStuff
*-
*  @@Name: ShowStuff
*  @@Project : Demo
*   (other autodoc header info here)
*-
*  @@Info{
*Shows some stuff.
*bAnd some other comments in here with HTML markups/b
*  }
*-
* (other autodoc comments here: modifications, keywords, todo etc.
*-
* version stamp goes in here - assigned to a variable so it compiles
into
* the object and I can then rip it from the string table.

VERDATA = Version=001002003;
VERDATA:= VerDate=12345;
VERDATA:= VerDesc=Short Description here;
(etc)

*-
$INCLUDE BOOK_TITLES.h

Open BOOK_TITLES To TITLES Else
   Crt Cannot open the TITLES File
   RETURN
End

Execute SSELECT BOOK_TITLES, SELECT.  SLIST
Fin = @False
Loop
   ReadNext TitleId From SLIST Else 
 Fin = @True
   End
Until Fin Do
  GoSub ShowISBN
Repeat

RETURN

*--
*  ShowISBN: show the title id, ISBN and price
*--
ShowISBN:
  Read TitleRec From TITLES,TitleId Then 
 Crt TitleId, TitleRecBOOK_TITLES.ISBN,
OConv(TitleRecBOOK_TITLES.PRICE,MD2)
  End
  Return


I find it much more legible, since I spent at least half of my life in
client languages. But I understand the point of view of those raised on
upper case only who don't use modern (grin) languages, and may initially
find it confusing. It's just a question of what you're used to.

Incidentally, this has evolved over the years. I started off upper case
(no
other choice back then), went to lower case in the 'C/UNIX' age, and
then
camelCase before settling on this style. When I go back to older code I
can
see that this one works best.


But the main thing is to be consistent with your style and use a good
editor.


Brian

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Mixed Case UV Basic Programming Standards.

2009-06-25 Thread Symeon Breen
Probably ot here - but i was NOT saying it was silly, I agree you can count
on ED and i do use ED / AE every day i am working on a u2 box, but when it
comes to sitting down and writing, or debugging some code i think most
people do use a more visual editor, the one that comes free with u2, (old
unidebugger or the new eclipse based one) does indeed lock the item so no
worries there.

The point I was making is that capitalising certain parts of your code is
not as necessary as it stands out anyway in a visual editor, and also that
such editors allow case insensitive searching as well.



-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Ron Hutchings
Sent: 25 June 2009 13:45
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Mixed Case UV Basic Programming Standards.


Yeah, no one would be silly enough to still be using ED.  Just because you
can count on it being on every client machine since it is delivered with the
standard system.  Nobody could possibly be more productive in ED then any of
the color sensitive editors that may not lock records while two people are
in the same record.

 From: syme...@gmail.com
 To: u2-users@listserver.u2ug.org
 Date: Thu, 25 Jun 2009 10:58:55 +0100
 Subject: Re: [U2] Mixed Case UV Basic Programming Standards.
 
 An important point there from Brian on editors, yes the editors we use (no
 one writes code in ed do they?) will colour highlight verbs, literals,
 comments, variables etc + do case insensitive searches..
 
 
 
 
 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian Leach
 Sent: 25 June 2009 10:14
 To: 'U2 Users List'
 Subject: Re: [U2] Mixed Case UV Basic Programming Standards.
 
 Hi
 
 I use mixed case using the same capitalization as for Delphi and VB
(rather
 than camelCase for C# and Java).
 
 OpenSeq
 NumberOfFields = DCount(SomeVariable, @FM)
 
 However I use upper case to distinguish things that are 'special' e.g.
 equate literals, file and select variables, common variables and compiler
 directives. That way they stand out. 
 
 I also use upper case for STOP and the main RETURN from an external
 subroutine, which helps to distinguish it from the Return from a local
 GoSub.
 
 I don't worry about searching since the editors I use are capable of
 searching case-independently, and you can always write an IDescriptor to
do
 an UPCASE(@RECORD) if you want to search in a source file. In fact,
 generally I find doing a SELECT with a LIKE clause on that is faster than
 using the SEARCH command.
 
 There should be no need to do anything special to format your comments
since
 any editor worth using will distinguish these (as a bare minimum). I have
a
 simple 'autodoc' markup in the comments that makes it easy to generate
 technical docs. 
 
 So, putting it all together:
 
 PROGRAM ShowStuff
 *-
 *  @@Name: ShowStuff
 *  @@Project : Demo
 *   (other autodoc header info here)
 *-
 *  @@Info{
 *Shows some stuff.
 *bAnd some other comments in here with HTML markups/b
 *  }
 *-
 * (other autodoc comments here: modifications, keywords, todo etc.
 *-
 * version stamp goes in here - assigned to a variable so it compiles into
 * the object and I can then rip it from the string table.
 
 VERDATA = Version=001002003;
 VERDATA:= VerDate=12345;
 VERDATA:= VerDesc=Short Description here;
 (etc)
 
 *-
 $INCLUDE BOOK_TITLES.h
 
 Open BOOK_TITLES To TITLES Else
Crt Cannot open the TITLES File
RETURN
 End
 
 Execute SSELECT BOOK_TITLES, SELECT.  SLIST
 Fin = @False
 Loop
ReadNext TitleId From SLIST Else 
  Fin = @True
End
 Until Fin Do
   GoSub ShowISBN
 Repeat
 
 RETURN
 
 *--
 *  ShowISBN: show the title id, ISBN and price
 *--
 ShowISBN:
   Read TitleRec From TITLES,TitleId Then 
  Crt TitleId, TitleRecBOOK_TITLES.ISBN,
 OConv(TitleRecBOOK_TITLES.PRICE,MD2)
   End
   Return
 
 
 I find it much more legible, since I spent at least half of my life in
 client languages. But I understand the point of view of those raised on
 upper case only who don't use modern (grin) languages, and may initially
 find it confusing. It's just a question of what you're used to.
 
 Incidentally, this has evolved over the years. I started off upper case
(no
 other choice back then), went to lower case in the 'C/UNIX' age, and then
 camelCase before settling on this style. When I go back to older code I
can
 see that this one works best.
 
 
 

[U2] wGet question for Robert Porter

2009-06-25 Thread u2list0512

Sorry, this is a re-post with a more specific subject


I have opted for the wGet method.
I give up trying to make any other version work. This one does with 
one very minor exception. I redirect the output to a type 1 file. 
Problem is, the filename it creates is  50 characters in length and 
I can't read or delete it from Universe.


Is there an option somehow that I can't see that will let me 
specifically name that file it gets?














At 6/23/2009 04:15 PM, you wrote:

I should have mentioned that wget runs on Windows too.

I've also heard of cURL.  I'm not sure if we started doing stuff like this
before cURL came out or not, it's just the particular tool we ended up
using for that job and it's useful so we keep using it for more stuff as
it comes up.  It may or may not be as good as, or better than, cURL, but
we haven't yet come across a need for functionality that isn't in wget.

Maybe it's just me but I find the callHTTP stuff fiddly and obscure.
Somehow it's usually easier to do an EXECUTE sh -c wget and capture
the output to a file in a directory that's set up as a type 19 file.


Dave Barrett,
Lawyers' Professional Indemnity Company
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

__ Information from ESET NOD32 Antivirus, version of virus 
signature database 4183 (20090624) __


The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


Curt Lashley
2803 North Boulevard
Tampa, FL 33602
Cell: (813) 293-2878 or (800) 886-2878
Home: (813) 226-2878 or (800) 524-2878
Fax: (813) 229-2878

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

__ Information from ESET NOD32 Antivirus, version of virus 
signature database 4186 (20090624) __


The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




Curt Lashley
2803 North Boulevard
Tampa, FL 33602
Cell: (813) 293-2878 or (800) 886-2878
Home: (813) 226-2878 or (800) 524-2878
Fax: (813) 229-2878

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Mixed Case UV Basic Programming Standards.

2009-06-25 Thread Norman Morgan
You're probably right about ED.  After all, EDLIN is probably still
lurking somewhere in the belly of all that Windows flash and dazzle.
Lowest common denominator and all that...

After 16 years in the MV world, I've never really learned ED, because I
was introduced to Pick/D3 and SB+ at the same time.  Since I came to
this environment after 9 years on a Wang VS with its modeless editor, SE
was the most natural thing to use, and I still do, although I now prefer
AccuTerm's WED.


Norman Morgan  nmor...@brake.com  http://www.brake.com

Children seldom misquote you.  In fact, they usually repeat
word for word what you shouldn't have said.


 

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org 
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of 
 Ron Hutchings
 Sent: Thursday, June 25, 2009 7:45 AM
 To: u2-users@listserver.u2ug.org
 Subject: Re: [U2] Mixed Case UV Basic Programming Standards.
 
 
 Yeah, no one would be silly enough to still be using ED.  
 Just because you can count on it being on every client 
 machine since it is delivered with the standard system.  
 Nobody could possibly be more productive in ED then any of 
 the color sensitive editors that may not lock records while 
 two people are in the same record.
 
  From: syme...@gmail.com
  To: u2-users@listserver.u2ug.org
  Date: Thu, 25 Jun 2009 10:58:55 +0100
  Subject: Re: [U2] Mixed Case UV Basic Programming Standards.
  
  An important point there from Brian on editors, yes the 
 editors we use (no
  one writes code in ed do they?) will colour highlight 
 verbs, literals,
  comments, variables etc + do case insensitive searches..
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] wGet question for Robert Porter

2009-06-25 Thread George Gallen
I've used the following:

0047:SITE=http://wwwapps.ups.com/WebTracking/;
0048:PART1=OnlineTool?submit=TrackInquiryNumber1=:TRKID
0049:PART2=InquiryNumber2=InquiryNumber3=InquiryNumber4=
0050:PART3=InquiryNumber5=TypeOfInquiryNumber=T
0051:PART4=ups_HTML_License=:ACCESSKEY
0052:FULLREQ=SITE:PART1:PART2:PART3:PART4
0053:CMD='/usr/mbin/wget -q -O - ':FULLREQ:''
0054:EXECUTE SH -c ':CMD:' CAPTURING JUNK
0055:HTML=JUNK

The -q put in quiet mode,
and the -O sends the output to a file, which in this case is - or STDOUT
   which gets captured by CAPTURING, and returned to UV

George

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of u2list0...@curt.com
 Sent: Thursday, June 25, 2009 9:13 AM
 To: U2 Users List
 Subject: [U2] wGet question for Robert Porter

 Sorry, this is a re-post with a more specific subject

 I have opted for the wGet method.
 I give up trying to make any other version work. This one does with
 one very minor exception. I redirect the output to a type 1 file.
 Problem is, the filename it creates is  50 characters in length and
 I can't read or delete it from Universe.
 
 Is there an option somehow that I can't see that will let me
 specifically name that file it gets?












 At 6/23/2009 04:15 PM, you wrote:
 I should have mentioned that wget runs on Windows too.
 
 I've also heard of cURL.  I'm not sure if we started doing stuff like
 this
 before cURL came out or not, it's just the particular tool we ended
 up
 using for that job and it's useful so we keep using it for more stuff
 as
 it comes up.  It may or may not be as good as, or better than, cURL,
 but
 we haven't yet come across a need for functionality that isn't in
 wget.
 
 Maybe it's just me but I find the callHTTP stuff fiddly and obscure.
 Somehow it's usually easier to do an EXECUTE sh -c wget and
 capture
 the output to a file in a directory that's set up as a type 19 file.
 
 
 Dave Barrett,
 Lawyers' Professional Indemnity Company
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 
 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 4183 (20090624) __
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
 
 Curt Lashley
 2803 North Boulevard
 Tampa, FL 33602
 Cell: (813) 293-2878 or (800) 886-2878
 Home: (813) 226-2878 or (800) 524-2878
 Fax: (813) 229-2878
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 
 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 4186 (20090624) __
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
 
 

 Curt Lashley
 2803 North Boulevard
 Tampa, FL 33602
 Cell: (813) 293-2878 or (800) 886-2878
 Home: (813) 226-2878 or (800) 524-2878
 Fax: (813) 229-2878

 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Unix mail server?

2009-06-25 Thread Burwell, Ed
Here's a high-level view of what I'm envisioning:

1. Our Unidata application sends an email to the outside world, giving
the recipient certain options.
2. The recipient hits REPLY, types a few characters and hits SEND.
3. Our rs/6000 receives the email and put it somewhere.  
4. Our Unidata application could periodically check that somewhere for
received mail and do whatever with it.

Thanks for your responses so far.
 
Ed Burwell
Consultant
Data Processing
 
CASIO AMERICA, INC.
570 Mt. Pleasant Avenue
Dover, NJ  07801
973-361-5400 x1512
email: eburw...@casioamerica.com mailto:eburw...@casioamerica.com 
www.casio.com http://www.casio.com 


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Larry Hiscock
Sent: Wednesday, June 24, 2009 7:22 PM
To: 'U2 Users List'
Subject: Re: [U2] Unix mail server?

In short, yes, however, the first question should be: what are you
planning to do with the mail you receive?  I wouldn't recommend using
your application server as a mail server, since to do that, you'd have
to expose it, at least to some degree, to the outside world.

Larry Hiscock
Western Computer Services


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Burwell, Ed
Sent: Wednesday, June 24, 2009 3:45 PM
To: U2 Users List
Subject: [U2] Unix mail server?

We can send email from our rs/6000 (AIX version 5.3) using sendmail and
it works great.

Is it possible to receive email also?

Thanks.

Ed

(We are running Unidata version 7.1)

__
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
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

__
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.
__

__
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
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] wGet question for Robert Porter

2009-06-25 Thread u2list0512

Thanks George, I'll try that method now.

At 6/25/2009 09:34 AM, you wrote:

I've used the following:

0047:SITE=http://wwwapps.ups.com/WebTracking/;
0048:PART1=OnlineTool?submit=TrackInquiryNumber1=:TRKID
0049:PART2=InquiryNumber2=InquiryNumber3=InquiryNumber4=
0050:PART3=InquiryNumber5=TypeOfInquiryNumber=T
0051:PART4=ups_HTML_License=:ACCESSKEY
0052:FULLREQ=SITE:PART1:PART2:PART3:PART4
0053:CMD='/usr/mbin/wget -q -O - ':FULLREQ:''
0054:EXECUTE SH -c ':CMD:' CAPTURING JUNK
0055:HTML=JUNK

The -q put in quiet mode,
and the -O sends the output to a file, which in this case is - or STDOUT
   which gets captured by CAPTURING, and returned to UV

George

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of u2list0...@curt.com
 Sent: Thursday, June 25, 2009 9:13 AM
 To: U2 Users List
 Subject: [U2] wGet question for Robert Porter

 Sorry, this is a re-post with a more specific subject

 I have opted for the wGet method.
 I give up trying to make any other version work. This one does with
 one very minor exception. I redirect the output to a type 1 file.
 Problem is, the filename it creates is  50 characters in length and
 I can't read or delete it from Universe.
 
 Is there an option somehow that I can't see that will let me
 specifically name that file it gets?












 At 6/23/2009 04:15 PM, you wrote:
 I should have mentioned that wget runs on Windows too.
 
 I've also heard of cURL.  I'm not sure if we started doing stuff like
 this
 before cURL came out or not, it's just the particular tool we ended
 up
 using for that job and it's useful so we keep using it for more stuff
 as
 it comes up.  It may or may not be as good as, or better than, cURL,
 but
 we haven't yet come across a need for functionality that isn't in
 wget.
 
 Maybe it's just me but I find the callHTTP stuff fiddly and obscure.
 Somehow it's usually easier to do an EXECUTE sh -c wget and
 capture
 the output to a file in a directory that's set up as a type 19 file.
 
 
 Dave Barrett,
 Lawyers' Professional Indemnity Company
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 
 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 4183 (20090624) __
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
 
 Curt Lashley
 2803 North Boulevard
 Tampa, FL 33602
 Cell: (813) 293-2878 or (800) 886-2878
 Home: (813) 226-2878 or (800) 524-2878
 Fax: (813) 229-2878
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 
 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 4186 (20090624) __
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
 
 

 Curt Lashley
 2803 North Boulevard
 Tampa, FL 33602
 Cell: (813) 293-2878 or (800) 886-2878
 Home: (813) 226-2878 or (800) 524-2878
 Fax: (813) 229-2878

 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

__ Information from ESET NOD32 Antivirus, version of virus 
signature database 4188 (20090625) __


The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


Curt Lashley
2803 North Boulevard
Tampa, FL 33602
Cell: (813) 293-2878 or (800) 886-2878
Home: (813) 226-2878 or (800) 524-2878
Fax: (813) 229-2878

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Unix mail server?

2009-06-25 Thread George Gallen
as others have said, regarding opening the server up to the
net, what you could also do is.

1. configure SENDMAIL on the rs/6000 to masquarade your domain
   as another server, and use a relay server.
2. configure hosts.allow/SENDMAIL to ONLY allow receipt of email
   from that relay server.

3. configure a linux box as an email server that only allows
   relaying from the rs/6000 box.

4. configure the rs/6000, an alias of an email address to append
   to a filename (ex: emailname: /tmp/EMAILIN), then setup a UV
   VOC as 1F   2/tmp   3D_SOURCE.  You can now read the
   data by ED vocentry EMAILIN

George

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Burwell, Ed
 Sent: Thursday, June 25, 2009 9:57 AM
 To: U2 Users List
 Subject: Re: [U2] Unix mail server?

 Here's a high-level view of what I'm envisioning:

 1. Our Unidata application sends an email to the outside world, giving
 the recipient certain options.
 2. The recipient hits REPLY, types a few characters and hits SEND.
 3. Our rs/6000 receives the email and put it somewhere.
 4. Our Unidata application could periodically check that somewhere
 for
 received mail and do whatever with it.

 Thanks for your responses so far.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Unix mail server?

2009-06-25 Thread Larry Hiscock
As an alternative to #4, you could also create an alias that pipes the
incoming mail to a script (which in turn could fire off a phantom) to
process the received mail and do something with it.

Larry Hiscock
Western Computer Services

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
Sent: Thursday, June 25, 2009 7:05 AM
To: U2 Users List
Subject: Re: [U2] Unix mail server?

as others have said, regarding opening the server up to the
net, what you could also do is.

1. configure SENDMAIL on the rs/6000 to masquarade your domain
   as another server, and use a relay server.
2. configure hosts.allow/SENDMAIL to ONLY allow receipt of email
   from that relay server.

3. configure a linux box as an email server that only allows
   relaying from the rs/6000 box.

4. configure the rs/6000, an alias of an email address to append
   to a filename (ex: emailname: /tmp/EMAILIN), then setup a UV
   VOC as 1F   2/tmp   3D_SOURCE.  You can now read the
   data by ED vocentry EMAILIN

George

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Burwell, Ed
 Sent: Thursday, June 25, 2009 9:57 AM
 To: U2 Users List
 Subject: Re: [U2] Unix mail server?

 Here's a high-level view of what I'm envisioning:

 1. Our Unidata application sends an email to the outside world, giving
 the recipient certain options.
 2. The recipient hits REPLY, types a few characters and hits SEND.
 3. Our rs/6000 receives the email and put it somewhere.
 4. Our Unidata application could periodically check that somewhere
 for
 received mail and do whatever with it.

 Thanks for your responses so far.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] wGet question for Robert Porter

2009-06-25 Thread Bob Witney
This doesn't appear to be in aix 5.3 ??

bob

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of
u2list0...@curt.com
Sent: 25 June 2009 15:04
To: U2 Users List
Subject: Re: [U2] wGet question for Robert Porter

Thanks George, I'll try that method now.

At 6/25/2009 09:34 AM, you wrote:
I've used the following:

0047:SITE=http://wwwapps.ups.com/WebTracking/;
0048:PART1=OnlineTool?submit=TrackInquiryNumber1=:TRKID
0049:PART2=InquiryNumber2=InquiryNumber3=InquiryNumber4=
0050:PART3=InquiryNumber5=TypeOfInquiryNumber=T
0051:PART4=ups_HTML_License=:ACCESSKEY
0052:FULLREQ=SITE:PART1:PART2:PART3:PART4
0053:CMD='/usr/mbin/wget -q -O - ':FULLREQ:''
0054:EXECUTE SH -c ':CMD:' CAPTURING JUNK
0055:HTML=JUNK

The -q put in quiet mode,
and the -O sends the output to a file, which in this case is - or
STDOUT
which gets captured by CAPTURING, and returned to UV

George

  -Original Message-
  From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
  boun...@listserver.u2ug.org] On Behalf Of u2list0...@curt.com
  Sent: Thursday, June 25, 2009 9:13 AM
  To: U2 Users List
  Subject: [U2] wGet question for Robert Porter
 
  Sorry, this is a re-post with a more specific subject
 
  I have opted for the wGet method.
  I give up trying to make any other version work. This one does with
  one very minor exception. I redirect the output to a type 1 file.
  Problem is, the filename it creates is  50 characters in length
and
  I can't read or delete it from Universe.
  
  Is there an option somehow that I can't see that will let me
  specifically name that file it gets?
 
 
 
 
 
 
 
 
 
 
 
 
  At 6/23/2009 04:15 PM, you wrote:
  I should have mentioned that wget runs on Windows too.
  
  I've also heard of cURL.  I'm not sure if we started doing stuff
like
  this
  before cURL came out or not, it's just the particular tool we
ended
  up
  using for that job and it's useful so we keep using it for more
stuff
  as
  it comes up.  It may or may not be as good as, or better than,
cURL,
  but
  we haven't yet come across a need for functionality that isn't in
  wget.
  
  Maybe it's just me but I find the callHTTP stuff fiddly and
obscure.
  Somehow it's usually easier to do an EXECUTE sh -c wget and
  capture
  the output to a file in a directory that's set up as a type 19
file.
  
  
  Dave Barrett,
  Lawyers' Professional Indemnity Company
  ___
  U2-Users mailing list
  U2-Users@listserver.u2ug.org
  http://listserver.u2ug.org/mailman/listinfo/u2-users
  
  __ Information from ESET NOD32 Antivirus, version of virus
  signature database 4183 (20090624) __
  
  The message was checked by ESET NOD32 Antivirus.
  
  http://www.eset.com
  
  Curt Lashley
  2803 North Boulevard
  Tampa, FL 33602
  Cell: (813) 293-2878 or (800) 886-2878
  Home: (813) 226-2878 or (800) 524-2878
  Fax: (813) 229-2878
  
  ___
  U2-Users mailing list
  U2-Users@listserver.u2ug.org
  http://listserver.u2ug.org/mailman/listinfo/u2-users
  
  __ Information from ESET NOD32 Antivirus, version of virus
  signature database 4186 (20090624) __
  
  The message was checked by ESET NOD32 Antivirus.
  
  http://www.eset.com
  
  
 
  Curt Lashley
  2803 North Boulevard
  Tampa, FL 33602
  Cell: (813) 293-2878 or (800) 886-2878
  Home: (813) 226-2878 or (800) 524-2878
  Fax: (813) 229-2878
 
  ___
  U2-Users mailing list
  U2-Users@listserver.u2ug.org
  http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

__ Information from ESET NOD32 Antivirus, version of virus 
signature database 4188 (20090625) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Curt Lashley
2803 North Boulevard
Tampa, FL 33602
Cell: (813) 293-2878 or (800) 886-2878
Home: (813) 226-2878 or (800) 524-2878
Fax: (813) 229-2878

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

Confidentiality Notice:  This e-mail and any attachments are intended solely 
for the addressee and may contain confidential or privileged  information.   If 
you are not the named addressee, or the person responsible for delivering the 
message to the named addressee, please notify the sender as soon as possible 
and delete the material from your computer

Re: [U2] Unix mail server?

2009-06-25 Thread Brutzman, Bill

Check out the new demo on Adobe Live Cycle Services.  While its cost is
too steep for a lot of us (~$100k), Adobe projects some interesting
ideas like... when the outside recipient gets the eMail with an Acrobat
9 pdf attachment, clicking on boxes inside the attachment launches into
the hosted JEE server Flex app that sends back a clarifying
acknowledgement to the original UniData app end-user.

While LCS has a slick GUI workflow engine and is an amazing product, I
expect that a lot of the functionality can be handled with affordable
tools.

Our purchasing manager here likes the idea (a lot) of receiving a
clarifying acknowledgement.

--Bill

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Burwell, Ed
Sent: Thursday, June 25, 2009 9:57 AM
To: U2 Users List
Subject: Re: [U2] Unix mail server?

Here's a high-level view of what I'm envisioning:

1. Our Unidata application sends an email to the outside world, giving
the recipient certain options.
2. The recipient hits REPLY, types a few characters and hits SEND.
3. Our rs/6000 receives the email and put it somewhere.  
4. Our Unidata application could periodically check that somewhere for
received mail and do whatever with it.

Thanks for your responses so far.
 
Ed Burwell
Consultant
Data Processing
 
CASIO AMERICA, INC.
570 Mt. Pleasant Avenue
Dover, NJ  07801
973-361-5400 x1512
email: eburw...@casioamerica.com mailto:eburw...@casioamerica.com
www.casio.com http://www.casio.com 


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Larry Hiscock
Sent: Wednesday, June 24, 2009 7:22 PM
To: 'U2 Users List'
Subject: Re: [U2] Unix mail server?

In short, yes, however, the first question should be: what are you
planning to do with the mail you receive?  I wouldn't recommend using
your application server as a mail server, since to do that, you'd have
to expose it, at least to some degree, to the outside world.

Larry Hiscock
Western Computer Services


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Burwell, Ed
Sent: Wednesday, June 24, 2009 3:45 PM
To: U2 Users List
Subject: [U2] Unix mail server?

We can send email from our rs/6000 (AIX version 5.3) using sendmail and
it works great.

Is it possible to receive email also?

Thanks.

Ed

(We are running Unidata version 7.1)

__
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
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

__
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.
__

__
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
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] wGet question for Robert Porter

2009-06-25 Thread Steve Romanow

Try here http://www.perzl.org/aix/ for all your aix FOSS needs.

Bob Witney wrote:

This doesn't appear to be in aix 5.3 ??

bob

  


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] wGet new failure

2009-06-25 Thread u2list0512
ok, I tried this method and I am back to my original problem. When it 
executes the DOS /c (I am running Win Server 2k3), it never comes 
back to me It hangs until I End Task on CMD.EXE


At 6/25/2009 10:04 AM, you wrote:

Thanks George, I'll try that method now.

At 6/25/2009 09:34 AM, you wrote:

I've used the following:

0047:SITE=http://wwwapps.ups.com/WebTracking/;
0048:PART1=OnlineTool?submit=TrackInquiryNumber1=:TRKID
0049:PART2=InquiryNumber2=InquiryNumber3=InquiryNumber4=
0050:PART3=InquiryNumber5=TypeOfInquiryNumber=T
0051:PART4=ups_HTML_License=:ACCESSKEY
0052:FULLREQ=SITE:PART1:PART2:PART3:PART4
0053:CMD='/usr/mbin/wget -q -O - ':FULLREQ:''
0054:EXECUTE SH -c ':CMD:' CAPTURING JUNK
0055:HTML=JUNK

The -q put in quiet mode,
and the -O sends the output to a file, which in this case is - or STDOUT
   which gets captured by CAPTURING, and returned to UV

George

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
  boun...@listserver.u2ug.org] On Behalf Of u2list0...@curt.com
 Sent: Thursday, June 25, 2009 9:13 AM
 To: U2 Users List
 Subject: [U2] wGet question for Robert Porter

 Sorry, this is a re-post with a more specific subject

 I have opted for the wGet method.
 I give up trying to make any other version work. This one does with
 one very minor exception. I redirect the output to a type 1 file.
 Problem is, the filename it creates is  50 characters in length and
 I can't read or delete it from Universe.
 
 Is there an option somehow that I can't see that will let me
 specifically name that file it gets?












 At 6/23/2009 04:15 PM, you wrote:
 I should have mentioned that wget runs on Windows too.
 
 I've also heard of cURL.  I'm not sure if we started doing stuff like
 this
 before cURL came out or not, it's just the particular tool we ended
 up
 using for that job and it's useful so we keep using it for more stuff
 as
 it comes up.  It may or may not be as good as, or better than, cURL,
 but
 we haven't yet come across a need for functionality that isn't in
 wget.
 
 Maybe it's just me but I find the callHTTP stuff fiddly and obscure.
 Somehow it's usually easier to do an EXECUTE sh -c wget and
 capture
 the output to a file in a directory that's set up as a type 19 file.
 
 
 Dave Barrett,
 Lawyers' Professional Indemnity Company
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 
 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 4183 (20090624) __
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
 
 Curt Lashley
 2803 North Boulevard
 Tampa, FL 33602
 Cell: (813) 293-2878 or (800) 886-2878
 Home: (813) 226-2878 or (800) 524-2878
 Fax: (813) 229-2878
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 
 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 4186 (20090624) __
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
 
 

 Curt Lashley
 2803 North Boulevard
 Tampa, FL 33602
 Cell: (813) 293-2878 or (800) 886-2878
 Home: (813) 226-2878 or (800) 524-2878
 Fax: (813) 229-2878

 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

__ Information from ESET NOD32 Antivirus, version of virus 
signature database 4188 (20090625) __


The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


Curt Lashley
2803 North Boulevard
Tampa, FL 33602
Cell: (813) 293-2878 or (800) 886-2878
Home: (813) 226-2878 or (800) 524-2878
Fax: (813) 229-2878

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

__ Information from ESET NOD32 Antivirus, version of virus 
signature database 4188 (20090625) __


The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




Curt Lashley
2803 North Boulevard
Tampa, FL 33602
Cell: (813) 293-2878 or (800) 886-2878
Home: (813) 226-2878 or (800) 524-2878
Fax: (813) 229-2878

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] wGet new failure

2009-06-25 Thread Steve Romanow

u2list0...@curt.com wrote:
ok, I tried this method and I am back to my original problem. When it 
executes the DOS /c (I am running Win Server 2k3), it never comes back 
to me It hangs until I End Task on CMD.EXE


These instructions are based on a unix server.  Do you have wget.exe 
installed on your server?  There is a package for win.  It will just be 
called slightly differently.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] wGet new failure

2009-06-25 Thread u2list0512



Yes, Robert gave me a link for WGET for Windows and I installed it.


Curt Lashley
2803 North Boulevard
Tampa, FL 33602
Cell: (813) 293-2878 or (800) 886-2878
Home: (813) 226-2878 or (800) 524-2878
Fax: (813) 229-2878

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] wGet new failure

2009-06-25 Thread Steve Romanow

u2list0...@curt.com wrote:



Yes, Robert gave me a link for WGET for Windows and I installed it.


Curt Lashley
2803 North Boulevard
Tampa, FL 33602
Cell: (813) 293-2878 or (800) 886-2878
Home: (813) 226-2878 or (800) 524-2878
Fax: (813) 229-2878

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
Try doing the command you are executing at the regular dos cmd prompt 
and make sure it executed and returns what you want before trying it in U2.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] wGet new failure

2009-06-25 Thread George Gallen
also try adding in -T x where x is the # of seconds to set
for a read timeout. (add in -T 4) if the site can't be reached
within 4 seconds it should return.

George

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Steve Romanow
 Sent: Thursday, June 25, 2009 10:20 AM
 To: U2 Users List
 Subject: Re: [U2] wGet new failure

 Try doing the command you are executing at the regular dos cmd prompt
 and make sure it executed and returns what you want before trying it in
 U2.
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Mixed Case UV Basic Programming Standards.

2009-06-25 Thread kishor
I didn't know how lucky I was being able to use Brian's MVDeveloper to  
code with. I had become dependant on it. It was a great time saver. I  
am now working on Univision and using ED, all the programs are in  
upper case which I don't mind, but there is no indentation and there  
are many statements on one line. The code was last amended around 1984  
when GOTO was common practice and GOSUB's with GOSUBS etc. I have had  
to purchase Textpad so I can have all the niceties of MVDeveloper.


Kishor Parmar


Quoting Joshua Gallant jgall...@cbd.com:


People use something other than ED?  For the most part, all programmers
on our staff do use the ED editor but there are a few of us who like the
functions like syntax highlighting, etc.  We code in all UPPER case
here.  We've had programs around for 30 years so the base programs were
always uppercase and we just stuck with it over the years.

- Josh


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Symeon Breen
Sent: Thursday, June 25, 2009 5:59 AM
To: 'U2 Users List'
Subject: Re: [U2] Mixed Case UV Basic Programming Standards.

An important point there from Brian on editors, yes the editors we use
(no
one writes code in ed do they?) will colour highlight verbs, literals,
comments, variables etc + do case insensitive searches..




-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian Leach
Sent: 25 June 2009 10:14
To: 'U2 Users List'
Subject: Re: [U2] Mixed Case UV Basic Programming Standards.

Hi

I use mixed case using the same capitalization as for Delphi and VB
(rather
than camelCase for C# and Java).

OpenSeq
NumberOfFields = DCount(SomeVariable, @FM)

However I use upper case to distinguish things that are 'special' e.g.
equate literals, file and select variables, common variables and
compiler
directives. That way they stand out.

I also use upper case for STOP and the main RETURN from an external
subroutine, which helps to distinguish it from the Return from a local
GoSub.

I don't worry about searching since the editors I use are capable of
searching case-independently, and you can always write an IDescriptor to
do
an UPCASE(@RECORD) if you want to search in a source file. In fact,
generally I find doing a SELECT with a LIKE clause on that is faster
than
using the SEARCH command.

There should be no need to do anything special to format your comments
since
any editor worth using will distinguish these (as a bare minimum). I
have a
simple 'autodoc' markup in the comments that makes it easy to generate
technical docs.

So, putting it all together:

PROGRAM ShowStuff
*-
*  @@Name: ShowStuff
*  @@Project : Demo
*   (other autodoc header info here)
*-
*  @@Info{
*Shows some stuff.
*bAnd some other comments in here with HTML markups/b
*  }
*-
* (other autodoc comments here: modifications, keywords, todo etc.
*-
* version stamp goes in here - assigned to a variable so it compiles
into
* the object and I can then rip it from the string table.

VERDATA = Version=001002003;
VERDATA:= VerDate=12345;
VERDATA:= VerDesc=Short Description here;
(etc)

*-
$INCLUDE BOOK_TITLES.h

Open BOOK_TITLES To TITLES Else
   Crt Cannot open the TITLES File
   RETURN
End

Execute SSELECT BOOK_TITLES, SELECT.  SLIST
Fin = @False
Loop
   ReadNext TitleId From SLIST Else
 Fin = @True
   End
Until Fin Do
  GoSub ShowISBN
Repeat

RETURN

*--
*  ShowISBN: show the title id, ISBN and price
*--
ShowISBN:
  Read TitleRec From TITLES,TitleId Then
 Crt TitleId, TitleRecBOOK_TITLES.ISBN,
OConv(TitleRecBOOK_TITLES.PRICE,MD2)
  End
  Return


I find it much more legible, since I spent at least half of my life in
client languages. But I understand the point of view of those raised on
upper case only who don't use modern (grin) languages, and may initially
find it confusing. It's just a question of what you're used to.

Incidentally, this has evolved over the years. I started off upper case
(no
other choice back then), went to lower case in the 'C/UNIX' age, and
then
camelCase before settling on this style. When I go back to older code I
can
see that this one works best.


But the main thing is to be consistent with your style and use a good
editor.


Brian

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Using ED

2009-06-25 Thread Brutzman, Bill

Using ED as an editor to write programs reminds me of the story of the
blind man.  

0. The man came to Jesus for help.
1. Jesus spat on the dry ground.
2. ...Rubbed the mud in his eyes.
3. ...Told him to wash it off.  

When the man washed his eyes, he could see.  

In this little parable, those using ED are like the blind man.  This
list is like... The Oracle.
Consider the miracle of EditPlus.

--B

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Joshua
Gallant
Sent: Thursday, June 25, 2009 8:55 AM
To: U2 Users List
Subject: Re: [U2] Mixed Case UV Basic Programming Standards.

People use something other than ED?  For the most part, all programmers
on our staff do use the ED editor but there are a few of us who like the
functions like syntax highlighting, etc.  We code in all UPPER case
here.  We've had programs around for 30 years so the base programs were
always uppercase and we just stuck with it over the years.

- Josh


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Symeon Breen
Sent: Thursday, June 25, 2009 5:59 AM
To: 'U2 Users List'
Subject: Re: [U2] Mixed Case UV Basic Programming Standards.

An important point there from Brian on editors, yes the editors we use
(no one writes code in ed do they?) will colour highlight verbs,
literals, comments, variables etc + do case insensitive searches..




-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian Leach
Sent: 25 June 2009 10:14
To: 'U2 Users List'
Subject: Re: [U2] Mixed Case UV Basic Programming Standards.

Hi

I use mixed case using the same capitalization as for Delphi and VB
(rather than camelCase for C# and Java).

OpenSeq
NumberOfFields = DCount(SomeVariable, @FM)

However I use upper case to distinguish things that are 'special' e.g.
equate literals, file and select variables, common variables and
compiler directives. That way they stand out. 

I also use upper case for STOP and the main RETURN from an external
subroutine, which helps to distinguish it from the Return from a local
GoSub.

I don't worry about searching since the editors I use are capable of
searching case-independently, and you can always write an IDescriptor to
do an UPCASE(@RECORD) if you want to search in a source file. In fact,
generally I find doing a SELECT with a LIKE clause on that is faster
than using the SEARCH command.

There should be no need to do anything special to format your comments
since any editor worth using will distinguish these (as a bare minimum).
I have a simple 'autodoc' markup in the comments that makes it easy to
generate technical docs. 

So, putting it all together:

PROGRAM ShowStuff
*-
*  @@Name: ShowStuff
*  @@Project : Demo
*   (other autodoc header info here)
*-
*  @@Info{
*Shows some stuff.
*bAnd some other comments in here with HTML markups/b
*  }
*-
* (other autodoc comments here: modifications, keywords, todo etc.
*-
* version stamp goes in here - assigned to a variable so it compiles
into
* the object and I can then rip it from the string table.

VERDATA = Version=001002003;
VERDATA:= VerDate=12345;
VERDATA:= VerDesc=Short Description here;
(etc)

*-
$INCLUDE BOOK_TITLES.h

Open BOOK_TITLES To TITLES Else
   Crt Cannot open the TITLES File
   RETURN
End

Execute SSELECT BOOK_TITLES, SELECT.  SLIST Fin = @False Loop
   ReadNext TitleId From SLIST Else 
 Fin = @True
   End
Until Fin Do
  GoSub ShowISBN
Repeat

RETURN

*--
*  ShowISBN: show the title id, ISBN and price
*--
ShowISBN:
  Read TitleRec From TITLES,TitleId Then 
 Crt TitleId, TitleRecBOOK_TITLES.ISBN,
OConv(TitleRecBOOK_TITLES.PRICE,MD2)
  End
  Return


I find it much more legible, since I spent at least half of my life in
client languages. But I understand the point of view of those raised on
upper case only who don't use modern (grin) languages, and may initially
find it confusing. It's just a question of what you're used to.

Incidentally, this has evolved over the years. I started off upper case
(no other choice back then), went to lower case in the 'C/UNIX' age, and
then camelCase before settling on this style. When I go back to older
code I can see that this one works best.


But the main thing is to be consistent with your style and use a good
editor.


Brian

___
U2-Users mailing list

Re: [U2] Using ED

2009-06-25 Thread George Gallen
I Use EditPlus, but I have found one major flaw that ED
can do without a problem.

If you want to add say, 4 spaces to the beginning a block
  of lines (to indent a block), you can't do that. whereas
  in ED, you would just set   , and r///b  (or use a #)

Anyone found a way to do this in EditPlus?

George

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Brutzman, Bill
 Sent: Thursday, June 25, 2009 11:02 AM
 To: U2 Users List
 Subject: Re: [U2] Using ED


 Using ED as an editor to write programs reminds me of the story of the
 blind man.

 0. The man came to Jesus for help.
 1. Jesus spat on the dry ground.
 2. ...Rubbed the mud in his eyes.
 3. ...Told him to wash it off.

 When the man washed his eyes, he could see.

 In this little parable, those using ED are like the blind man.  This
 list is like... The Oracle.
 Consider the miracle of EditPlus.

 --B
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Using ED

2009-06-25 Thread Edward Brown
Try ultraedit, it has a column mode that can handle this sort of thing.

Ed

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
Sent: 25 June 2009 16:18
To: U2 Users List
Subject: Re: [U2] Using ED

I Use EditPlus, but I have found one major flaw that ED
can do without a problem.

If you want to add say, 4 spaces to the beginning a block
  of lines (to indent a block), you can't do that. whereas
  in ED, you would just set   , and r///b  (or use a #)

Anyone found a way to do this in EditPlus?

George

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Brutzman, Bill
 Sent: Thursday, June 25, 2009 11:02 AM
 To: U2 Users List
 Subject: Re: [U2] Using ED


 Using ED as an editor to write programs reminds me of the story of the
 blind man.

 0. The man came to Jesus for help.
 1. Jesus spat on the dry ground.
 2. ...Rubbed the mud in his eyes.
 3. ...Told him to wash it off.

 When the man washed his eyes, he could see.

 In this little parable, those using ED are like the blind man.  This
 list is like... The Oracle.
 Consider the miracle of EditPlus.

 --B
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

---
Please remember to recycle wherever possible. 
Reduce, reuse, recycle, think do you need to print this e-mail?
---
This e-mail and any attachment(s), is confidential and may be legally 
privileged. It is intended solely for the addressee. If you are not the 
addressee, dissemination, copying or use of this e-mail or any of its content 
is prohibited and may be unlawful. If you are not the intended recipient please 
inform the sender immediately and destroy the e-mail, any attachment(s) and any 
copies. All liability for viruses is excluded to the fullest extent permitted 
by law. It is your responsibility to scan or otherwise check this email and any 
attachment(s). Unless otherwise stated (i) views expressed in this message are 
those of the individual sender (ii) no contract may be construed by this 
e-mail. Emails may be monitored and you are taken to consent to this 
monitoring.  

Civica Services Limited, Company No. 02374268; Civica UK Limited, Company No. 
01628868
Both companies are registered in England and Wales and each has its registered 
office at 2 Burston Road, Putney, London, SW15 6AR.
---

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Using ED

2009-06-25 Thread Steve Romanow

Edward Brown wrote:

Try ultraedit, it has a column mode that can handle this sort of thing.

Ed

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
Sent: 25 June 2009 16:18
To: U2 Users List
Subject: Re: [U2] Using ED

I Use EditPlus, but I have found one major flaw that ED
can do without a problem.

If you want to add say, 4 spaces to the beginning a block
  of lines (to indent a block), you can't do that. whereas
  in ED, you would just set   , and r///b  (or use a #)

Anyone found a way to do this in EditPlus?

George

  

-Original Message-
From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
boun...@listserver.u2ug.org] On Behalf Of Brutzman, Bill
Sent: Thursday, June 25, 2009 11:02 AM
To: U2 Users List
Subject: Re: [U2] Using ED


Using ED as an editor to write programs reminds me of the story of the
blind man.

0. The man came to Jesus for help.
1. Jesus spat on the dry ground.
2. ...Rubbed the mud in his eyes.
3. ...Told him to wash it off.

When the man washed his eyes, he could see.

In this little parable, those using ED are like the blind man.  This
list is like... The Oracle.
Consider the miracle of EditPlus.

--B


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

---
Please remember to recycle wherever possible. 
Reduce, reuse, recycle, think do you need to print this e-mail?

---
This e-mail and any attachment(s), is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the addressee, dissemination, copying or use of this e-mail or any of its content is prohibited and may be unlawful. If you are not the intended recipient please inform the sender immediately and destroy the e-mail, any attachment(s) and any copies. All liability for viruses is excluded to the fullest extent permitted by law. It is your responsibility to scan or otherwise check this email and any attachment(s). Unless otherwise stated (i) views expressed in this message are those of the individual sender (ii) no contract may be construed by this e-mail. Emails may be monitored and you are taken to consent to this monitoring.  


Civica Services Limited, Company No. 02374268; Civica UK Limited, Company No. 
01628868
Both companies are registered in England and Wales and each has its registered 
office at 2 Burston Road, Putney, London, SW15 6AR.
---

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
  

ohh, editor wars hits mv.  :)

Ive been really impressed with gvim and vim.  Recently started using 
komodo-edit from Activestate.  It looks ReallyNice.  Needs syntax 
hilighting for U2 though.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Using ED

2009-06-25 Thread Norman Morgan
I keep going on about WED, but it has several handy tricks up its
sleeve.  Highlight a block of text, then click a button to indent (or
un-indent) the whole block by one tab distance (whatever you defined
that to be).  Similarly, entire blocks of text can be commented out (or
un-commented) with a click.  And always handy for a quick
sledge-hammer adjustment to data records, there is the ability to
insert value and sub-value marks with a mouse click.

Note: I am also an UltraEdit fan, using it exclusively instead of
Notepad in Windows.  You may not need it often, but when you do the hex
mode is a lifesaver.


Norman Morgan  nmor...@brake.com  http://www.brake.com

Normal is a setting on a washing machine.


 

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org 
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of 
 Edward Brown
 Sent: Thursday, June 25, 2009 10:24 AM
 To: U2 Users List
 Subject: Re: [U2] Using ED
 
 Try ultraedit, it has a column mode that can handle this sort 
 of thing.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Using ED

2009-06-25 Thread Steve Romanow

Norman Morgan wrote:


Note: I am also an UltraEdit fan, using it exclusively instead of
Notepad in Windows.  You may not need it often, but when you do the hex
mode is a lifesaver.

  
UE is also the king of Opening Large Files.  I have had several 
hundred meg text files open with UE.


Find in Files is very handy when dealing with EDI.


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Using ED

2009-06-25 Thread Robert Porter
Not sure if I'm reading your question right, but E+ can indent pretty easily.
Highlight the lines to indent and CTRL+I  or Edit - Format - Increase Indent
The # of spaces is controlled under Document - Tab/Indent
 
I love E+, great little extendable editor. Plus when used with WinSCP let's me 
edit via a SFTP over SSH session. 
Just change your editor in WinSCP to point to the editplus.exe as the first in 
the list.
 
Robert

 George Gallen ggal...@wyanokegroup.com 6/25/2009 10:17 AM 
I Use EditPlus, but I have found one major flaw that ED
can do without a problem.

If you want to add say, 4 spaces to the beginning a block
  of lines (to indent a block), you can't do that. whereas
  in ED, you would just set   , and r///b  (or use a #)

Anyone found a way to do this in EditPlus?

George

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Brutzman, Bill
 Sent: Thursday, June 25, 2009 11:02 AM
 To: U2 Users List
 Subject: Re: [U2] Using ED


 Using ED as an editor to write programs reminds me of the story of the
 blind man.

 0. The man came to Jesus for help.
 1. Jesus spat on the dry ground.
 2. ...Rubbed the mud in his eyes.
 3. ...Told him to wash it off.

 When the man washed his eyes, he could see.

 In this little parable, those using ED are like the blind man.  This
 list is like... The Oracle.
 Consider the miracle of EditPlus.

 --B
___
U2-Users mailing list
U2-Users@listserver.u2ug.org 
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Using ED

2009-06-25 Thread Robert Porter
One other neat feature we use on E+ that we use all the time...
If you open a file that is being written to such as a log file, and leave it 
open as you switch programs. When you come back to E+ it can check to see if it 
has changed on the server and prompt you to reload it.  Comes in very handy for 
watching communications logs for real-time interfaces. I'm sure other programs 
can do that and actually found this by accident one day. 
 
Robert
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Using ED

2009-06-25 Thread Steve Romanow

Robert Porter wrote:

One other neat feature we use on E+ that we use all the time...
If you open a file that is being written to such as a log file, and leave it open as you switch programs. When you come back to E+ it can check to see if it has changed on the server and prompt you to reload it.  Comes in very handy for watching communications logs for real-time interfaces. I'm sure other programs can do that and actually found this by accident one day. 
 
Robert

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
  

Yes, UE for win does this, and I think I have seen that in gvim for linux.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Using ED

2009-06-25 Thread George Gallen
Didn't realize you could substitute spaces for tabs with that one.

George

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Robert Porter
 Sent: Thursday, June 25, 2009 12:05 PM
 To: U2 Users List
 Subject: Re: [U2] Using ED

 Not sure if I'm reading your question right, but E+ can indent pretty
 easily.
 Highlight the lines to indent and CTRL+I  or Edit - Format - Increase
 Indent
 The # of spaces is controlled under Document - Tab/Indent

 I love E+, great little extendable editor. Plus when used with WinSCP
 let's me edit via a SFTP over SSH session.
 Just change your editor in WinSCP to point to the editplus.exe as the
 first in the list.

 Robert


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Mixed Case UV Basic Programming Standards.

2009-06-25 Thread Jo Lester

For editing, I am happy using UltraEdit from IDMcomp.com.  You can choose color 
coded syntax to be BASIC - Universe from the view menu. Easy to use; it is a 
full screen editor with ftp abilities. Currently UltraEdit alone is priced at 
$49.95. IDM's UltraCompare adds another phenomenal tool to your arsenal. If you 
ever want to know what changed in code from this version to that, from one 
customer to another, this really helps. 

 

Talk to Susan if you use PRC, I beleve she says they play together nicely.

 

 
 Date: Thu, 25 Jun 2009 15:53:03 +0100
 From: kis...@parmars.com
 To: u2-users@listserver.u2ug.org
 Subject: Re: [U2] Mixed Case UV Basic Programming Standards.
 
 I didn't know how lucky I was being able to use Brian's MVDeveloper to 
 code with. I had become dependant on it. It was a great time saver. I 
 am now working on Univision and using ED, all the programs are in 
 upper case which I don't mind, but there is no indentation and there 
 are many statements on one line. The code was last amended around 1984 
 when GOTO was common practice and GOSUB's with GOSUBS etc. I have had 
 to purchase Textpad so I can have all the niceties of MVDeveloper.
 
 Kishor Parmar
 
 
 Quoting Joshua Gallant jgall...@cbd.com:
 
  People use something other than ED? For the most part, all programmers
  on our staff do use the ED editor but there are a few of us who like the
  functions like syntax highlighting, etc. We code in all UPPER case
  here. We've had programs around for 30 years so the base programs were
  always uppercase and we just stuck with it over the years.
 
  - Josh
 
 
  -Original Message-
  From: u2-users-boun...@listserver.u2ug.org
  [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Symeon Breen
  Sent: Thursday, June 25, 2009 5:59 AM
  To: 'U2 Users List'
  Subject: Re: [U2] Mixed Case UV Basic Programming Standards.
 
  An important point there from Brian on editors, yes the editors we use
  (no
  one writes code in ed do they?) will colour highlight verbs, literals,
  comments, variables etc + do case insensitive searches..
 
 
 
 
  -Original Message-
  From: u2-users-boun...@listserver.u2ug.org
  [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian Leach
  Sent: 25 June 2009 10:14
  To: 'U2 Users List'
  Subject: Re: [U2] Mixed Case UV Basic Programming Standards.
 
  Hi
 
  I use mixed case using the same capitalization as for Delphi and VB
  (rather
  than camelCase for C# and Java).
 
  OpenSeq
  NumberOfFields = DCount(SomeVariable, @FM)
 
  However I use upper case to distinguish things that are 'special' e.g.
  equate literals, file and select variables, common variables and
  compiler
  directives. That way they stand out.
 
  I also use upper case for STOP and the main RETURN from an external
  subroutine, which helps to distinguish it from the Return from a local
  GoSub.
 
  I don't worry about searching since the editors I use are capable of
  searching case-independently, and you can always write an IDescriptor to
  do
  an UPCASE(@RECORD) if you want to search in a source file. In fact,
  generally I find doing a SELECT with a LIKE clause on that is faster
  than
  using the SEARCH command.
 
  There should be no need to do anything special to format your comments
  since
  any editor worth using will distinguish these (as a bare minimum). I
  have a
  simple 'autodoc' markup in the comments that makes it easy to generate
  technical docs.
 
  So, putting it all together:
 
  PROGRAM ShowStuff
  *-
  * @@Name : ShowStuff
  * @@Project : Demo
  * (other autodoc header info here)
  *-
  * @@Info{
  * Shows some stuff.
  * bAnd some other comments in here with HTML markups/b
  * }
  *-
  * (other autodoc comments here: modifications, keywords, todo etc.
  *-
  * version stamp goes in here - assigned to a variable so it compiles
  into
  * the object and I can then rip it from the string table.
 
  VERDATA = Version=001002003;
  VERDATA:= VerDate=12345;
  VERDATA:= VerDesc=Short Description here;
  (etc)
 
  *-
  $INCLUDE BOOK_TITLES.h
 
  Open BOOK_TITLES To TITLES Else
  Crt Cannot open the TITLES File
  RETURN
  End
 
  Execute SSELECT BOOK_TITLES, SELECT.  SLIST
  Fin = @False
  Loop
  ReadNext TitleId From SLIST Else
  Fin = @True
  End
  Until Fin Do
  GoSub ShowISBN
  Repeat
 
  RETURN
 
  *--
  * ShowISBN: show the title id, ISBN and price
  *--
  ShowISBN:
  Read TitleRec From TITLES,TitleId Then
  Crt TitleId, TitleRecBOOK_TITLES.ISBN,
  

Re: [U2] wGet new failure

2009-06-25 Thread Glen Batchelor

Stick a carat before each ampersand for Windows command line commands. Win
XP+ do not work exactly the same way, in terms of command line, as the old
DOS based command shells.


Glen Batchelor
IT Director
All-Spec Industries
 phone: (910) 332-0424
   fax: (910) 763-5664
E-mail: webmas...@all-spec.com
   Web: http://www.all-spec.com
  Blog: http://blog.all-spec.com


 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of u2list0...@curt.com
 Sent: Thursday, June 25, 2009 10:14 AM
 To: U2 Users List
 Subject: Re: [U2] wGet new failure
 
 ok, I tried this method and I am back to my original problem. When it
 executes the DOS /c (I am running Win Server 2k3), it never comes
 back to me It hangs until I End Task on CMD.EXE
 
 At 6/25/2009 10:04 AM, you wrote:
 Thanks George, I'll try that method now.
 
 At 6/25/2009 09:34 AM, you wrote:
 I've used the following:
 
 0047:SITE=http://wwwapps.ups.com/WebTracking/;
 0048:PART1=OnlineTool?submit=TrackInquiryNumber1=:TRKID
 0049:PART2=InquiryNumber2=InquiryNumber3=InquiryNumber4=
 0050:PART3=InquiryNumber5=TypeOfInquiryNumber=T
 0051:PART4=ups_HTML_License=:ACCESSKEY
 0052:FULLREQ=SITE:PART1:PART2:PART3:PART4
 0053:CMD='/usr/mbin/wget -q -O - ':FULLREQ:''
 0054:EXECUTE SH -c ':CMD:' CAPTURING JUNK
 0055:HTML=JUNK
 
 The -q put in quiet mode,
 and the -O sends the output to a file, which in this case is - or
 STDOUT
 which gets captured by CAPTURING, and returned to UV
 
 George
 
   -Original Message-
   From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
boun...@listserver.u2ug.org] On Behalf Of u2list0...@curt.com
   Sent: Thursday, June 25, 2009 9:13 AM
   To: U2 Users List
   Subject: [U2] wGet question for Robert Porter
  
   Sorry, this is a re-post with a more specific subject
  
   I have opted for the wGet method.
   I give up trying to make any other version work. This one does with
   one very minor exception. I redirect the output to a type 1 file.
   Problem is, the filename it creates is  50 characters in length and
   I can't read or delete it from Universe.
   
   Is there an option somehow that I can't see that will let me
   specifically name that file it gets?
  
  
  
  
  
  
  
  
  
  
  
  
   At 6/23/2009 04:15 PM, you wrote:
   I should have mentioned that wget runs on Windows too.
   
   I've also heard of cURL.  I'm not sure if we started doing stuff
 like
   this
   before cURL came out or not, it's just the particular tool we ended
   up
   using for that job and it's useful so we keep using it for more
 stuff
   as
   it comes up.  It may or may not be as good as, or better than,
 cURL,
   but
   we haven't yet come across a need for functionality that isn't in
   wget.
   
   Maybe it's just me but I find the callHTTP stuff fiddly and
 obscure.
   Somehow it's usually easier to do an EXECUTE sh -c wget and
   capture
   the output to a file in a directory that's set up as a type 19
 file.
   
   
   Dave Barrett,
   Lawyers' Professional Indemnity Company
   ___
   U2-Users mailing list
   U2-Users@listserver.u2ug.org
   http://listserver.u2ug.org/mailman/listinfo/u2-users
   
   __ Information from ESET NOD32 Antivirus, version of virus
   signature database 4183 (20090624) __
   
   The message was checked by ESET NOD32 Antivirus.
   
   http://www.eset.com
   
   Curt Lashley
   2803 North Boulevard
   Tampa, FL 33602
   Cell: (813) 293-2878 or (800) 886-2878
   Home: (813) 226-2878 or (800) 524-2878
   Fax: (813) 229-2878
   
   ___
   U2-Users mailing list
   U2-Users@listserver.u2ug.org
   http://listserver.u2ug.org/mailman/listinfo/u2-users
   
   __ Information from ESET NOD32 Antivirus, version of virus
   signature database 4186 (20090624) __
   
   The message was checked by ESET NOD32 Antivirus.
   
   http://www.eset.com
   
   
  
   Curt Lashley
   2803 North Boulevard
   Tampa, FL 33602
   Cell: (813) 293-2878 or (800) 886-2878
   Home: (813) 226-2878 or (800) 524-2878
   Fax: (813) 229-2878
  
   ___
   U2-Users mailing list
   U2-Users@listserver.u2ug.org
   http://listserver.u2ug.org/mailman/listinfo/u2-users
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 
 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 4188 (20090625) __
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
 
 Curt Lashley
 2803 North Boulevard
 Tampa, FL 33602
 Cell: (813) 293-2878 or (800) 886-2878
 Home: (813) 226-2878 or (800) 524-2878
 Fax: (813) 229-2878

Re: [U2] Unix mail server?

2009-06-25 Thread Glen Batchelor

 As been suggested, the alias pipe is probably the best option for a simple
mail capturing solution. This will mean configuring an MTA (I can help with
Postfix) on the U2 server. You will need to manually parse the envelope,
though, unless you stick a MIME extractor in the middle. You could do most
of the message body extraction in a Perl script and then dump a formatted
request to a processing spool for your phantom(s) to pick up and handle.
Firing off a phantom directly is never a good idea, IMO. If your mail queue
gets hung up one day and you fix it without taking precautions, then the MTA
will assault your U2 processes until they cry 'uncle'.


Glen Batchelor
IT Director
All-Spec Industries
 phone: (910) 332-0424
   fax: (910) 763-5664
E-mail: webmas...@all-spec.com
   Web: http://www.all-spec.com
  Blog: http://blog.all-spec.com


 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Burwell, Ed
 Sent: Thursday, June 25, 2009 9:57 AM
 To: U2 Users List
 Subject: Re: [U2] Unix mail server?
 
 Here's a high-level view of what I'm envisioning:
 
 1. Our Unidata application sends an email to the outside world, giving
 the recipient certain options.
 2. The recipient hits REPLY, types a few characters and hits SEND.
 3. Our rs/6000 receives the email and put it somewhere.
 4. Our Unidata application could periodically check that somewhere for
 received mail and do whatever with it.
 
 Thanks for your responses so far.
 
 Ed Burwell
 Consultant
 Data Processing
 
 CASIO AMERICA, INC.
 570 Mt. Pleasant Avenue
 Dover, NJ  07801
 973-361-5400 x1512
 email: eburw...@casioamerica.com mailto:eburw...@casioamerica.com
 www.casio.com http://www.casio.com
 
 
 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Larry Hiscock
 Sent: Wednesday, June 24, 2009 7:22 PM
 To: 'U2 Users List'
 Subject: Re: [U2] Unix mail server?
 
 In short, yes, however, the first question should be: what are you
 planning to do with the mail you receive?  I wouldn't recommend using
 your application server as a mail server, since to do that, you'd have
 to expose it, at least to some degree, to the outside world.
 
 Larry Hiscock
 Western Computer Services
 
 
 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Burwell, Ed
 Sent: Wednesday, June 24, 2009 3:45 PM
 To: U2 Users List
 Subject: [U2] Unix mail server?
 
 We can send email from our rs/6000 (AIX version 5.3) using sendmail and
 it works great.
 
 Is it possible to receive email also?
 
 Thanks.
 
 Ed
 
 (We are running Unidata version 7.1)
 
 __
 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
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 
 __
 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.
 __
 
 __
 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
 http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Using ED

2009-06-25 Thread Results
[AD] New series in International Spectrum: IDEs  Editors. First up, 
Brian Leach [/AD]
Note, the series was actually started before this thread. Nathan must be 
psychic.


   - Chuck
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Using ED

2009-06-25 Thread David A Barrett
Back in the early 90's, I had a stint working with Unidata, and I became 
addicted to the AE editor.  It's virtually identical to ED but has a few 
really nice enhancements.  Things like the EV command and the global 
searches with the / command instead of C/SOMETHING/SOMETHING/999. 
I was in heaven when AE was added to UV.

I write tons of code in UV Basic, and I've done lots of programming in GUI 
environments too.  I honestly don't feel that using AE slows me down one 
bit.  There are times when some C commands get tedious, but cut and 
paste at the windows end deals with that.

AE has the FOR command, that does all the indenting for you.  It also 
flips all of your labels to uppercase.

I do a fair bit of searching through entire *files* of programs looking 
for uses of database fields, files or variables using the TCL SEARCH 
command.  All uppercase helps there.


Dave Barrett,
Lawyers' Professional Indemnity Company
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] XML mapping to multiple files records

2009-06-25 Thread Kathleene M Hunter
Call a subroutine that parses the data. I have done  it several times.



-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Joshua Gallant
Sent: Tuesday, June 23, 2009 10:49 AM
To: U2 Users List
Subject: Re: [U2] XML mapping to multiple files  records

The scenario and sample I posted is theoretical.  The actual data
structure is much larger and has way too many nested levels.
Unfortunately splitting data is a must.

The two files piece is working fine it's just the multiple records in
the second file that's an issue.

- Josh


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Larry Hiscock
Sent: Tuesday, June 23, 2009 1:42 PM
To: 'U2 Users List'
Subject: Re: [U2] XML mapping to multiple files  records

Why two files?  That would be the approach with a SQL type database, but
in
Universe, you can make the track data multi-valued related fields in the
albums file.

Larry Hiscock
Western Computer Services


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Joshua
Gallant
Sent: Tuesday, June 23, 2009 10:38 AM
To: U2 Users List
Subject: [U2] XML mapping to multiple files  records

Hi Folks,

 

Here's a scenario for you:

 

Let's say there is an XML file containing album  track data that we'd
like to import into 2 different Universe files. A sample layout might be
something like:

 

albums

  album

album_ID/

album_title/

album_total_runtime/

album_total_tracks/

tracks

  track number=1

track_ID/

track_title/

track_artist/

  /track

  track number=2

track_ID/

track_title/

track_artist/

  /track

/tracks

  album

/albums

 

What I'm trying to do is have an ALBUMS file and a TRACKS file.  I want
a single record in the ALBUMS file for each album and a record in the
TRACKS file for each track.  Essentially every album record in the XML
will product one ALBUMS record and potentially multiple TRACKS
records.

 

The trouble I'm having is getting more than one TRACKS record.  I'm
wondering if anyone has ever tried this before and how their experience
went.  I end up with just one TRACKS record with the first iteration.
Is what I'm trying even possible?  I've opened a case with IBM as well
but figured maybe one of you has been in this situation before.

 

- Josh

 

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] XML mapping to multiple files records

2009-06-25 Thread Joshua Gallant
Thanks for the responses.  I was trying to use the tools built into
UniVerse rather than parse through everything which I have done on past
projects.  I feel the XML.TODB program or the XMLTODB function should be
able to handle this no problem but seems to have an issue with multiple
records.  I tested this on multiple UniVerse levels including 10.3.0.

I ended up writing a program that uses an XMAP file and with a
combination of XMAPOPEN, XMAPREADNEXT, AND XMAPCLOSE I could get the
data into Universe.  Once in memory I had to do a little parsing and
cleanup but eventually ended up with something acceptable.

- Josh


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kathleene M
Hunter
Sent: Thursday, June 25, 2009 3:57 PM
To: 'U2 Users List'
Subject: Re: [U2] XML mapping to multiple files  records

Call a subroutine that parses the data. I have done  it several times.



-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Joshua
Gallant
Sent: Tuesday, June 23, 2009 10:49 AM
To: U2 Users List
Subject: Re: [U2] XML mapping to multiple files  records

The scenario and sample I posted is theoretical.  The actual data
structure is much larger and has way too many nested levels.
Unfortunately splitting data is a must.

The two files piece is working fine it's just the multiple records in
the second file that's an issue.

- Josh


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Larry Hiscock
Sent: Tuesday, June 23, 2009 1:42 PM
To: 'U2 Users List'
Subject: Re: [U2] XML mapping to multiple files  records

Why two files?  That would be the approach with a SQL type database, but
in
Universe, you can make the track data multi-valued related fields in the
albums file.

Larry Hiscock
Western Computer Services


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Joshua
Gallant
Sent: Tuesday, June 23, 2009 10:38 AM
To: U2 Users List
Subject: [U2] XML mapping to multiple files  records

Hi Folks,

 

Here's a scenario for you:

 

Let's say there is an XML file containing album  track data that we'd
like to import into 2 different Universe files. A sample layout might be
something like:

 

albums

  album

album_ID/

album_title/

album_total_runtime/

album_total_tracks/

tracks

  track number=1

track_ID/

track_title/

track_artist/

  /track

  track number=2

track_ID/

track_title/

track_artist/

  /track

/tracks

  album

/albums

 

What I'm trying to do is have an ALBUMS file and a TRACKS file.  I want
a single record in the ALBUMS file for each album and a record in the
TRACKS file for each track.  Essentially every album record in the XML
will product one ALBUMS record and potentially multiple TRACKS
records.

 

The trouble I'm having is getting more than one TRACKS record.  I'm
wondering if anyone has ever tried this before and how their experience
went.  I end up with just one TRACKS record with the first iteration.
Is what I'm trying even possible?  I've opened a case with IBM as well
but figured maybe one of you has been in this situation before.

 

- Josh

 

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Unix mail server? [ad]

2009-06-25 Thread Tony G
Ed - Your description describes the raison d'être of NebulaMail.
You'll find a link to this and other POP3/IMAP solutions here:
http://www.pickwiki.com/cgi-bin/wiki.pl?SendAnEmail
Due to ever decreasing demand for tools (despite high demand
for solutions), I haven't kept NebulaMail up to date on U2.  So
if you really need a pure BASIC POP3 solution for U2 then some
time will be required to get this product back up to speed.

I highly recommend that everyone remember PickWiki.com and do a
search there before posting to forums.  You can significantly
jumpstart your queries by coming to the table with a list of
solutions to compare and contrast.

I've already created a link in that SendAnEmail page to this
thread so others who visit the wiki will benefit from the
suggestions and wisdom provided here.  That's the way a wiki
works.

And for anyone else who has interest in helping to keep that
resource current and rich, information is on the site and you can
email me for details.  It's really VERY simple...

Tony Gravagno
Nebula Research and Development
TG@ remove.pleaseNebula-RnD.com
remove.pleaseNebula-RnD.com/blog


 From: Burwell, Ed
 Here's a high-level view of what I'm envisioning:
 1. Our Unidata application sends an email to the outside world,
giving
 the recipient certain options.
 2. The recipient hits REPLY, types a few characters and hits
SEND.
 3. Our rs/6000 receives the email and put it somewhere.  
 4. Our Unidata application could periodically check that 
 somewhere for received mail and do whatever with it.

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] What Program Am I?

2009-06-25 Thread Tony G
 From: HENDERSON MIKE
 From (IIRC) 10.0 onwards, there's the SYSTEM(9001)
pseudo-variable
 which contains the UV CALL Stack.

 It's formatted a bit funny, but there may be a routine on the
Pickwiki
 to make it a sensible format.

That reminds me: PickWiki also mentions the UD program CALL.STACK
and a UV program called LAYER.STACK.
An old U2 forum post suggests using a command like:
  PORT.STATUS PID 9 CALL.STACK
which for UV might be
  PORT.STATUS PID 9 LAYER.STACK  ?

Refs:
http://www.mail-archive.com/u2-users%40listserver.u2ug.org/msg173
14.html 
http://www.pickwiki.com/cgi-bin/wiki.pl?ViewCallStack

Does any of that apply to the OP request?

Tony Gravagno
Nebula Research and Development
TG@ remove.pleaseNebula-RnD.com

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Using ED

2009-06-25 Thread Symeon Breen
The EV command in AE is a lifesaver when looking at MV data !

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of David A Barrett
Sent: 25 June 2009 20:45
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Using ED

Back in the early 90's, I had a stint working with Unidata, and I became 
addicted to the AE editor.  It's virtually identical to ED but has a few 
really nice enhancements.  Things like the EV command and the global 
searches with the / command instead of C/SOMETHING/SOMETHING/999. 
I was in heaven when AE was added to UV.

I write tons of code in UV Basic, and I've done lots of programming in GUI 
environments too.  I honestly don't feel that using AE slows me down one 
bit.  There are times when some C commands get tedious, but cut and 
paste at the windows end deals with that.

AE has the FOR command, that does all the indenting for you.  It also 
flips all of your labels to uppercase.

I do a fair bit of searching through entire *files* of programs looking 
for uses of database fields, files or variables using the TCL SEARCH 
command.  All uppercase helps there.


Dave Barrett,
Lawyers' Professional Indemnity Company
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Using EditPlus [was Using ED]

2009-06-25 Thread Boydell, Stuart
Yes, easily - 1 of 4 different ways I can think of off the top of my head - 
either:
 
1. Highlight the block and press Ctrl-I (In Preferences, have your tabs set to 
use spaces instead of the tab character - Set tab to be 4 spaces or whatever 
your preferred indent size is).
2. Highlight the block then use the Edit,Format, Fill selection - this will add 
whatever text or spaces you choose to the start of a highlighted block. I have 
a shortcut key assigned as I use this function all the time. Normally for 
adding a block of repeating comments like !! TODO FIX THIS BUG !!
3. Use the column select feature (Alt+C or Alt+Mouse clickdrag) then press the 
tab key - it will indent as many times as you press the key (Same as Ctrl I 
really but you can do this in the middle of a line to space out end of line 
comments for example).
4. Use the regular expression function of search/replace: Search For ^(.) 
Replace with \t\1  Also useful if you only want to indent code but not lines 
starting with a comment charater for example.
 
I have to say EditPlus is absolutely brilliant. It's a virtual IDE - you can 
plug in pretty much any tool you want. I have it set to compile (but not debug 
yet) from a keystroke. The facilities like regex, macros, column select and 
folder search are fantastic.
 
Cheers,
Stuart



From: u2-users-boun...@listserver.u2ug.org on behalf of George Gallen
Sent: Fri 26/06/2009 01:17
To: U2 Users List
Subject: Re: [U2] Using ED



I Use EditPlus, but I have found one major flaw that ED
can do without a problem.

If you want to add say, 4 spaces to the beginning a block
  of lines (to indent a block), you can't do that. whereas
  in ED, you would just set   , and r///b  (or use a #)

Anyone found a way to do this in EditPlus?

George

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Brutzman, Bill
 Sent: Thursday, June 25, 2009 11:02 AM
 To: U2 Users List
 Subject: Re: [U2] Using ED


 Using ED as an editor to write programs reminds me of the story of the
 blind man.

 0. The man came to Jesus for help.
 1. Jesus spat on the dry ground.
 2. ...Rubbed the mud in his eyes.
 3. ...Told him to wash it off.

 When the man washed his eyes, he could see.

 In this little parable, those using ED are like the blind man.  This
 list is like... The Oracle.
 Consider the miracle of EditPlus.

 --B
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users



 
**
This email message and any files transmitted with it are confidential and 
intended solely for the use of addressed recipient(s). If you have received 
this communication in error, please reply to this e-mail to notify the sender 
of its incorrect delivery and then delete it and your reply.  It is your 
responsibility to check this email and any attachments for viruses and defects 
before opening or sending them on. Spotless collects information about you to 
provide and market our services. For information about use, disclosure and 
access, see our privacy policy at http://www.spotless.com.au 
Please consider our environment before printing this email. 
** 

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users