Re: [U2] UV Timed INPUT

2009-03-11 Thread Louis Windsor
I think this process will "hog" the processor.  I would imagine you would 
need a "SLEEP' si the loop.


Louis

- Original Message - 
From: "Jacques G." 

To: 
Sent: Thursday, March 12, 2009 1:24 PM
Subject: Re: [U2] UV Timed INPUT



I'm typing this from memory:

TM.LIMIT   = 5 ;* 5 second time limit
DT.START = DATE()
TM.START = TIME()
LOOP
IF INPUT XX,-1 THEN INPUT VAR ELSE
  TM.PASSED  = (DATE() - DT.START) * 86400
  TM.PASSED  += (TIME() - TM.START)
  IF TM.PASSED > TM.LIMIT THEN EXIT
END
REPEAT




- Original Message 
From: "Norman, David (Health)" 
To: u2-users@listserver.u2ug.org
Sent: Wednesday, March 11, 2009 11:26:56 PM
Subject: [U2] UV Timed INPUT

I'm sure I've seen something about this recently, but I've searched the
past 2 years with no luck. I want to do a timed INPUT in UV - if after n
seconds the Enter key hasn't been pressed, do something.
Anyone got any clever ways of doing this ?

Thanks,

David Norman
Senior Software Engineer - SA Ambulance Service

ICT Services
SA Health
Government of South Australia

Box 3, GPO
Adelaide, South Australia 5001
* +61 8 8274 0384
* fax +61 8 8271 4844
* norman.da...@saambulance.com.au

This e-mail may contain confidential information, which also may be
legally privileged. Only the intended recipient(s) may access, use,
distribute or copy this e-mail. If this e-mail is received in error,
please inform the sender by return e-mail and delete the original. If
there are doubts about the validity of this message, please contact the
sender by telephone. It is the recipient's responsibility to check the
e-mail and any attached files for viruses.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/







No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.10/1996 - Release Date: 03/11/09 
20:42:00

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


Re: [U2] New to UV/PICK, programming a banner

2007-03-24 Thread Louis Windsor

Simply:-

ED BP MOTD
I 
OPEN 'file' TO file THEN
READ MOTD FROM file,'MOTD' THEN
CNT=DCOUNT(MOTD,@FM)
FOR X=1 TO CNT; CRT MOTD; EXT X
CRT; CRT 'Read and Press Enter To Continue'; INPUT 
WHATEVER:

STOP
 END ELSE
CRT; CRT 'No Message Of The Day'; CRT; STOP
 END
END ELSE
 CRT; CRT 'No MOTD File'; CRT; STOP
END

FI

"file" is whatever file you wish to use even &TEMP& or CTL (general control 
file)?


Compile and include line

RUN BP MOTD

in your LOGIN paragraph

To create the message:-

ED file MOTD  (or wED or whatever editor)
I
Type whatever message you want to display here

FI

To delete the message

ED file MOTD
FD

Like I said it is simple.  Assumes the message is less than a screen full 
and each line is less than screen width.


No flames please - I said it is simple.

Louis

- Original Message - 
From: "Gabriel Green" <[EMAIL PROTECTED]>

To: 
Sent: Sunday, March 25, 2007 12:38 PM
Subject: [U2] New to UV/PICK, programming a banner



Hello,

I am new to PICK/UniVerse and was wondering if someone could help me with
some BASIC code or a PROC instructions to get me going on a banner program
that will display before, or after, the "Logon Please:" prompt (but after
the initial telnet server login).

Preferrably I'd like a unix style /etc/motd type thing (we're on Windows 
of
course so that is not available, UV 10.2.) that I could update 
periodically

with wED and update for our users to see.

Can anyone help with this?

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

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


Re: [U2] UniVerse Personal Editions - Help Please

2006-09-02 Thread Louis Windsor

No, I must have explained it wrong.

I am happy with the normal path to the VOV I just wanted to
access my backup VOC on G: drive.

Francis Bennett pointed me in the right direction.

Thanks anyway.

Louis


- Original Message - 
From: "David Jordan" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, September 02, 2006 4:38 PM
Subject: RE: [U2] UniVerse Personal Editions - Help Please



Hi Louis

I have updated my UniVerse as suggested and I copied the C:\IBM
directory to G: drive before (thank goodness!)

Obviously I have lost my old VOC so I want to copy stuff back from
the backup copy.

Help

If I understand what you have done correctly.  If you originally installed
Universe in C:\IBM then all the VOC pointers for system commands, such as
LIST, in all universe accounts will have paths pointing to c:\ibm\uv... 
If

now the Universe system directory is G:\ibm\uv then the voc in the current
accounts will be now pointing to the wrong directory.

The easiest way to recover this is to login into the g:\ibm\uv account. 
Do

a setfile to the voc of the account you wish to fix. Ie
SETFILE C:\UV\ACCOUNTS\TEST\VOC VOC.TEST<>
SEARCH VOC.TEST<>
C:\ibm\uv<>
<>

ED VOC.TEST<

Replace C:\IBM with G:\ibm and save for each record.

Regards

David Jordan
Managing Consultant

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

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


Re: [U2] UniVerse Personal Editions - Help Please

2006-09-02 Thread Louis Windsor

Worked perfectly.

Thanks.

I thought I had tried all combinations of "\", "/" and ":" but
obviously I hadn't.

Thanks again.

Louis

- Original Message - 
From: "Francis Bennett" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, September 02, 2006 4:21 PM
Subject: Re: [U2] UniVerse Personal Editions - Help Please



Try:

F
G:\IBM\UV\VOC
G:\IBM\UV\D_VOC

- Original Message - 
From: "Louis Windsor" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, September 02, 2006 3:38 PM
Subject: [U2] UniVerse Personal Editions - Help Please



I have UniVerse running on XP Prof (at home).

I have updated my UniVerse as suggested and I copied the C:\IBM
directory to G: drive before (thank goodness!)

Obviously I have lost my old VOC so I want to copy stuff back from
the backup copy.

Help

I tried to do this a while ago but ended up "giving up".

How do a build an "F" pointer to Drive G:\IBM\VOC so my updated
UniVerse can access my backup VOC?

I've tried :-

F
G/IBM/UV/VOC
D_VOC

without success.  I have also tried various combinations of ":" and "\"
etc.

TIA

Louis

PS Bring back "good old Unix" any day.

Louis

- Original Message - 
From: "Leroy Dreyfuss" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, August 30, 2006 5:33 AM
Subject: [U2] UniVerse Personal Editions


>   All,
>   Because  the  current  UniVerse  10.1.11 (Windows) and 10.1.12 
> (Linux)
>   Personal  Editions  were  about  to  expire  (31 August 2006), we 
> have
>   reloaded  them  with  a  new  expiration date. The updated copies 
> will
>   expire  on  31  October  2006,  and  will be replaced by UniVerse 
> 10.2
>   versions  about a month before then. If you are running either 
> 10.1.11
>   or  10.1.12  Personal  Edition,  you  should  download and install 
> the

>   replaced copies to avoid interruption.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

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

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


[U2] UniVerse Personal Editions - Help Please

2006-09-01 Thread Louis Windsor

I have UniVerse running on XP Prof (at home).

I have updated my UniVerse as suggested and I copied the C:\IBM
directory to G: drive before (thank goodness!)

Obviously I have lost my old VOC so I want to copy stuff back from
the backup copy.

Help

I tried to do this a while ago but ended up "giving up".

How do a build an "F" pointer to Drive G:\IBM\VOC so my updated
UniVerse can access my backup VOC?

I've tried :-

F
G/IBM/UV/VOC
D_VOC

without success.  I have also tried various combinations of ":" and "\"
etc.

TIA

Louis

PS Bring back "good old Unix" any day.

Louis

- Original Message - 
From: "Leroy Dreyfuss" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, August 30, 2006 5:33 AM
Subject: [U2] UniVerse Personal Editions



  All,
  Because  the  current  UniVerse  10.1.11 (Windows) and 10.1.12 (Linux)
  Personal  Editions  were  about  to  expire  (31 August 2006), we have
  reloaded  them  with  a  new  expiration date. The updated copies will
  expire  on  31  October  2006,  and  will be replaced by UniVerse 10.2
  versions  about a month before then. If you are running either 10.1.11
  or  10.1.12  Personal  Edition,  you  should  download and install the
  replaced copies to avoid interruption.

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


Re: [U2] Help with non functional printer

2006-05-22 Thread Louis Windsor

Thanks for a most informative answer.

I just want to print nice boxes etc for my Sudoku solver.  The solver is 
written in UniVerse Basic so I wanted to print results (and intermediate 
results) etc.  My prior printer (an el cheapo HP) did print graphic boxes 
etc so I thought my new printer would too.


I don't doubt your claims but I find it difficult to understand why defined 
characters in the ^179 to ^217 range don't print correctly through UV.


Oh, well  Life wasn't meant to be easy!

Louis

GDI mode in UV is exactly that: it uses Windows device calls to render on 
the printer. These calls render text/graphics at a high/abstract  level, 
leaving the specific implementation of e.g. Font handling to the device 
driver.


The problem comes when you want to send sequences that are not part of the 
text, eg. PCL. In effect this is duplicating the work of the GDI itself - 
PCL is not directly supported by Windows GDI - even if the HP drivers map 
some GDI calls into PCL. Most GDI switches  into graphics mode so escape 
sequences like PCL get lost OR interpreted as literal characters. Quite 
simply, Windows has no way of knowing that you want to pass these 
sequences through unmodified.


The only way to force through PCL without interpretation is to use a 
generic/text only driver, if it will work with your printer. Unfortunately 
(increasingly) that isn't always the case.


It isn't really a UV failing but a clash of models: Windows, unlike Unix, 
expects applications to play by its rules and that doesn't include 
sendiny raw control sequences to devices.


AD  - sort of:

I've become frustrated by this and other spooler limits  and so wrote an 
API that now produces PDF documents and Windows prints directly from UV 
bypassing the spooler. This supports full text and graphics control, and 
conversion of existing prints. I'm packaging this for release hopefully in 
a couple of months - it has been running at a client site for about 9 
months - and I have plans to add PCL interpretation as well.


Anyone interested please contact me off-list.

Brian


prints windows -

-----Original Message-
   From: "Louis Windsor"<[EMAIL PROTECTED]>
   Sent: 22/05/06 03:53:25
   To: "u2-users@listserver.u2ug.org"
   Subject: Re: [U2] Help with non functional printer

   With further "messing about" using the GDI,DEFAULT addition I now can
   print text at least.

   It doesn't seem to support even PCL3 as a simple orientation string (to
   select landscape printing) is ignored.  Also the graphic set, like 
"light

   down
   and left/light down and right/light horizontal etc are completely 
screwed.


   Well, at least I can now print text so that is a gain but any further
   suggestions
   to print graphic characters would be appreciated.

   I am really puzzled as under Windows it is a superb printer.  Does
   everything
   I hoped it would but un UniVerse 

   Thanks for the responses so far,

   Louis

   - Original Message - 
   From: "Bruce Nichol" <[EMAIL PROTECTED]>

   To: 
   Sent: Monday, May 22, 2006 9:02 AM
   Subject: Re: [U2] Help with non functional printer



[Message truncated. Tap Edit->Mark for Download to get remaining portion.]
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

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


Re: [U2] Help with non functional printer

2006-05-21 Thread Louis Windsor

Gudday Bruce,

Thanks for your reply and hopes that IBM will come to the party with
Windows printers.

Do you believe in a fat man, read coat, big bushy beard too.  Drives
a reindeer drawn carriage

I have used UniVerse for over twenty years and the solution to most
programs is to program around them as you get very response from
whomever is in control.  Sad to say

Back to the drawingboard.

Thanks again

Louis

- Original Message - 
From: "Bruce Nichol" <[EMAIL PROTECTED]>

To: 
Sent: Monday, May 22, 2006 11:43 AM
Subject: Re: [U2] Help with non functional printer



Goo'day, again, Louis,

At 10:53 22/05/06 +0800, you wrote:


With further "messing about" using the GDI,DEFAULT addition I now can
print text at least.

It doesn't seem to support even PCL3 as a simple orientation string (to
select landscape printing) is ignored.  Also the graphic set, like "light 
down

and left/light down and right/light horizontal etc are completely screwed.


As I said... A sub-set of PCL 3, but I'm surprised it doesn't support 
ESC:'&l0O' for landscape. Perhaps as time passes, these sorts of 
printers are further removed from the ability to programatically control 
them.


But you should consider sending the PCL landscape, A4 (??), etc to the 
printer as a "page separator" (.sep file).


We also use:
GDI
FONTNAME Courier New <--- Notethe Upper/lower case
FONTSIZE 8
in SETPTR statements which gives about 178 charsx60 lines per A4 page.

Perhaps *you* will be the one who gives IBM the straw that breaks the 
camel's back and they set about looking to use Winblows printer drivers, 
but you'll have to fight the *nix side of the fence first   Nobody 
that I know of in the past 12 years has been able to convince anybody 
involved with UV (from VMark onward) that Windows printer drivers are used 
by the rest of the world.


HTH

Well, at least I can now print text so that is a gain but any further 
suggestions

to print graphic characters would be appreciated.

I am really puzzled as under Windows it is a superb printer.  Does 
everything

I hoped it would but un UniVerse 


Bits vs characters...


Thanks for the responses so far,

Louis


Goo'day, Louis,At 06:56 22/05/06 +0800, you wrote:

It's a Canon PIXMA iP4000 printer using the driver off the installation 
CD.


Needless to say the printer works fine under windows.

When I do a SPOOL -LIST

UV lists:-

Printer: Microsoft Office Document Image Writer
no entries.

Printer: Canon PIXMA iP4000
no entries

When I append the GDI,NODEFAULT it prints but it lists the file with 
line

numbers and a

Record 1 File &HOLD& Account ... and time and date  Header and Footer

The escape character is printed as ^027
graphic characters printed as ^218^196^194 etc

Thanks, at least it prints sofar.  More help please.


As far as I can determine, a PIXMA printer is a "jet" printer, and as far 
back as I can recall, jet printers are all "Windows GDI" printers, that 
is, they have no local intelligence, all work is done by the printer 
driver.   They usually come with a minimum of PCL capability (a sub-set 
of PCL3, normally), and because of this, are unsuitable for UV work. 
They normally can't even draw a straight line.   You are limited, in all 
probability, to straight text, and with a very limited number of fonts - 
at least we always were.


We have found sometimes, as a previous poster said, that we can 
"redirect" printing from a fully-capable PCL printer to a jet printer and 
get reasonable output, but not without a deal of work, and support 
thereafter (Users?  "It's a printer, isn't it?" "What's wrong with your 
software? Everything else prints" ) About the only "permanent" 
fix we've found is usually bound up in non-freebie third-party tools... 
or a change, now from UV to Reality (I believe Northgate now supports 
Windows GDI printers)...


And, don't let UV's SETPTR option of GDI fool you... It's not really 
there to support el-cheapo Windows GDI printers.   There is a 
difference...


Sorry I cannot be of more assistance.

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


Re: [U2] Help with non functional printer

2006-05-21 Thread Louis Windsor

With further "messing about" using the GDI,DEFAULT addition I now can
print text at least.

It doesn't seem to support even PCL3 as a simple orientation string (to
select landscape printing) is ignored.  Also the graphic set, like "light 
down

and left/light down and right/light horizontal etc are completely screwed.

Well, at least I can now print text so that is a gain but any further 
suggestions

to print graphic characters would be appreciated.

I am really puzzled as under Windows it is a superb printer.  Does 
everything

I hoped it would but un UniVerse 

Thanks for the responses so far,

Louis

- Original Message - 
From: "Bruce Nichol" <[EMAIL PROTECTED]>

To: 
Sent: Monday, May 22, 2006 9:02 AM
Subject: Re: [U2] Help with non functional printer



Goo'day, Louis,At 06:56 22/05/06 +0800, you wrote:

It's a Canon PIXMA iP4000 printer using the driver off the installation 
CD.


Needless to say the printer works fine under windows.

When I do a SPOOL -LIST

UV lists:-

Printer: Microsoft Office Document Image Writer
no entries.

Printer: Canon PIXMA iP4000
no entries

When I append the GDI,NODEFAULT it prints but it lists the file with line
numbers and a

Record 1 File &HOLD& Account ... and time and date  Header and Footer

The escape character is printed as ^027
graphic characters printed as ^218^196^194 etc

Thanks, at least it prints sofar.  More help please.


As far as I can determine, a PIXMA printer is a "jet" printer, and as far 
back as I can recall, jet printers are all "Windows GDI" printers, that 
is, they have no local intelligence, all work is done by the printer 
driver.   They usually come with a minimum of PCL capability (a sub-set of 
PCL3, normally), and because of this, are unsuitable for UV work.  They 
normally can't even draw a straight line.   You are limited, in all 
probability, to straight text, and with a very limited number of fonts - 
at least we always were.


We have found sometimes, as a previous poster said, that we can "redirect" 
printing from a fully-capable PCL printer to a jet printer and get 
reasonable output, but not without a deal of work, and support thereafter 
(Users?  "It's a printer, isn't it?" "What's wrong with your software? 
Everything else prints" ) About the only "permanent" fix we've 
found is usually bound up in non-freebie third-party tools... or a change, 
now from UV to Reality (I believe Northgate now supports Windows GDI 
printers)...


And, don't let UV's SETPTR option of GDI fool you... It's not really there 
to support el-cheapo Windows GDI printers.   There is a difference...


Sorry I cannot be of more assistance.


Louis

-


Regards,

Bruce Nichol
Talon Computer Services
ALBURYNSW 2640
Australia

http://www.taloncs.com.au

Tel: +61 (0)411149636
Fax: +61 (0)260232119

If it ain't broke, fix it till it is!

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.392 / Virus Database: 268.6.1/344 - Release Date: 19/05/06
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

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


Re: [U2] Help with non functional printer

2006-05-21 Thread Louis Windsor

It's a Canon PIXMA iP4000 printer using the driver off the installation CD.

Needless to say the printer works fine under windows.

When I do a SPOOL -LIST

UV lists:-

Printer: Microsoft Office Document Image Writer
no entries.

Printer: Canon PIXMA iP4000
no entries

When I append the GDI,NODEFAULT it prints but it lists the file with line
numbers and a

Record 1 File &HOLD& Account ... and time and date  Header and Footer

The escape character is printed as ^027
graphic characters printed as ^218^196^194 etc

Thanks, at least it prints sofar.  More help please.

Louis

- Original Message - 
From: <[EMAIL PROTECTED]>

To: 
Sent: Monday, May 22, 2006 2:36 AM
Subject: RE: [U2] Help with non functional printer



What kind of printer are you using and with which driver?

You might need to either:

install it using the generic/text only driver (won't work with some 
printer models)


OR

issue the GDI flag as part of your SETPTR to switch to graphic mode 
printing if not:


SETPTR ,,AT yourprinter,GDI,NODEFAULT


Brian

I have the Personal Edition (V10.1.11) installed on Windows XP 
Professional

and had printing working on a printer on the printer port.


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


Re: [U2] UniVerse:ED:Query

2006-01-23 Thread Louis Windsor

Type

C.^253HARI/PROG..

(use full stops or any other character)

on the line concerned.

Louis

- Original Message - 
From: "Hari T. K. Varma" <[EMAIL PROTECTED]>

To: 
Sent: Monday, January 23, 2006 4:17 PM
Subject: [U2] UniVerse:ED:Query



Hi All,

In ED I would like how can I change/replace a text containing
the delimiter itself i.e. "\" as part of the text to be replaced

e.g.

0001: FIRST^253HARI/PROG

In the above line I would like to delete ^253HARI/PROG

Thanks in Advance,

-Hari

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended 
solely for the use of the addressee(s). If you are not the intended 
recipient, please notify the sender by e-mail and delete the original 
message. Further, you are not to copy, disclose, or distribute this e-mail 
or its contents to any other person and any such actions are unlawful. 
This e-mail may contain viruses. Infosys has taken every reasonable 
precaution to minimize this risk, but is not liable for any damage you may 
sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves 
the right to monitor and review the content of all messages sent to or 
from this e-mail address. Messages sent to or from this e-mail address may 
be stored on the Infosys e-mail system.

***INFOSYS End of Disclaimer INFOSYS***
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

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


Re: [U2] How to Default NO.RETURN.WARN in Universe

2005-10-07 Thread Louis Windsor
I may be wrong but I seem to remember that if you hit "N" at any warning
no further "hit any key" will be prompted for.

Louis


- Original Message - 
From: "Anthony Dzikiewicz" <[EMAIL PROTECTED]>
To: 
Sent: Friday, October 07, 2005 7:00 PM
Subject: RE: [U2] How to Default NO.RETURN.WARN in Universe


: This works for me.  I believe I tried to issue this on the command line,
: but I had the syntax wrong.  
: What Im doing is compiling the whole account (1000+ programs)  and it
: becomes a pain to keep hitting 'any key' for the RETURN warnings. So,
: this works fine doing BASIC BP * +$NO.RETURN.WARN. 
: 
: Thanks for the tip
: 
: Anthony
: 
: -Original Message-
: From: [EMAIL PROTECTED]
: [mailto:[EMAIL PROTECTED] On Behalf Of Womack, Adrian
: Sent: Thursday, October 06, 2005 10:59 PM
: To: u2-users@listserver.u2ug.org
: Subject: RE: [U2] How to Default NO.RETURN.WARN in Universe
: 
: 
: We use " +$NO.RETURN.WARN" (along with a bunch of other options) on the
: BASIC command line for ALL programs, subroutines and functions (we've
: actually wrapped BASIC - so no one actually types in the options). 
: 
: 
: 
: DISCLAIMER:
: Disclaimer.  This e-mail is private and confidential. If you are not the
: intended recipient, please advise us by return e-mail immediately, and
: delete the e-mail and any attachments without using or disclosing the
: contents in any way. The views expressed in this e-mail are those of the
: author, and do not represent those of this company unless this is
: clearly indicated. You should scan this e-mail and any attachments for
: viruses. This company accepts no liability for any direct or indirect
: damage or loss resulting from the use of any attachments to this e-mail.
: ---
: u2-users mailing list
: u2-users@listserver.u2ug.org
: To unsubscribe please visit http://listserver.u2ug.org/
: 
: -- 
: No virus found in this incoming message.
: Checked by AVG Anti-Virus.
: Version: 7.0.344 / Virus Database: 267.11.13/123 - Release Date:
: 10/6/2005
: 
: 
: -- 
: No virus found in this outgoing message.
: Checked by AVG Anti-Virus.
: Version: 7.0.344 / Virus Database: 267.11.13/123 - Release Date:
: 10/6/2005
: ---
: u2-users mailing list
: u2-users@listserver.u2ug.org
: To unsubscribe please visit http://listserver.u2ug.org/
: 
:
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Fw: More U2 programming hints

2005-10-01 Thread Louis Windsor
A few years ago we used the BASIC SELECT FILE as opposed
to the EXECUTE "SELECT FILE".

We updated UniVerse (don't ask from what version to what
version as I don't remember) and overnight ALL our programs
ran five or six times longer.

We were told (by VMark) that the BASIC SELECT now
selected each group but it could be optioned to work the
"old" way.

I wrote a conversion program to change ALL BASIC SELECTs
to executed SELECTs in the source and recompiled and that is
the way we have done it ever since.

I don't know if things are different now but we have grown to
prefer EXECUTEd selects as selection criteria can be included.

My 2c worth.

Louis


- Original Message - 
From: "Mark Johnson" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, October 02, 2005 3:50 AM
Subject: Re: [U2] Fw: More U2 programming hints


: Here's what i meant initially and apologize for stating it ambiguously.
:
: Ineffecient:
: OPEN "FILE" TO F.FILE ELSE STOP
: EXECUTE "SELECT FILE"
: LOOP READNEXT...
:
: More effecient
: OPEN "FILE" TO F.FILE ELSE STOP
: SELECT F.FILE
: LOOP READNEXT...
:
: I try not to get code-y in examples but this should clear it up.
:
: Likewise
: Extraneous
: OPEN "FILE" TO F.FILE ELSE STOP
: EXECUTE "CLEAR-FILE (DATA FILE"
:
: more effecient:
: OPEN "FILE" TO F.FILE ELSE STOP
: CLEARFILE F.FILE
:
: Mark Johnson
: - Original Message - 
: From: "Stevenson, Charles" <[EMAIL PROTECTED]>
: To: 
: Sent: Saturday, October 01, 2005 3:33 PM
: Subject: RE: [U2] Fw: More U2 programming hints
:
:
: > yeahbut: basic's SSELECT does an alpha sort, even if keys are numeric.
: > i.e.: 1,10,100,11,2 instead of 1,2,10,11,100.
: >
: > And the important gains for basic SELECT filevar over EXECUTE "SELECT
: > filename..." are lost, (namely traversing the file only once), since the
: > file needs to be entirely traversed to do the initial sort.
: >
: > cds
: >
: > > From: gerry-u2ug
: > > in universe there is an sselect basic command
: > >
: > > -Original Message-
: > > From: Larry Hiscock
: > >
: > > Mark Johnson wrote:
: > >
: > > > A: If opened and an A-Z select is desired, don't EXECUTE
: > > > "SELECT FILE"
: > > > then READNEXT, use SELECT.
: > >
: > > Only one problem: the internal select doesn't sort.  It
: > > returns records by their physical location in the file (ie by
: > > group).  So, until an intrinsic SSELECT verb is introduced to
: > > basic, PERFORM "SSELECT ... " will continue to be used.
: > ---
: > u2-users mailing list
: > u2-users@listserver.u2ug.org
: > To unsubscribe please visit http://listserver.u2ug.org/
: ---
: u2-users mailing list
: u2-users@listserver.u2ug.org
: To unsubscribe please visit http://listserver.u2ug.org/
:
: 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Good Programming Practice - Axiom - ........

2005-09-30 Thread Louis Windsor
You don't need the "DO", well not in UniVerse anyway!

Louis

PS Had you considered:-

LOOP WHILE READNEXT ID;  GOSUB stuff; REPEAT

Again no flames please!

Louis


- Original Message - 
From: "Allen E. Elwood" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, October 01, 2005 4:33 AM
Subject: RE: [U2] Good Programming Practice - Axiom - 


:I beg to differ.  As an old dog, I've learned a couple of new tricks on 
this
: list.  My favorite new trick is a TWO liner readnext loop.
:
: LOOP WHILE READNEXT ID DO
:  GOSUB stuff
: REPEAT
:
: Gosh I like that!!
:
: -Original Message-
: From: [EMAIL PROTECTED]
: [mailto:[EMAIL PROTECTED] Behalf Of
: [EMAIL PROTECTED]
: Sent: Friday, September 30, 2005 13:18
: To: u2-users@listserver.u2ug.org
: Subject: RE: [U2] Good Programming Practice - Axiom - 
:
:
: Nobody cares what anyone has to say .. everyone is going to do whatever 
they
: have always done.
: Subordinates are going to follow whatever standards are dictated by their
: supervisor.
: ---
: u2-users mailing list
: u2-users@listserver.u2ug.org
: To unsubscribe please visit http://listserver.u2ug.org/
: ---
: u2-users mailing list
: u2-users@listserver.u2ug.org
: To unsubscribe please visit http://listserver.u2ug.org/
:
: 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Good Programming Practice Question.........

2005-09-30 Thread Louis Windsor
Our standards allow (demand) the use of a label in the start of each entry 
field

This is the case but only in entry mode.  In "amend" mode the "Go back"
is disabled and the program MUST end each field with a GO to label 800.

In "entry" mode you can enter fields 1 to 20 and go back to any
previous field, change it and then go forward.  The last field goes to 800
where the User can "File" the record, go to any nominated field and
change it or "ERR" out and forget the whole record.  On going forwards
the fields entered is presented for change but a RETURN leaves the fields
as previously entered.  Each field has online "Help" which can be called
up by entering a question mark.  Every field in every program calls
a subroutine SRIH with validation parameters and three possible exits
indicated by common variable "R".

*
*   CUSTOMER NUMBER
*   **
110 CALL SRIH(@(25,3),'validation mask',variable,'output mask','help hook')
   ON R GO 100,30,20; VARIABLE=VAL
*
* ANY FURTHER VALIDATION (like start date must be before end date etc)
*
IF CHG THEN GO 800
*
* NEXT FIELD
* ***
...

YES, the Users LOVE the process.   AND EVERY entry program behaves
the same way.

I suspect that's what are called "Standards".

No flames please!  We like it!

Louis


- Original Message - 
From: "Keith W. Roberts" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, October 01, 2005 1:24 AM
Subject: RE: [U2] Good Programming Practice Question.


: Hmmm... A data entry program which goes from prompt#20 backward thru
: prompt#1 ... the users'd LOVE that!
:
: -Keith
:
: Original Message
: From: [EMAIL PROTECTED]
: [mailto:[EMAIL PROTECTED] On Behalf Of Kevin King
: Sent: Friday, September 30, 2005 7:03 AM
: To: u2-users@listserver.u2ug.org
: Subject: RE: [U2] Good Programming Practice Question.
:
: >> FOR X = 1 TO PROMPT.CNT
: >>*some code here*
: >>*Back up one prompt*
: >>X = X - 1 - (X # 1)
: >> NEXT X
: >
: > One more case for looping backwards!  It amazes me how much complex
: > code folks have written over the years to backup after removing a
: > value from a list, when all the time if the loop were written to go
: > from the back to the front the backing up logic is completely
: > unnecessary.
: >
: > -K
: ---
: u2-users mailing list
: u2-users@listserver.u2ug.org
: To unsubscribe please visit http://listserver.u2ug.org/
:
: 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Good Programming Practice Question.........

2005-09-30 Thread Louis Windsor
I second the motion.

Just throw everything into a pot and leave it to each person's taste.

I find some of the ideas suggested ludicrous but that's my opinion.

I generally prefer numeric labels (in strict sequence) with each label
meaning something. e.g. Label 800 is where every data entry program
goes after ALL fields are entered.  Label 900 is the "Page Heading"
routine.  Label 950 is the "Page Heading" routine if more than one
report is output.

These standards suit me and my employer.  If they don't suit you then
that's your problem not mine!

I work on ONE system (currently HP Unix) running UniVerse

And I LOVE

LOOP WHILE READNEXT ID
Some code
IF needs be THEN CONTINUE ELSE EXIT
REPEAT

No EOF variables, no loop indicators.  Self explanatory.  No labels.
If you don't like it don't use it!

I have written entire programs without any labels and programs
with labels.  You show me how you can write a data entry block
of code to allow entry of a field, validate it, allow the User the
option to accept it, "Go Back" to the previous field, abort the whole
session entered so far etc etc without labels.  The input is really
done through an input handling subroutine which sets a return
variable after various validation routines.  The return variable
is addressed by a ON R GO 300,100,800 etc.

Stop trying to impose YOUR standards on someone else.  Just
express your opinion and move on.

My 3 cents worth.

Putting on flame proof suit.

Louis

- Original Message - 
From: "Mark Johnson" <[EMAIL PROTECTED]>
To: 
Sent: Friday, September 30, 2005 8:38 PM
Subject: Re: [U2] Good Programming Practice Question.


: Kevin:
: It happened already. One poster said that subs should be 10 lines or less.
: That's his 'standard' and it works for him. It may not work for everyone.
:
: The back and forth on label nomenclature is another example. I use a 
mixture
: of both numeric and alpha-numeric as my 'standard'.
:
: To answer your question, we all can contribute our own 'standards' and let
: the reader decide which standard will become theirs. In programming,
: especially in MV, there are many ways to solve the same problem. My
: standards may offend others as theirs may offend me. So the request for
: programming standards will inevitably cause conflict.
:
: I often get flames for my suggestions on this forum. That's fine. I'm used
: to it. I guess that as long as my standards work for me and my clients, 
then
: that's fine also.
:
: I knew from the onset of that innocent question it would become a popular
: thread. Perhaps a compilation of the various methods for each MV element
: could be made (or acquired) and each could pick (no pun intended) what 
they
: like the most.
:
: Thanks
: Mark Johnson
: - Original Message -
: From: "Kevin King" <[EMAIL PROTECTED]>
: To: 
: Sent: Thursday, September 29, 2005 11:13 PM
: Subject: RE: [U2] Good Programming Practice Question.
:
:
: > >This thread, while starting on noble grounds of 'good' programming
: > >practices, will eventually turn into a pissing contest of implied
: > >standards.
: >
: > I normally ignore you, but this one has me interested.  Why must this
: > otherwise educational topic be degraded into implication?
: >
: > -K
: > ---
: > u2-users mailing list
: > u2-users@listserver.u2ug.org
: > To unsubscribe please visit http://listserver.u2ug.org/
: ---
: u2-users mailing list
: u2-users@listserver.u2ug.org
: To unsubscribe please visit http://listserver.u2ug.org/
:
: 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] File name of the RECORDS which are listed in LIST.READU output

2005-08-06 Thread Louis Windsor
WARNING - LONG STORY

I'm sorry Tim - I told a lie!

The first User to login for the day causes the inode table to be refreshed.

The logic is built in (through subroutines) called by ALL programs that 
update
files.  Should a "lock" occur the subroutine rerefreshes before notifying 
the User.

The Users are told, with a bottom line message, which record is locked, in 
which file,
by whom, running which program.  Like :-

"Trying To Access PRODUCT MASTER FILE  Locked By Fred User In 
Program"

No actual file names rather file descriptions are displayed.  Security 
measure!

The subroutine then "beeps" every second and loops on the lock.  The User 
knows who
to contact and whose "butt" to kick!  I thought of including a phone number 
but "Big
Sister" said No!

Only the IT dept can query the full lock status with a function that reports 
on all locks
set including the deadly embraces (UniVerse calls them Waiters) in progress, 
which
Users are involved, which files, which records and how long each User has 
been "idle" so
we (IT) know who has gone for a cup of coffee or gone home!  We are in five 
States,
and three (?) time zones.

Complications occur when untrained (or impatient) Users "kill" their telnet 
sessions
and "go home" leaving the lock in place then IT must use UNLOCK User etc 
etc.

Pardon my "lie", I did all this about 15 years ago!  With a few tweaks as
Unixes ( Unixi :) ) changed from time to time with hardware (and software) 
updates etc.

I warned you it was a long story!

Louis

- Original Message - 
From: "Timothy Snyder" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, August 07, 2005 12:19 AM
Subject: Re: [U2] File name of the RECORDS which are listed in LIST.READU 
output


: "Louis Windsor" <[EMAIL PROTECTED]> wrote on 08/06/2005 04:12:35 AM:
:
: > I do the same but every time you login.
:
: The context of this is a bit blurred due to over-quoting, so I just want
: to make sure I understood correctly.  Does "the same" mean going through
: all file references in an account and creating an entry in an i-node table
: for each?  And does "you" mean every user?
:
: If so, you may want to reconsider this strategy.  If you have five people
: logging on simultaneously, each of them is buzzing through the VOC,

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


Re: [U2] File name of the RECORDS which are listed in LIST.READU output

2005-08-06 Thread Louis Windsor
I do the same but every time you login.

Louis
'
- Original Message - 
From: <[EMAIL PROTECTED]>
To: 
Sent: Saturday, August 06, 2005 12:43 AM
Subject: Re: [U2] File name of the RECORDS which are listed in LIST.READU 
output


: In a message dated 8/4/2005 1:56:49 AM Pacific Daylight Time,
: [EMAIL PROTECTED] writes:
:
:
: > 2. Write a simple program to build your own register of inode numbers. 
You
: > can do this with a loop based on the following
:
: I take Martin's idea one step further.
: I have a phantom, that every night rebuilds the inode-to-filename xref 
table.
: Then when people run the LIST-READU command, I have it display the 
filename
: instead of the inode.
:   While there *are* occasions when the filename is not in the list, 
because
: it's been created that *day*, they are usually rather rare.
: Will Johnson
: Fast Forward Technologies
: ---
: u2-users mailing list
: u2-users@listserver.u2ug.org
: To unsubscribe please visit http://listserver.u2ug.org/
:
: 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [OT?] SATA vs SCSI drives

2005-08-04 Thread Louis Windsor
I realise that this is very likely an old article but the current SATA 
drives will
accept the old four pins power plugs etc. (and the new ones) - a brilliant 
idea!

Louis


: You'll also need new cables. Some SATA drives use different power cables 
and
: all use different signal cables, so you may not be able to use the
: traditional 4-pin power connectors. Serial ATA drives require power
: connectors with +12, +5, and +3.3 volts. Current 4-pin ATX-type power
: supplies provide only drive power connectors with the traditional +12- and
: +5-volt signals. This means your PC may need a power supply fitted with 
SATA
: drive power connectors or an adapter.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] PCL Codes taking character positions [UV]

2005-07-31 Thread Louis Windsor
Sorry David,

I missed my own point!

You have to declare the line length to allow for all control characters
and actual text or else you will get line wrap based on the physical
number of characters in the line.

Louis

- Original Message - 
From: "Louis Windsor" <[EMAIL PROTECTED]>
To: 
Sent: Monday, August 01, 2005 8:59 AM
Subject: Re: [U2] PCL Codes taking character positions [UV]


: Hi David,
:
: Each character of the control sequence MUST take up one character in
: the &HOLD& file.  I suspect that the printer will action them and
: suppress them.  To use your example - ten control characters and 80
: text characters is a line 90 characters long but only 80 character when
: printed.
:
: Catch my drift?
:
: Louis
:
: - Original Message - 
: From: "Norman, David (SAAS)" <[EMAIL PROTECTED]>
: To: 
: Sent: Monday, August 01, 2005 8:05 AM
: Subject: [U2] PCL Codes taking character positions [UV]
:
:
:: Morning,
:: I am having a problem with PCL codes taking character positions when
:: spooling to &HOLD&.
:: If I print direct to the printer (SETPTR mode 1) then PCL codes such as
:: Bold/unbold do not take character positions and I can print 80 characters
: on
:: a line.
:: If however I print to &HOLD& using mode 3, and then print the hold file
:: using SPOOL, each character of each PCL code takes one position, so that
:: each Bold/unbold sequence [Esc (s4B text Esc (s0B] takes 10 of the 80
:: characters for the PCL codes. A couple of these sequences on one line
:: reduces the available characters considerably, resulting in overflow onto
:: the next line.
:: My objective is to print immediately, and also keep a copy on &HOLD&. Is
:: there a better way of doing this ?
::
:: Thanks,
:: 
:: David Norman
:: Senior Software Engineer
:: SA Ambulance Service
:: Box 3, GPO
:: Adelaide, South Australia 5001
:: *+61 8 8274 0384
:: fax +61 8 8271 4844
:: * [EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>
:: ---
:: u2-users mailing list
:: u2-users@listserver.u2ug.org
:: To unsubscribe please visit http://listserver.u2ug.org/
::
::
: ---
: u2-users mailing list
: u2-users@listserver.u2ug.org
: To unsubscribe please visit http://listserver.u2ug.org/
:
: 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] PCL Codes taking character positions [UV]

2005-07-31 Thread Louis Windsor
Hi David,

Each character of the control sequence MUST take up one character in
the &HOLD& file.  I suspect that the printer will action them and
suppress them.  To use your example - ten control characters and 80
text characters is a line 90 characters long but only 80 character when
printed.

Catch my drift?

Louis

- Original Message - 
From: "Norman, David (SAAS)" <[EMAIL PROTECTED]>
To: 
Sent: Monday, August 01, 2005 8:05 AM
Subject: [U2] PCL Codes taking character positions [UV]


: Morning,
: I am having a problem with PCL codes taking character positions when
: spooling to &HOLD&.
: If I print direct to the printer (SETPTR mode 1) then PCL codes such as
: Bold/unbold do not take character positions and I can print 80 characters 
on
: a line.
: If however I print to &HOLD& using mode 3, and then print the hold file
: using SPOOL, each character of each PCL code takes one position, so that
: each Bold/unbold sequence [Esc (s4B text Esc (s0B] takes 10 of the 80
: characters for the PCL codes. A couple of these sequences on one line
: reduces the available characters considerably, resulting in overflow onto
: the next line.
: My objective is to print immediately, and also keep a copy on &HOLD&. Is
: there a better way of doing this ?
:
: Thanks,
: 
: David Norman
: Senior Software Engineer
: SA Ambulance Service
: Box 3, GPO
: Adelaide, South Australia 5001
: *+61 8 8274 0384
: fax +61 8 8271 4844
: * [EMAIL PROTECTED] 
: ---
: u2-users mailing list
: u2-users@listserver.u2ug.org
: To unsubscribe please visit http://listserver.u2ug.org/
:
: 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UV]Strange But True

2005-01-12 Thread Louis Windsor
Concatenating a null to the numbers doesn't achieve anything they are 
unchanged and remain floating point numbers.

Louis


- Original Message - 
From: "Matt Stern" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, January 13, 2005 12:38 AM
Subject: Re: [U2] [UV]Strange But True


: But wait, it gets even weirder!
:
: If you do the following, to make sure there's no chance of the two
: strings acting as numeric:
:
: VAL1 = "43008E-112": ""
: and
: VAL2 = "43008E-108":""
:
: the program still fails.  When you REALLY make sure you're doing a string 
compare with
:
: IF (VAL1:"" = VAL2:"") THEN
:
: it STILL FAILS!
:
: Oh well, I guess U2 has a mind of its own with regard to string compare. 
Note that the string compare works OK on most generic Pick platforms.
:
: Matthew H. Stern, CCP/CDP, [EMAIL PROTECTED]
: Serving the IT industry since 1976
: Comprehensive Computer Services Inc.
: www.comprehensive.com
: Phone: 631 755-2250, Fax 755-2254
: 560 Broad Hollow Road, Melville NY 11747
:
:
:
: Marilyn Hilb wrote:
:
: >I had this same problem with our bin locations that contained an E. I 
ended up swapping E for X before doing the compare to get the results I 
wanted.
: >
: >Thanks,
: >
: >Marilyn A. Hilb
: >Value Part, Inc
: >Direct: 847-918-6099
: >Fax: 847-367-1892
: >[EMAIL PROTECTED]
: >www.valuepart.com
: >
: > -Original Message-
: >From: Louis Windsor [mailto:[EMAIL PROTECTED]
: >Sent: Wednesday, January 12, 2005 6:20 AM
: >To: u2-users@listserver.u2ug.org
: >Subject: Re: [U2] [UV]Strange But True
: >
: >I don't know if it is intentional but the values you are comparing
: >are exponential.
: >
: >So the comparison is of two incredibly small numbers.  The
: >numbers are so small they are equal for all intents or purposes.
: >
: >My 2c worth.
: >
: >Louis
: >
: >
: >- Original Message - 
: >From: "Bjorn Behr" <[EMAIL PROTECTED]>
: >To: 
: >Sent: Wednesday, January 12, 2005 7:08 PM
: >Subject: [U2] [UV]Strange But True
: >
: >
: >: Uv Version: UniVerse 10.1
: >: OS : Windows 2003 Server
: >:
: >: Can anybody explain. I wrote a small program and the result has 
baffeled
: >me.
: >:
: >: Program:
: >:
: >: VAL1 = "43008E-112"
: >: VAL2 = "43008E-108"
: >: IF (VAL1 = VAL2) THEN
: >:CRT "THIS IS STRANGE"
: >: END
: >:
: >: It returns THIS IS STRANGE. Does anybody know why?
: >: 

: >: Regards
: >: Bjvrn Behr
: >: Programmer
: >:
: >: HYFLO Southern Africa (Pty) Ltd
: >: Tel : +27 11 386 5800
: >: Fax : +27 11 444 5391
: >: Mail: [EMAIL PROTECTED]
: >: WWW : http://www.hyflo.co.za
: >: 

: >: ---
: >: u2-users mailing list
: >: u2-users@listserver.u2ug.org
: >: To unsubscribe please visit http://listserver.u2ug.org/
: >:
: >:
: >:
: >:
: >: -- 
: >: Internal Virus Database is out-of-date.
: >: Checked by AVG Anti-Virus.
: >: Version: 7.0.296 / Virus Database: 265.6.8 - Release Date: 3/01/2005
: >:
: >:
: ---
: u2-users mailing list
: u2-users@listserver.u2ug.org
: To unsubscribe please visit http://listserver.u2ug.org/
:
:
:
:
: -- 
: Internal Virus Database is out-of-date.
: Checked by AVG Anti-Virus.
: Version: 7.0.296 / Virus Database: 265.6.8 - Release Date: 3/01/2005
:
: 



-- 
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.8 - Release Date: 3/01/2005
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UV]Strange But True

2005-01-12 Thread Louis Windsor
It's a while since I considered floating point numbers but I think we are 
talking about numbers that are in the order of

POINT 103 zeroes and some digits

.00043008

I think adding three more zeroes to the number is really irrelevant.  I do 
take Wol's point on scaling though.

I suspect the original enquirer didn't realise the significance of the "E" 
in the comparison.  They might just be comparing membership numbers or 
something.  Well that was the case when I stumbled on the "bug"!

Another 1c worth,

Louis


- Original Message - 
From: <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, January 12, 2005 9:43 PM
Subject: Re: [U2] [UV]Strange But True


: [EMAIL PROTECTED] wrote:
: > I don't know if it is intentional but the values you are comparing
: > are exponential.
: >
: > So the comparison is of two incredibly small numbers.  The
: > numbers are so small they are equal for all intents or purposes.
: >
: "small" is subjective. The earth is only rounding error as far as the 
universe is concerned, but it is very important to us.
:
: To my mind this is a major bug, if you're right. It's as bad as "IF 100 = 
0.01" were to return TRUE. (Which is exactly the same comparison, scaled 
up.)
:
: The correct way of dealing with rounding error is for the internal logic 
to be along the lines of "IF (A-B)/A < 1E-6 THEN RETURN TRUE ELSE RETURN 
FALSE".
:
: While I'm pretty certain 6 is the wrong number, there is a concrete 
justification for it - when comparing FLOAT*4 numbers it guarantees that you 
are using the best available precision without falling over processor 
rounding artifacts. There is a similar number for FLOAT*8, which is what I 
think UV uses internally. (And I'm assuming A and B are positive, correct 
appropriately for negative numbers :-)
:
: Cheers,
: Wol
: ---
: u2-users mailing list
: u2-users@listserver.u2ug.org
: To unsubscribe please visit http://listserver.u2ug.org/
:
:
:
:
: -- 
: Internal Virus Database is out-of-date.
: Checked by AVG Anti-Virus.
: Version: 7.0.296 / Virus Database: 265.6.8 - Release Date: 3/01/2005
:
: 



-- 
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.8 - Release Date: 3/01/2005
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UV]Strange But True

2005-01-12 Thread Louis Windsor
I don't know if it is intentional but the values you are comparing
are exponential.

So the comparison is of two incredibly small numbers.  The
numbers are so small they are equal for all intents or purposes.

My 2c worth.

Louis


- Original Message - 
From: "Bjorn Behr" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, January 12, 2005 7:08 PM
Subject: [U2] [UV]Strange But True


: Uv Version: UniVerse 10.1
: OS : Windows 2003 Server
:
: Can anybody explain. I wrote a small program and the result has baffeled 
me.
:
: Program:
:
: VAL1 = "43008E-112"
: VAL2 = "43008E-108"
: IF (VAL1 = VAL2) THEN
:CRT "THIS IS STRANGE"
: END
:
: It returns THIS IS STRANGE. Does anybody know why?
: 
: Regards
: Bjvrn Behr
: Programmer
:
: HYFLO Southern Africa (Pty) Ltd
: Tel : +27 11 386 5800
: Fax : +27 11 444 5391
: Mail: [EMAIL PROTECTED]
: WWW : http://www.hyflo.co.za
: 
: ---
: u2-users mailing list
: u2-users@listserver.u2ug.org
: To unsubscribe please visit http://listserver.u2ug.org/
:
:
:
:
: -- 
: Internal Virus Database is out-of-date.
: Checked by AVG Anti-Virus.
: Version: 7.0.296 / Virus Database: 265.6.8 - Release Date: 3/01/2005
:
: 



-- 
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.8 - Release Date: 3/01/2005
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] getting undefined errors when varible look defined (UV/unix)

2004-12-20 Thread Louis Windsor
Everybody answered about clearing arrays etc but no-one (that I can see)
said what the $Rnnn variable is.

: >
: > What is $R196?
: >

It is a temporary variable that the compiler uses for intermediate results.

e.g.

EX=123+234+345

The compiler breaks this down to:-

add 123 and 234 into variable $R0
add $R0 and 345 into EX

Just compile the sentence and look at the code generated with a VLIST.

Louis
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] getting undefined errors when varible look defined (UV/unix)

2004-12-20 Thread Louis Windsor
Everybody answered about clearing arrays etc but no-one (that I can see)
said what the $Rnnn variable is.

: >
: > What is $R196?
: >

It is a temporary variable that the compiler uses for intermediate results.

e.g.

EX=123+234+345

The compiler breaks this down to:-

add 123 and 234 into variable $R0
add $R0 and 345 into EX

Just compile the sentence and look at the code generated with a VLIST.

Louis
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UD] Exit BASIC program with SELECT list?

2004-10-27 Thread Louis Windsor
I think this pointer remembering is call APC (Attribute Positioning
Cache).  Well it is in UV anyway.

Louis


- Original Message - 
From: "Dean Fox" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 27, 2004 10:19 PM
Subject: RE: [U2] [UD] Exit BASIC program with SELECT list?


:I had this discussion with Ian Sanders and from what I understood, in
: current versions of [UV] that the pointer is now maintained in loops. So
: that there is no longer speed related advantages (pointer based) using
: REMOVE.
:
: FOR I = 1 TO 1
:   X = ARRAY
: NEXT I
:
: Is equivalent to:
:
: FOR I = 1 TO 1
:   X = REMOVE(ARRAY)
: NEXT I
:
: -[d]-
:
: -Original Message-
: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
: Sent: Wednesday, October 27, 2004 9:10 AM
: To: [EMAIL PROTECTED]
: Subject: RE: [U2] [UD] Exit BASIC program with SELECT list?
:
:
: On 26 Oct 2004 13:26:22 -0700, Allen Egerton wrote:
: > Why wouldn't you use the REMOVE statement?
:
: On 26 Oct 2004 16:33:55 -0700, Allen E. Elwood wrote:
: > Ohh.lemme see, could it be that I've never heard of REMOVE?
:
: A caution with REMOVE - It removes up to the next DELIMITER, so if you 
have
: value marks or lower delimiters in your data, you won't skip an entire
: attribute.  Full UniData syntax is
:
: REMOVE var FROM dyn.var [AT col.pos] SETTING delim.code
:
: delim.code returns the delimiter:  0=End, 1=Record Mark, 2=Attribute Mark,
: etc.
:
: I found the following works rather well, and returns full attributes
: without extra coding:
:
: SELECT DYM.ARRAY TO LIST.VAR
: LOOP WHILE READNEXT ATTR FROM LIST.VAR DO
:   
: REPEAT
:
: Also, when building a list, I found on our system that using
:
: NEW.LIST = NEW.LIST:@AM:NEW.VAL
:
: works faster than the <-1> construct.
:
: Your mileage may vary.
:
: --Tom Pellitieri
:  Century Equipment
:  Toledo, Ohio
: ---
: u2-users mailing list
: [EMAIL PROTECTED]
: To unsubscribe please visit http://listserver.u2ug.org/
: ---
: u2-users mailing list
: [EMAIL PROTECTED]
: To unsubscribe please visit http://listserver.u2ug.org/
:
: 
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] How do I get the Universe Version number from the server

2004-10-20 Thread Louis Windsor
CT VOC RELLEVEL
will display release level of the current account.

Louis


- Original Message - 
From: "peter watson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 20, 2004 7:37 PM
Subject: [U2] How do I get the Universe Version number from the server


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


Re: [U2] How create list of uv files from VOC?

2004-06-30 Thread Louis Windsor
I would suggest you change the TYPE = "F" to TYPE LIKE "F..." as
sometimes the first attribute is something like:-

File Pointer to Inventory Master File

This was certainly the case where I worked.

Louis

- Original Message - 
From: "Brian Phillips" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 01, 2004 10:29 AM
Subject: RE: [U2] How create list of uv files from VOC?


: In Universe, I'd set my printer output to the hold file, then sort the VOC
: file and format the display field (F2) to something wide.
:
: SETPTR 0,200,,0,0,3,BRIEF,BANNER FILELIST.TXT
: SORT VOC WITH TYPE = "F" F2 FMT "200L" ID.SUP LPTR
:
: The results will be in the &HOLD& file (./&HOLD&/FILELIST.TXT).
:
: > -Original Message-
: > From: [EMAIL PROTECTED]
: > [mailto:[EMAIL PROTECTED] Behalf Of LeRoi Keiller
: > Sent: Wednesday, June 30, 2004 9:54 PM
: > To: U2-Users (E-mail)
: > Subject: [U2] How create list of uv files from VOC?
: >
: > Hi
: >
: > Wondering if any of you programmers could tell me how to output the
paths
: of
: > UniVerse files that are listed in the VOC - ie files of type F - to a
text
: > file?  (I wish to use the generated list from and for a unix script.)
: >
: > I need the file to consist of just each file's path on its own line - ie
: no
: > breaks in the path (no wrapping columns).
: > Eg:
: > /UVACC/uv/MYACC/MYFILE1
: > /UVACC/uv/MYACC/MYFILE2
: > /UVACC/uv/MYACC/MYDIR/MYFILE3
: > ...
: >
: > I have the following line, but don't know what to do with it.
: >
: >SELECT or SORT VOC WITH F1 = "F" F2
: >
: > Thanks,
: > LeRoi
: >
: > LeRoi Keiller
: > Technical Support
: ---
: u2-users mailing list
: [EMAIL PROTECTED]
: To unsubscribe please visit http://listserver.u2ug.org/
:
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UV] WHILE READNEXT id DO

2004-06-17 Thread Louis Windsor
The format -

LOOP WHILE READNEXT ID
code
REPEAT

was the suggested standard where I used to work.

Louis


- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 17, 2004 4:57 PM
Subject: [U2] [UV] WHILE READNEXT id DO


: LOOP
: code
: WHILE READNEXT id DO
: more code
: REPEAT
:
: This format of the READNEXT statement is used in a couple of places in the
: UniVerse BASIC manual. It looks like READNEXT is returning a Boolean.
:
: If I look up READNEXT in the manual (or in HELP from TCL) - there is no
: mention of this format of the statement.
:
: And in the manual the THEN and ELSE are enclosed in braces: {THEN
statements
: [ELSE statements] | ELSE statements}
: which according to convention means that I have to choose one
"non-optional"
: item.
:
: Has this format of the statement just been left out of the manual by
mistake
: or is it a "new" format, that was never documented.
:
: And, what are people's thoughts on using this format. Personally I dislike
: it, as it isn't easily readable, it's not documented and it's not a
standard
: use of the statement syntax.
:
: AdrianW
:
:
:
:
: Disclaimer.  This e-mail is private and confidential. If you are not the
: intended recipient, please advise us by return e-mail immediately, and
: delete the e-mail and any attachments without using or disclosing the
: contents in any way. The views expressed in this e-mail are those of the
: author, and do not represent those of this company unless this is clearly
: indicated. You should scan this e-mail and any attachments for viruses.
This
: company accepts no liability for any direct or indirect damage or loss
: resulting from the use of any attachments to this e-mail.
: ---
: u2-users mailing list
: [EMAIL PROTECTED]
: To unsubscribe please visit http://listserver.u2ug.org/
:
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [OT]Postscript to a Laser on Dumb Term Aux Port

2004-06-04 Thread Louis Windsor
Try Googling for them.  Here is a start:-

http://www.laserjet.co.uk/manuals.htm

Louis

- Original Message - 
From: "Karl L Pearson" <[EMAIL PROTECTED]>
To: "u2-users" <[EMAIL PROTECTED]>
Sent: Saturday, June 05, 2004 5:25 AM
Subject: Re: [U2] [OT]Postscript to a Laser on Dumb Term Aux Port


: Nice information, but, how would one switch back to PCL? For that
: matter, where did you get that information and is it on the internet
: somwhere?
:
: TIA,
:
: Karl
:
: On Fri, 2004-06-04 at 14:21, Ron White wrote:
: > I don't have any specific knowledge of Epson printers
: > but on HP you can cause the printer to shift to postscript
: > personality by sending then following:
: >
: > PRINT CHAR(27):'%-12345X':
: > PRINT '@PJL ENTER LANGUAGE = PostScript'
: >
: > This turns off the default PCL processing and enables
: > postscript.
: >
: > Ron White
: >
: > - Original Message - 
: > From: "Anthony Dzikiewicz" <[EMAIL PROTECTED]>
: > To: <[EMAIL PROTECTED]>
: > Sent: Friday, June 04, 2004 1:53 PM
: > Subject: [U2] [OT]Postscript to a Laser on Dumb Term Aux Port
: >
: >
: > > I know there must be a way to do this.  I thought Id ask so it would
save
: > a
: > > lot of aggravation.  We have a bunch of dumb terminals (vt100
emulation)
: > > with printers attached to the printer port.  Currently, we have Epson
: > > printers attached and are printing ascii text to a pre-printed form.
I
: > > would like to use laser printers with postscript.  So, I am
experimenting
: > > with a postscript file that I would like to print via the aux port.
What
: > > Ive done is to write a test program to open the aux port via control
: > codes,
: > > then cat the postscript file, then close the aux port.  What prints
out is
: > > the postscript verbatim.  I suppose 'cat' is not the way to go, but
some
: > > kind of 'binary' method that says to the printer to not interpret as
: > ascii.
: > > Does anyone know the magic word for this ? We are using Universe on
Red
: > Hat
: > > Linux.
: > > Thanks
: > > Anthony
: > > ---
: > > u2-users mailing list
: > > [EMAIL PROTECTED]
: > > To unsubscribe please visit http://listserver.u2ug.org/
: > > ---
: > > [ Eckel certifies this E-mail to be virus free. ]
: > >
: > >
: > >
: >
: >
: > ---
: > [ Eckel certifies this E-mail to be virus free. ]
: > ---
: > u2-users mailing list
: > [EMAIL PROTECTED]
: > To unsubscribe please visit http://listserver.u2ug.org/
: -- 
: Karl L. Pearson
: Director of IT,
: ATS Industrial Supply
: Direct: 801-978-4429
: Toll-free: 888-972-3182 x29
: Fax: 801-972-3888
: http://www.atsindustrial.com
: [EMAIL PROTECTED]
: ---
: u2-users mailing list
: [EMAIL PROTECTED]
: To unsubscribe please visit http://listserver.u2ug.org/
:
---
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] Data truncation

2004-05-24 Thread Louis Windsor
yeah, that works.

OPENSEQ, OPENSEQ ,READBLK, WRITEBLK, CLOSESEQ, CLOSESEQ

Louis

- Original Message - 
From: "Peter Olson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 24, 2004 7:51 PM
Subject: RE: [U2] Data truncation


: readblk ?
:
: -Original Message-
: From: [EMAIL PROTECTED]
: [mailto:[EMAIL PROTECTED] Behalf Of Louis Windsor
: Sent: Monday, May 24, 2004 6:28 AM
: To: [EMAIL PROTECTED]
: Subject: Re: [U2] Data truncation
:
:
: Spoke too soon!
:
: All I have to do is work out how to tell UniVerse to leave the binary data
: alone when I read it from cURL temporary output file.
:
: As it is UniVerse adds 6Kb worth of hex 0Ds before hex 0As.
:
: Louis
:
: - Original Message - 
: From: "Louis Windsor" <[EMAIL PROTECTED]>
: To: <[EMAIL PROTECTED]>
: Sent: Monday, May 24, 2004 4:01 PM
: Subject: Re: [U2] Data truncation
:
:
: : Thanks Larry!
: :
: : I had "curl -s -o filename URL" and it would NOT work, try as I might.
: : I swapped things arguments around and all sorts.  Played around with
: : the filename etc.  The URL wasn't very long and I was GETting not
: : POSTing.
: :
: : In desperation I changed it to (as you suggested)
: :
: : curl --fail --silent --output filename --url URL
: :
: : IT WORKED
: :
: : I can't explain it.  It works now so I'm going to leave it alone!
: :
: : Thanks,
: :
: : Louis
: :
: :
: : - Original Message - 
: : From: "Larry Hiscock" <[EMAIL PROTECTED]>
: : To: <[EMAIL PROTECTED]>
: : Sent: Monday, May 24, 2004 2:52 PM
: : Subject: RE: [U2] Data truncation
: :
: :
: : : One thing I've noticed with curl -- if you have a long URL or a lot of
: : data
: : : to post, packing it all onto the command line sometimes fails.  I
think
: it
: : : gets too long for the command interpreter to deal with.
: : :
: : : What I've had good success with is writing curl options to a file, and
: : then
: : : invoking curl with the -K option.  I use the longer format of the curl
: : : options, and generally use the following:
 curl --fail --silent --output
: : :  --url URL
: : :
: : : I've done this on both Unix/Linux and Windows platforms with good
: success.
: : :
: : : Larry Hiscock
: : : Western Computer Services
: : :
: : :
: : : -Original Message-
: : : From: [EMAIL PROTECTED]
: : : [mailto:[EMAIL PROTECTED] Behalf Of Louis Windsor
: : : Sent: Sunday, May 23, 2004 11:03 PM
: : : To: [EMAIL PROTECTED]
: : : Subject: Re: [U2] Data truncation
: : :
: : :
: : : I am EXECUTE ... CAPTURING VARIABLE.
: : :
: : : I have done this heaps of times with text and it works beautifully.
: : :
: : : I tried lots of different ways to make cURL output to a file and
always
: : : failed.
: : :
: : : Even the straightforward curl -s URL -o 
: : :
: : : I even posted a question on the cURL website sometime ago but didn't
: : : get a reasonable response.  I suspect they are a little intolerant of
: : : newbie's or
: : : unusual environments (UniVerse).
: : :
: : : Louis
: : :
: : : - Original Message -
: : : From: "Larry Hiscock" <[EMAIL PROTECTED]>
: : : To: <[EMAIL PROTECTED]>
: : : Sent: Monday, May 24, 2004 1:13 PM
: : : Subject: RE: [U2] Data truncation
: : :
: : :
: : : : How exactly are you capturing the output from curl?  Curl has an
: option
: : to
: : : : direct it's output to a file instead of stdout (--output filename).
: You
: : : : might try sending the output to a flat file in a directory that's
: : defined
: : : as
: : : : a "dir" type file in UV.  Then you can simply open the file and read
: the
: : : : item in your program.
: : : :
: : : : Larry Hiscock
: : : : Western Computer Services
: : : :
: : : :
: : : : -Original Message-
: : : : From: [EMAIL PROTECTED]
: : : : [mailto:[EMAIL PROTECTED] Behalf Of Louis
Windsor
: : : : Sent: Sunday, May 23, 2004 9:21 PM
: : : : To: [EMAIL PROTECTED]
: : : : Subject: [U2] Data truncation
: : : :
: : : :
: : : : I apologise if this question has been asked before but I tried
: searching
: : : in
: : : : the u2ug but could not find anything.
: : : :
: : : : I execute a DOS (cURL) function and get back binary data.  I expect
: : about
: : : : 832Kb but aparently the data gets truncated at hex 1A0A
: : : : which is converted to hex 0D0A.
: : : :
: : : : I am fairly sure this is being done by UniVerse (on WinXP) as the
: : execute
: : : : takes about the right time to download the 832Kb.
: : : :
: : : : Are there any OPTIONS directives or SYSTEM commands I can set to
: prevent
: : : the
: : : : truncation?
: : : :
: : : : TIA
: : : :
: : : : Louis
: : : : ---
: : : : u2-users mailing list
: : : : [EMAIL PROTECTED]
: : : : http://www.u2ug.org/listinfo/u2-users
: : : : ---
: : : : u2-users mailing list
: : : : [EMAIL PROTECTED]
: : : : http://www.u2ug.org/listinfo/u2-users
: : : :
: : : ---
: : : u2-users mailing list
:

Re: [U2] Data truncation

2004-05-24 Thread Louis Windsor
Spoke too soon!

All I have to do is work out how to tell UniVerse to leave the binary data
alone when I read it from cURL temporary output file.

As it is UniVerse adds 6Kb worth of hex 0Ds before hex 0As.

Louis

- Original Message - 
From: "Louis Windsor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 24, 2004 4:01 PM
Subject: Re: [U2] Data truncation


: Thanks Larry!
:
: I had "curl -s -o filename URL" and it would NOT work, try as I might.
: I swapped things arguments around and all sorts.  Played around with
: the filename etc.  The URL wasn't very long and I was GETting not
: POSTing.
:
: In desperation I changed it to (as you suggested)
:
: curl --fail --silent --output filename --url URL
:
: IT WORKED
:
: I can't explain it.  It works now so I'm going to leave it alone!
:
: Thanks,
:
: Louis
:
:
: - Original Message - 
: From: "Larry Hiscock" <[EMAIL PROTECTED]>
: To: <[EMAIL PROTECTED]>
: Sent: Monday, May 24, 2004 2:52 PM
: Subject: RE: [U2] Data truncation
:
:
: : One thing I've noticed with curl -- if you have a long URL or a lot of
: data
: : to post, packing it all onto the command line sometimes fails.  I think
it
: : gets too long for the command interpreter to deal with.
: :
: : What I've had good success with is writing curl options to a file, and
: then
: : invoking curl with the -K option.  I use the longer format of the curl
: : options, and generally use the following:  curl --fail --silent --output
: :  --url URL
: :
: : I've done this on both Unix/Linux and Windows platforms with good
success.
: :
: : Larry Hiscock
: : Western Computer Services
: :
: :
: : -Original Message-----
: : From: [EMAIL PROTECTED]
: : [mailto:[EMAIL PROTECTED] Behalf Of Louis Windsor
: : Sent: Sunday, May 23, 2004 11:03 PM
: : To: [EMAIL PROTECTED]
: : Subject: Re: [U2] Data truncation
: :
: :
: : I am EXECUTE ... CAPTURING VARIABLE.
: :
: : I have done this heaps of times with text and it works beautifully.
: :
: : I tried lots of different ways to make cURL output to a file and always
: : failed.
: :
: : Even the straightforward curl -s URL -o 
: :
: : I even posted a question on the cURL website sometime ago but didn't
: : get a reasonable response.  I suspect they are a little intolerant of
: : newbie's or
: : unusual environments (UniVerse).
: :
: : Louis
: :
: : - Original Message -
: : From: "Larry Hiscock" <[EMAIL PROTECTED]>
: : To: <[EMAIL PROTECTED]>
: : Sent: Monday, May 24, 2004 1:13 PM
: : Subject: RE: [U2] Data truncation
: :
: :
: : : How exactly are you capturing the output from curl?  Curl has an
option
: to
: : : direct it's output to a file instead of stdout (--output filename).
You
: : : might try sending the output to a flat file in a directory that's
: defined
: : as
: : : a "dir" type file in UV.  Then you can simply open the file and read
the
: : : item in your program.
: : :
: : : Larry Hiscock
: : : Western Computer Services
: : :
: : :
: : : -Original Message-
: : : From: [EMAIL PROTECTED]
: : : [mailto:[EMAIL PROTECTED] Behalf Of Louis Windsor
: : : Sent: Sunday, May 23, 2004 9:21 PM
: : : To: [EMAIL PROTECTED]
: : : Subject: [U2] Data truncation
: : :
: : :
: : : I apologise if this question has been asked before but I tried
searching
: : in
: : : the u2ug but could not find anything.
: : :
: : : I execute a DOS (cURL) function and get back binary data.  I expect
: about
: : : 832Kb but aparently the data gets truncated at hex 1A0A
: : : which is converted to hex 0D0A.
: : :
: : : I am fairly sure this is being done by UniVerse (on WinXP) as the
: execute
: : : takes about the right time to download the 832Kb.
: : :
: : : Are there any OPTIONS directives or SYSTEM commands I can set to
prevent
: : the
: : : truncation?
: : :
: : : TIA
: : :
: : : Louis
: : : ---
: : : u2-users mailing list
: : : [EMAIL PROTECTED]
: : : http://www.u2ug.org/listinfo/u2-users
: : : ---
: : : u2-users mailing list
: : : [EMAIL PROTECTED]
: : : http://www.u2ug.org/listinfo/u2-users
: : :
: : ---
: : u2-users mailing list
: : [EMAIL PROTECTED]
: : http://www.u2ug.org/listinfo/u2-users
: : ---
: : u2-users mailing list
: : [EMAIL PROTECTED]
: : http://www.u2ug.org/listinfo/u2-users
: :
: ---
: u2-users mailing list
: [EMAIL PROTECTED]
: http://www.u2ug.org/listinfo/u2-users
:
---
u2-users mailing list
[EMAIL PROTECTED]
http://www.u2ug.org/listinfo/u2-users


Re: [U2] Data truncation

2004-05-24 Thread Louis Windsor
Thanks Larry!

I had "curl -s -o filename URL" and it would NOT work, try as I might.
I swapped things arguments around and all sorts.  Played around with
the filename etc.  The URL wasn't very long and I was GETting not
POSTing.

In desperation I changed it to (as you suggested)

curl --fail --silent --output filename --url URL

IT WORKED

I can't explain it.  It works now so I'm going to leave it alone!

Thanks,

Louis


- Original Message - 
From: "Larry Hiscock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 24, 2004 2:52 PM
Subject: RE: [U2] Data truncation


: One thing I've noticed with curl -- if you have a long URL or a lot of
data
: to post, packing it all onto the command line sometimes fails.  I think it
: gets too long for the command interpreter to deal with.
:
: What I've had good success with is writing curl options to a file, and
then
: invoking curl with the -K option.  I use the longer format of the curl
: options, and generally use the following:  curl --fail --silent --output
:  --url URL
:
: I've done this on both Unix/Linux and Windows platforms with good success.
:
: Larry Hiscock
: Western Computer Services
:
:
: -Original Message-
: From: [EMAIL PROTECTED]
: [mailto:[EMAIL PROTECTED] Behalf Of Louis Windsor
: Sent: Sunday, May 23, 2004 11:03 PM
: To: [EMAIL PROTECTED]
: Subject: Re: [U2] Data truncation
:
:
: I am EXECUTE ... CAPTURING VARIABLE.
:
: I have done this heaps of times with text and it works beautifully.
:
: I tried lots of different ways to make cURL output to a file and always
: failed.
:
: Even the straightforward curl -s URL -o 
:
: I even posted a question on the cURL website sometime ago but didn't
: get a reasonable response.  I suspect they are a little intolerant of
: newbie's or
: unusual environments (UniVerse).
:
: Louis
:
: - Original Message -
: From: "Larry Hiscock" <[EMAIL PROTECTED]>
: To: <[EMAIL PROTECTED]>
: Sent: Monday, May 24, 2004 1:13 PM
: Subject: RE: [U2] Data truncation
:
:
: : How exactly are you capturing the output from curl?  Curl has an option
to
: : direct it's output to a file instead of stdout (--output filename).  You
: : might try sending the output to a flat file in a directory that's
defined
: as
: : a "dir" type file in UV.  Then you can simply open the file and read the
: : item in your program.
: :
: : Larry Hiscock
: : Western Computer Services
: :
: :
: : -Original Message-
: : From: [EMAIL PROTECTED]
: : [mailto:[EMAIL PROTECTED] Behalf Of Louis Windsor
: : Sent: Sunday, May 23, 2004 9:21 PM
: : To: [EMAIL PROTECTED]
: : Subject: [U2] Data truncation
: :
: :
: : I apologise if this question has been asked before but I tried searching
: in
: : the u2ug but could not find anything.
: :
: : I execute a DOS (cURL) function and get back binary data.  I expect
about
: : 832Kb but aparently the data gets truncated at hex 1A0A
: : which is converted to hex 0D0A.
: :
: : I am fairly sure this is being done by UniVerse (on WinXP) as the
execute
: : takes about the right time to download the 832Kb.
: :
: : Are there any OPTIONS directives or SYSTEM commands I can set to prevent
: the
: : truncation?
: :
: : TIA
: :
: : Louis
: : ---
: : u2-users mailing list
: : [EMAIL PROTECTED]
: : http://www.u2ug.org/listinfo/u2-users
: : ---
: : u2-users mailing list
: : [EMAIL PROTECTED]
: : http://www.u2ug.org/listinfo/u2-users
: :
: ---
: u2-users mailing list
: [EMAIL PROTECTED]
: http://www.u2ug.org/listinfo/u2-users
: ---
: u2-users mailing list
: [EMAIL PROTECTED]
: http://www.u2ug.org/listinfo/u2-users
:
---
u2-users mailing list
[EMAIL PROTECTED]
http://www.u2ug.org/listinfo/u2-users


Re: [U2] Data truncation

2004-05-23 Thread Louis Windsor
I am EXECUTE ... CAPTURING VARIABLE.

I have done this heaps of times with text and it works beautifully.

I tried lots of different ways to make cURL output to a file and always
failed.

Even the straightforward curl -s URL -o 

I even posted a question on the cURL website sometime ago but didn't
get a reasonable response.  I suspect they are a little intolerant of
newbie's or
unusual environments (UniVerse).

Louis

- Original Message - 
From: "Larry Hiscock" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 24, 2004 1:13 PM
Subject: RE: [U2] Data truncation


: How exactly are you capturing the output from curl?  Curl has an option to
: direct it's output to a file instead of stdout (--output filename).  You
: might try sending the output to a flat file in a directory that's defined
as
: a "dir" type file in UV.  Then you can simply open the file and read the
: item in your program.
:
: Larry Hiscock
: Western Computer Services
:
:
: -Original Message-
: From: [EMAIL PROTECTED]
: [mailto:[EMAIL PROTECTED] Behalf Of Louis Windsor
: Sent: Sunday, May 23, 2004 9:21 PM
: To: [EMAIL PROTECTED]
: Subject: [U2] Data truncation
:
:
: I apologise if this question has been asked before but I tried searching
in
: the u2ug but could not find anything.
:
: I execute a DOS (cURL) function and get back binary data.  I expect about
: 832Kb but aparently the data gets truncated at hex 1A0A
: which is converted to hex 0D0A.
:
: I am fairly sure this is being done by UniVerse (on WinXP) as the execute
: takes about the right time to download the 832Kb.
:
: Are there any OPTIONS directives or SYSTEM commands I can set to prevent
the
: truncation?
:
: TIA
:
: Louis
: ---
: u2-users mailing list
: [EMAIL PROTECTED]
: http://www.u2ug.org/listinfo/u2-users
: ---
: u2-users mailing list
: [EMAIL PROTECTED]
: http://www.u2ug.org/listinfo/u2-users
:
---
u2-users mailing list
[EMAIL PROTECTED]
http://www.u2ug.org/listinfo/u2-users


Re: [U2] Data truncation

2004-05-23 Thread Louis Windsor
Sent: Monday, May 24, 2004 12:53 PM
Subject: Re: [U2] Data truncation


: Hi Louis,
:
: >Are there any OPTIONS directives or SYSTEM commands I can set to prevent
: >the truncation?
:
: Have you tried:
:
: ASSIGN 1 TO SYSTEM(1017)
:
: This disables character conversion during reads/writes.
:
: How long is the data that is returned? I seem to recall coming across a 2k
: limit on data passed to/from (I can't remember which) an execute on UV 9.4
: ... but that was a while back and I could be remembering incorrectly.


Hi Craig,

Tried the ASSIGN and it didn't work - still truncated.

The data returned is exactly 1741 bytes.

WinXP UniVerse PE in case it matters.

Louis
---
u2-users mailing list
[EMAIL PROTECTED]
http://www.u2ug.org/listinfo/u2-users


[U2] Data truncation

2004-05-23 Thread Louis Windsor
I apologise if this question has been asked before but I tried searching in
the u2ug but could not find anything.

I execute a DOS (cURL) function and get back binary data.  I expect about
832Kb but aparently the data gets truncated at hex 1A0A
which is converted to hex 0D0A.

I am fairly sure this is being done by UniVerse (on WinXP) as the execute
takes about the right time to download the 832Kb.

Are there any OPTIONS directives or SYSTEM commands I can set to prevent the
truncation?

TIA

Louis
---
u2-users mailing list
[EMAIL PROTECTED]
http://www.u2ug.org/listinfo/u2-users