Re: [U2] WORKING WITH PROMPTS

2010-05-13 Thread Brian Leach
Jim,

You don't say, so I'm going to assume UniVerse here.

Yes, there are two ways you can do this in BASIC.

EXECUTE creates a new workspace, so you need to either change to using
PERFORM (which doesn't) or pass the prompt answers into that workspace. Here
are the two syntaxes.

Given the following test program:

PROGRAM testWithPrompts
  Crt 'Enter something : ':
  Input Something
  Crt 'And something else : ':
  Input SomethingElse
  Crt 'You entered ':Something: ' ' : SomethingElse
  Crt That's All Folks
STOP

1. Using DATA with Perform:

DATA Hello
DATA World
PERFORM testWithPrompts
STOP

2. Redirecting input to the new workspace:

Prompts = 'Hello' : @FM :'World'
Execute 'testWithPrompts', IN.  Prompts
STOP

Result:

RUN test.bp testPrompts
Enter something : And something else : You entered Hello World
That's All Folks


Brian

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of James Patrick
Volkman
Sent: 13 May 2010 6:13 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] WORKING WITH PROMPTS

I'd like to start off by saying I'm not a programmer. I'm trying to automate
the running of a terminal program using the EXECUTE command in BASIC. When
the program initiates a prompt comes up. I want to gain control of the
prompt and send keys to the terminal.

Is there a means in BASIC to gain control of the Prompt the way you would
using WinActivate?

I use a scripting language that allows you to send keys to the terminal
using TERMKEY. Is there a way to do this in BASIC? I don't want to use
Sendkeys because of the risk involved.

This doesn't work.

DATA Y
DATA N
EXECUTE PROGRAM




 Jim Volkman
San Rafael, CA
http://www.linkedin.com/in/jamesvolkman



  
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.819 / Virus Database: 271.1.1/2868 - Release Date: 05/11/10
19:40:00

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


[U2] [UD] Running out of LCTs

2010-05-13 Thread Edward Brown
Hello all.

 

I'm running a batch job which after a number of iterations fails with a
'no more LCTs' error.

 

I'm able to track the memory usage with sms -L process number and I can
see the number in the Memory Info section moving slowly up from 2 or 3
up to 31 as the batch job runs.

 

I know I could increase the number of slots available but I'd rather
understand how I can change the batch routine to stop it using all these
lcts in the first place.

 

Each iteration calls through to a set of (large) routines that do file
opens, reads, writes and a bunch of business logic - nothing really
outside of what generic 'pick' code would do though. It's not
accumulating the results of each iteration in memory (at least not in a
significant way) - any output is written to disk.

 

So can anyone suggest what, specifically, causes LCTs to be used up? Are
there any tools I can use to tell what's in them? (My current theory is
file opens that are not balanced by a close - but we have loads of other
batch routines that process many thousands of records without any
problems and are generally careless about opening files each time round
the loop...

 

Thanks

 

Ed

 

Edward Brown

Senior Analyst

Civica UK Limited

 

Tel: 01246 267918

E-mail: edward.br...@civica.co.uk mailto:david.car...@civica.co.uk 

Website: www.civica.co.uk http://www.civica.co.uk/ 

 


---
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] [UD] Running out of LCTs

2010-05-13 Thread Wally Terhune
'no more lcts' means udtconfig NUSERS is too small to handle all of the udt 
processes you want to spawn concurrently on a system. Default is 25%  license 
- but may be insufficient if you run a lot of phantoms.

Based on your sms -L review, it sounds more like you are getting 'no more 
entries in MI table' error.
If that is the case:
1) increase SHM_LMINENTS (max is 255) and/or increase SHM_GPAGESZ (assuming the 
entries in the MI table are for global pages - vs self-created segments).
2) You may also need to implement an occasional GARBAGECOLLECT in your app to 
defrag application memory use (storage for UniBasic variable contents).

More detailed discussions would be best handled by opening a support case with 
the U2 UK support staff (based on your email address...). Would need to see 
your udtconfig settings, specific output of sms -L, etc.
Regards,



Wally Terhune
U2 Support Architect
Rocket Software
4700 S. Syracuse Street, Suite 400 **Denver, CO 80237 **USA
Tel: +1.720.475.8055
Email: wterh...@rs.com
Web: www.rocketsoftware.com/u2


-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Edward Brown
Sent: Thursday, May 13, 2010 7:55 AM
To: U2 Users List
Subject: [U2] [UD] Running out of LCTs

Hello all.

 

I'm running a batch job which after a number of iterations fails with a
'no more LCTs' error.

 

I'm able to track the memory usage with sms -L process number and I can
see the number in the Memory Info section moving slowly up from 2 or 3
up to 31 as the batch job runs.

 

I know I could increase the number of slots available but I'd rather
understand how I can change the batch routine to stop it using all these
lcts in the first place.

 

Each iteration calls through to a set of (large) routines that do file
opens, reads, writes and a bunch of business logic - nothing really
outside of what generic 'pick' code would do though. It's not
accumulating the results of each iteration in memory (at least not in a
significant way) - any output is written to disk.

 

So can anyone suggest what, specifically, causes LCTs to be used up? Are
there any tools I can use to tell what's in them? (My current theory is
file opens that are not balanced by a close - but we have loads of other
batch routines that process many thousands of records without any
problems and are generally careless about opening files each time round
the loop...

 

Thanks

 

Ed

 

Edward Brown

Senior Analyst

Civica UK Limited

 

Tel: 01246 267918

E-mail: edward.br...@civica.co.uk mailto:david.car...@civica.co.uk 

Website: www.civica.co.uk http://www.civica.co.uk/ 

 


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


Re: [U2] [UD] Running out of LCTs

2010-05-13 Thread Edward Brown
Interesting. I've added GARBAGECOLLECT as advised and memory usage seems
stable now.

fwiw, this is on a machine with just two sessions (out of 3) active, no
phantoms or other connections. All settings are as default for a ud
7.1.2 install - at least, I've not changed them since installing. The
LCT message popped up a couple of times when the batch job died although
most times there was no message at all. (At least I think it was the lct
message, unfortunately don't have enough back pages to prove it either
way).

Ed

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wally Terhune
Sent: 13 May 2010 15:08
To: U2 Users List
Subject: Re: [U2] [UD] Running out of LCTs

'no more lcts' means udtconfig NUSERS is too small to handle all of the
udt processes you want to spawn concurrently on a system. Default is 25%
 license - but may be insufficient if you run a lot of phantoms.

Based on your sms -L review, it sounds more like you are getting 'no
more entries in MI table' error.
If that is the case:
1) increase SHM_LMINENTS (max is 255) and/or increase SHM_GPAGESZ
(assuming the entries in the MI table are for global pages - vs
self-created segments).
2) You may also need to implement an occasional GARBAGECOLLECT in your
app to defrag application memory use (storage for UniBasic variable
contents).

More detailed discussions would be best handled by opening a support
case with the U2 UK support staff (based on your email address...).
Would need to see your udtconfig settings, specific output of sms -L,
etc.
Regards,



Wally Terhune
U2 Support Architect
Rocket Software
4700 S. Syracuse Street, Suite 400 **Denver, CO 80237 **USA
Tel: +1.720.475.8055
Email: wterh...@rs.com
Web: www.rocketsoftware.com/u2


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Edward Brown
Sent: Thursday, May 13, 2010 7:55 AM
To: U2 Users List
Subject: [U2] [UD] Running out of LCTs

Hello all.

 

I'm running a batch job which after a number of iterations fails with a
'no more LCTs' error.

 

I'm able to track the memory usage with sms -L process number and I can
see the number in the Memory Info section moving slowly up from 2 or 3
up to 31 as the batch job runs.

 

I know I could increase the number of slots available but I'd rather
understand how I can change the batch routine to stop it using all these
lcts in the first place.

 

Each iteration calls through to a set of (large) routines that do file
opens, reads, writes and a bunch of business logic - nothing really
outside of what generic 'pick' code would do though. It's not
accumulating the results of each iteration in memory (at least not in a
significant way) - any output is written to disk.

 

So can anyone suggest what, specifically, causes LCTs to be used up? Are
there any tools I can use to tell what's in them? (My current theory is
file opens that are not balanced by a close - but we have loads of other
batch routines that process many thousands of records without any
problems and are generally careless about opening files each time round
the loop...

 

Thanks

 

Ed

 

Edward Brown

Senior Analyst

Civica UK Limited

 

Tel: 01246 267918

E-mail: edward.br...@civica.co.uk mailto:david.car...@civica.co.uk 

Website: www.civica.co.uk http://www.civica.co.uk/ 

 



---
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
___
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

[U2] fnuxi problem

2010-05-13 Thread Martin Phillips

Hi all,

I am on a UniVerse client site trying to move an application with a vast 
number of dynamic files, some indexed, from UV 10.1.18 on a Sun Solaris box 
to UV 10.3.6 on a Red Hat Linux Intel box.


The data files were moved with tar and byte order conversion was done using
  find . -type f -exec fnuxi {} \;

This appeared to work but, on testing the application today, it now seems 
that it skipped quite a few files along the way. Given that fnuxi is 
supposed to ignore files that don't need conversion, I simply ran the 
process again. It hung after converting a number of files, looping at 100% 
cp.


In an attempt to make this restartable, I created a shell script with each 
file as a separate fnuxi command. Again, this works for a while and then 
hangs. At each hang, I note the failing file, remove everything down to that 
point from the script and try again. The hangs are so often that this has 
become unworkable (there are about 400,000 files in the list).


Repeating the fnuxi for a failing file sometimes fails again and sometimes 
works ok. I have also seen it fail with a segmentation fault.


Some of the hangs are on the data files, some are on indices. I have even 
used filepeek to walk through a failing file looking for ideas about why it 
hangs.


So, has anyone experienced the same problem and, far more importantly, has 
anyone got a fix or an alternative suggestion of how to move this system?


Thanks.


Martin Phillips
Ladybridge Systems Ltd
17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB
+44-(0)1604-709200 


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


[U2] XML format question

2010-05-13 Thread George Gallen
I'm importing some XML, and a question came up with the following: I'm writing 
a small xml extraction program
   to setup a dynamic array, what is the difference between putting a field 
inside the label vs putting the field
   between the tags of the label? Aren't they both a subset of the label? I 
always thought that if the field was
   a single value field, it would be quoted and inside the label, but if it 
could be a multivaled field, it would go
   between the field tags, with it's own field/tags.

Result precision=addressLatitude39.931085/Latitude
 Longitude-77.387943/LongitudeAddress1001 N   Some Rd/Address
 
CitySomewhere/CityStatePA/StateZip15063-1404/ZipCountryUS/Country
/Result

Could this have formatted just as well as:

Resultprecisionaddress/precisionLatitude39.931085/Latitude
Longitude-77.387943/LongitudeAddress1001 N  Some Rd/Address
CitySomewhere/CityStatePA/StateZip19063-1404/ZipCountryUS/Country
/Result

or

Result precision=address Latitude=39.931085 Longitude=-77.387943
  Address=1001 N  Some Rd City=Somewhere State=PA  Zip=19063-1404
 Country=US/Result


George Gallen
Senior Programmer/Analyst
Accounting/Data Division, EDI Administrator
ggal...@wyanokegroup.com
ph:856.848.9005 Ext 220
The Wyanoke Group
http://www.wyanokegroup.com



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


Re: [U2] XML format question

2010-05-13 Thread Norman Bauer
George, either way will work. The by product of making xml attribute centric
(fields inside the label) is that it produces smaller files (about half the
size of element centric). If your producing small files that may be read by
an admin, then go with element centric as it is easier to read. Otherwise
attribute centric is much better for storage and transfer.

Norm

On Thu, May 13, 2010 at 11:06 AM, George Gallen ggal...@wyanokegroup.comwrote:

 I'm importing some XML, and a question came up with the following: I'm
 writing a small xml extraction program
   to setup a dynamic array, what is the difference between putting a field
 inside the label vs putting the field
   between the tags of the label? Aren't they both a subset of the label? I
 always thought that if the field was
   a single value field, it would be quoted and inside the label, but if it
 could be a multivaled field, it would go
   between the field tags, with it's own field/tags.

 Result precision=addressLatitude39.931085/Latitude
  Longitude-77.387943/LongitudeAddress1001 N   Some Rd/Address

  
 CitySomewhere/CityStatePA/StateZip15063-1404/ZipCountryUS/Country
 /Result

 Could this have formatted just as well as:

 Resultprecisionaddress/precisionLatitude39.931085/Latitude
 Longitude-77.387943/LongitudeAddress1001 N  Some Rd/Address

 CitySomewhere/CityStatePA/StateZip19063-1404/ZipCountryUS/Country
 /Result

 or

 Result precision=address Latitude=39.931085 Longitude=-77.387943
  Address=1001 N  Some Rd City=Somewhere State=PA  Zip=19063-1404
  Country=US/Result


 George Gallen
 Senior Programmer/Analyst
 Accounting/Data Division, EDI Administrator
 ggal...@wyanokegroup.com
 ph:856.848.9005 Ext 220
 The Wyanoke Group
 http://www.wyanokegroup.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] XML format question

2010-05-13 Thread George Gallen
I'm not producing the file, I'm reading the file and was trying to figure out 
why
   some of the field were inside the result label, and others were between the
   result /result tags. I was trying to setup the structure of the dynamic
   array I am putting the data into.

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Norman Bauer
 Sent: Thursday, May 13, 2010 11:15 AM
 To: U2 Users List
 Subject: Re: [U2] XML format question
 
 George, either way will work. The by product of making xml attribute
 centric
 (fields inside the label) is that it produces smaller files (about half
 the
 size of element centric). If your producing small files that may be
 read by
 an admin, then go with element centric as it is easier to read.
 Otherwise
 attribute centric is much better for storage and transfer.
 
 Norm
 
 On Thu, May 13, 2010 at 11:06 AM, George Gallen
 ggal...@wyanokegroup.comwrote:
 
  I'm importing some XML, and a question came up with the following:
 I'm
  writing a small xml extraction program
to setup a dynamic array, what is the difference between putting a
 field
  inside the label vs putting the field
between the tags of the label? Aren't they both a subset of the
 label? I
  always thought that if the field was
a single value field, it would be quoted and inside the label, but
 if it
  could be a multivaled field, it would go
between the field tags, with it's own field/tags.
 
  Result precision=addressLatitude39.931085/Latitude
   Longitude-77.387943/LongitudeAddress1001 N   Some Rd/Address
 
   CitySomewhere/CityStatePA/StateZip15063-
 1404/ZipCountryUS/Country
  /Result
 
  Could this have formatted just as well as:
 
  Resultprecisionaddress/precisionLatitude39.931085/Latitude
  Longitude-77.387943/LongitudeAddress1001 N  Some Rd/Address
 
  CitySomewhere/CityStatePA/StateZip19063-
 1404/ZipCountryUS/Country
  /Result
 
  or
 
  Result precision=address Latitude=39.931085 Longitude=-
 77.387943
   Address=1001 N  Some Rd City=Somewhere State=PA  Zip=19063-
 1404
   Country=US/Result
 
 
  George Gallen
  Senior Programmer/Analyst
  Accounting/Data Division, EDI Administrator
  ggal...@wyanokegroup.com
  ph:856.848.9005 Ext 220
  The Wyanoke Group
  http://www.wyanokegroup.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
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] XML format question

2010-05-13 Thread Brian Leach
George

So to paraphrase, when do you use attributes to hold data and when do you
elements..

The problem is, there is no clear answer to this, and everyone who designs
XML schema has to grapple with this question. The only simple answer is that
if a value could legitimately have an attribute associated with it to
qualify it, it should be an element. So in your example, the precision
attribute is qualifying the type/content of the Latitude element. But that
is really just a design and not a technical choice.

The real answer is more pragmatic - it generally depends on what the
consumer of that data wants. In parsing terms, attributes and elements are
not the same so if the contract calls for an element, use an element; and if
it calls for an attribute, use an attribute.

It's a question I've asked lots of times and never really had a solid or
consistent answer.

Brian

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
Sent: 13 May 2010 4:06 PM
To: U2 Users List
Subject: [U2] XML format question

I'm importing some XML, and a question came up with the following: I'm
writing a small xml extraction program
   to setup a dynamic array, what is the difference between putting a field
inside the label vs putting the field
   between the tags of the label? Aren't they both a subset of the label? I
always thought that if the field was
   a single value field, it would be quoted and inside the label, but if it
could be a multivaled field, it would go
   between the field tags, with it's own field/tags.

Result precision=addressLatitude39.931085/Latitude
 Longitude-77.387943/LongitudeAddress1001 N   Some Rd/Address
 
CitySomewhere/CityStatePA/StateZip15063-1404/ZipCountryUS/Cou
ntry
/Result

Could this have formatted just as well as:

Resultprecisionaddress/precisionLatitude39.931085/Latitude
Longitude-77.387943/LongitudeAddress1001 N  Some Rd/Address
CitySomewhere/CityStatePA/StateZip19063-1404/ZipCountryUS/Cou
ntry
/Result

or

Result precision=address Latitude=39.931085 Longitude=-77.387943
  Address=1001 N  Some Rd City=Somewhere State=PA  Zip=19063-1404
 Country=US/Result


George Gallen
Senior Programmer/Analyst
Accounting/Data Division, EDI Administrator
ggal...@wyanokegroup.com
ph:856.848.9005 Ext 220
The Wyanoke Group
http://www.wyanokegroup.com



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.819 / Virus Database: 271.1.1/2870 - Release Date: 05/12/10
19:26:00

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


Re: [U2] XML format question

2010-05-13 Thread Symeon Breen
Ahh the old attribute/element discussion - much to be said on this in
various quarters, you may want to google on xml elements or attributes to
gain some insight.

If space is of concern then attributes take less room, but then again if
space is of concern don't do xml, do json/csv/edi etc

Personally i do as much as poss in elements, and keep the attribute for
simple standard things like id, date etc. It then means you can place things
like cdata into all your fields and so limits you less in some regard

Rgds
Symeon.



-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
Sent: 13 May 2010 16:06
To: U2 Users List
Subject: [U2] XML format question

I'm importing some XML, and a question came up with the following: I'm
writing a small xml extraction program
   to setup a dynamic array, what is the difference between putting a field
inside the label vs putting the field
   between the tags of the label? Aren't they both a subset of the label? I
always thought that if the field was
   a single value field, it would be quoted and inside the label, but if it
could be a multivaled field, it would go
   between the field tags, with it's own field/tags.

Result precision=addressLatitude39.931085/Latitude
 Longitude-77.387943/LongitudeAddress1001 N   Some Rd/Address
 
CitySomewhere/CityStatePA/StateZip15063-1404/ZipCountryUS/Cou
ntry
/Result

Could this have formatted just as well as:

Resultprecisionaddress/precisionLatitude39.931085/Latitude
Longitude-77.387943/LongitudeAddress1001 N  Some Rd/Address
CitySomewhere/CityStatePA/StateZip19063-1404/ZipCountryUS/Cou
ntry
/Result

or

Result precision=address Latitude=39.931085 Longitude=-77.387943
  Address=1001 N  Some Rd City=Somewhere State=PA  Zip=19063-1404
 Country=US/Result


George Gallen
Senior Programmer/Analyst
Accounting/Data Division, EDI Administrator
ggal...@wyanokegroup.com
ph:856.848.9005 Ext 220
The Wyanoke Group
http://www.wyanokegroup.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] XML format question

2010-05-13 Thread Norman Bauer
If space is of concern then attributes take less room, but then again if
space is of concern don't do xml, do json/csv/edi etc

excellent advice.

norm

On Thu, May 13, 2010 at 11:25 AM, Symeon Breen syme...@gmail.com wrote:

 Ahh the old attribute/element discussion - much to be said on this in
 various quarters, you may want to google on xml elements or attributes to
 gain some insight.

 If space is of concern then attributes take less room, but then again if
 space is of concern don't do xml, do json/csv/edi etc

 Personally i do as much as poss in elements, and keep the attribute for
 simple standard things like id, date etc. It then means you can place
 things
 like cdata into all your fields and so limits you less in some regard

 Rgds
 Symeon.



 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
 Sent: 13 May 2010 16:06
 To: U2 Users List
 Subject: [U2] XML format question

 I'm importing some XML, and a question came up with the following: I'm
 writing a small xml extraction program
   to setup a dynamic array, what is the difference between putting a field
 inside the label vs putting the field
   between the tags of the label? Aren't they both a subset of the label? I
 always thought that if the field was
   a single value field, it would be quoted and inside the label, but if it
 could be a multivaled field, it would go
   between the field tags, with it's own field/tags.

 Result precision=addressLatitude39.931085/Latitude
  Longitude-77.387943/LongitudeAddress1001 N   Some Rd/Address


 CitySomewhere/CityStatePA/StateZip15063-1404/ZipCountryUS/Cou
 ntry
 /Result

 Could this have formatted just as well as:

 Resultprecisionaddress/precisionLatitude39.931085/Latitude
 Longitude-77.387943/LongitudeAddress1001 N  Some Rd/Address

 CitySomewhere/CityStatePA/StateZip19063-1404/ZipCountryUS/Cou
 ntry
 /Result

 or

 Result precision=address Latitude=39.931085 Longitude=-77.387943
  Address=1001 N  Some Rd City=Somewhere State=PA  Zip=19063-1404
  Country=US/Result


 George Gallen
 Senior Programmer/Analyst
 Accounting/Data Division, EDI Administrator
 ggal...@wyanokegroup.com
 ph:856.848.9005 Ext 220
 The Wyanoke Group
 http://www.wyanokegroup.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

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


Re: [U2] fnuxi problem

2010-05-13 Thread Dan Goble
In the past when I had done fnuxi I always used the following syntax:

find . -name * -exec fnuxi {} \;


This takes and tries to fnuxi all files in the current directory and below.   
If the file is not a U2 file it will not harm anything.

-Dan


-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Martin Phillips
Sent: Thursday, May 13, 2010 11:23 AM
To: U2 Users List
Subject: Re: [U2] fnuxi problem

Hi all,

A follow up to my own query.

This site uses entirely dynamic files. The recommended way to do fnuxi 
recursively over a whole application is to use find as in my previous email. 
This will end up doing the fnuxi against the DATA.30 and OVER.30 files. The 
OVER.30 file reports that it is not a UV file and is skipped.

If I do the fnuxi against the directory that represents the dynamic file, it 
appears to work. If I do it against the DATA.30 file it sometimes hangs.

So, it now sounds as though I need to construct a find that will produce all 
the files that don't end .30 (so I get the dictionaries and indices) and a 
second pass to do all directories.

Once again, anyone had experience of this?


Martin Phillips
Ladybridge Systems Ltd
17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB
+44-(0)1604-709200 

___
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 format question

2010-05-13 Thread George Gallen
since space concerns do not fall into place for my part, the xml has already 
been done, I
  had no control over that. I'm just trying to interpret the data correctly.

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Norman Bauer
 Sent: Thursday, May 13, 2010 11:27 AM
 To: U2 Users List
 Subject: Re: [U2] XML format question
 
 If space is of concern then attributes take less room, but then again
 if
 space is of concern don't do xml, do json/csv/edi etc
 
 excellent advice.
 
 norm
 
 On Thu, May 13, 2010 at 11:25 AM, Symeon Breen syme...@gmail.com
 wrote:
 
  Ahh the old attribute/element discussion - much to be said on this in
  various quarters, you may want to google on xml elements or
 attributes to
  gain some insight.
 
  If space is of concern then attributes take less room, but then again
 if
  space is of concern don't do xml, do json/csv/edi etc
 
  Personally i do as much as poss in elements, and keep the attribute
 for
  simple standard things like id, date etc. It then means you can place
  things
  like cdata into all your fields and so limits you less in some regard
 
  Rgds
  Symeon.
 
 
 
  -Original Message-
  From: u2-users-boun...@listserver.u2ug.org
  [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George
 Gallen
  Sent: 13 May 2010 16:06
  To: U2 Users List
  Subject: [U2] XML format question
 
  I'm importing some XML, and a question came up with the following:
 I'm
  writing a small xml extraction program
to setup a dynamic array, what is the difference between putting a
 field
  inside the label vs putting the field
between the tags of the label? Aren't they both a subset of the
 label? I
  always thought that if the field was
a single value field, it would be quoted and inside the label, but
 if it
  could be a multivaled field, it would go
between the field tags, with it's own field/tags.
 
  Result precision=addressLatitude39.931085/Latitude
   Longitude-77.387943/LongitudeAddress1001 N   Some Rd/Address
 
 
  CitySomewhere/CityStatePA/StateZip15063-
 1404/ZipCountryUS/Cou
  ntry
  /Result
 
  Could this have formatted just as well as:
 
  Resultprecisionaddress/precisionLatitude39.931085/Latitude
  Longitude-77.387943/LongitudeAddress1001 N  Some Rd/Address
 
  CitySomewhere/CityStatePA/StateZip19063-
 1404/ZipCountryUS/Cou
  ntry
  /Result
 
  or
 
  Result precision=address Latitude=39.931085 Longitude=-
 77.387943
   Address=1001 N  Some Rd City=Somewhere State=PA  Zip=19063-
 1404
   Country=US/Result
 
 
  George Gallen
  Senior Programmer/Analyst
  Accounting/Data Division, EDI Administrator
  ggal...@wyanokegroup.com
  ph:856.848.9005 Ext 220
  The Wyanoke Group
  http://www.wyanokegroup.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
 
 ___
 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 format question

2010-05-13 Thread Symeon Breen
It makes no difference for your extraction, there are no hard/fast rules as
to why they have done it that way, if it is an attribute it will only be
single valued, whereas if it is an element, it may be multivalued. A dtd or
xsd will define if it is a multiple occurring element.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
Sent: 13 May 2010 16:22
To: U2 Users List
Subject: Re: [U2] XML format question

I'm not producing the file, I'm reading the file and was trying to figure
out why
   some of the field were inside the result label, and others were between
the
   result /result tags. I was trying to setup the structure of the
dynamic
   array I am putting the data into.

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Norman Bauer
 Sent: Thursday, May 13, 2010 11:15 AM
 To: U2 Users List
 Subject: Re: [U2] XML format question
 
 George, either way will work. The by product of making xml attribute
 centric
 (fields inside the label) is that it produces smaller files (about half
 the
 size of element centric). If your producing small files that may be
 read by
 an admin, then go with element centric as it is easier to read.
 Otherwise
 attribute centric is much better for storage and transfer.
 
 Norm
 
 On Thu, May 13, 2010 at 11:06 AM, George Gallen
 ggal...@wyanokegroup.comwrote:
 
  I'm importing some XML, and a question came up with the following:
 I'm
  writing a small xml extraction program
to setup a dynamic array, what is the difference between putting a
 field
  inside the label vs putting the field
between the tags of the label? Aren't they both a subset of the
 label? I
  always thought that if the field was
a single value field, it would be quoted and inside the label, but
 if it
  could be a multivaled field, it would go
between the field tags, with it's own field/tags.
 
  Result precision=addressLatitude39.931085/Latitude
   Longitude-77.387943/LongitudeAddress1001 N   Some Rd/Address
 
   CitySomewhere/CityStatePA/StateZip15063-
 1404/ZipCountryUS/Country
  /Result
 
  Could this have formatted just as well as:
 
  Resultprecisionaddress/precisionLatitude39.931085/Latitude
  Longitude-77.387943/LongitudeAddress1001 N  Some Rd/Address
 
  CitySomewhere/CityStatePA/StateZip19063-
 1404/ZipCountryUS/Country
  /Result
 
  or
 
  Result precision=address Latitude=39.931085 Longitude=-
 77.387943
   Address=1001 N  Some Rd City=Somewhere State=PA  Zip=19063-
 1404
   Country=US/Result
 
 
  George Gallen
  Senior Programmer/Analyst
  Accounting/Data Division, EDI Administrator
  ggal...@wyanokegroup.com
  ph:856.848.9005 Ext 220
  The Wyanoke Group
  http://www.wyanokegroup.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
___
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 format question

2010-05-13 Thread George Gallen
Looking at the schema didn't shed any extra light either!

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of George Gallen
 Sent: Thursday, May 13, 2010 11:29 AM
 To: U2 Users List
 Subject: Re: [U2] XML format question
 
 since space concerns do not fall into place for my part, the xml has
 already been done, I
   had no control over that. I'm just trying to interpret the data
 correctly.
 
  -Original Message-
  From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
  boun...@listserver.u2ug.org] On Behalf Of Norman Bauer
  Sent: Thursday, May 13, 2010 11:27 AM
  To: U2 Users List
  Subject: Re: [U2] XML format question
 
  If space is of concern then attributes take less room, but then
 again
  if
  space is of concern don't do xml, do json/csv/edi etc
 
  excellent advice.
 
  norm
 
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] fnuxi problem

2010-05-13 Thread Martin Phillips

Hi Dan,

Sadly, this doesn't help as it will try to process the DATA.30 files that 
cause the hang.


Thanks anyway.


Martin Phillips
Ladybridge Systems Ltd
17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB
+44-(0)1604-709200

- Original Message - 
From: Dan Goble dgo...@interlinebrands.com

To: U2 Users List u2-users@listserver.u2ug.org
Sent: Thursday, May 13, 2010 4:28 PM
Subject: Re: [U2] fnuxi problem



In the past when I had done fnuxi I always used the following syntax:

find . -name * -exec fnuxi {} \;


This takes and tries to fnuxi all files in the current directory and 
below.   If the file is not a U2 file it will not harm anything.


-Dan


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


Re: [U2] XML format question

2010-05-13 Thread Glen Batchelor

   I like to think of elements are as file folders. You can create a
specific file folder for every tiny piece of data and make locating those
pieces easy in a DOM based on node name. SAX, on the other hand, fires off
events for every node and attribute it encounters at all levels. So, your
format choice is a combination of considerations. The parser is one major
thing if you're dealing with raw parsing, but if you are going to need
validation then which design will be easier to write/manage an xsd for? If
you aren't doing validation and the parsing method is irrelevant then the
main thing to consider is readability.
  As Norman said earlier, an attribute-centric file will be smaller. Keep in
mind, though, that attributes define properties of an element/node. They are
not root nodes and therefore can not have child nodes. Therefore, no
relative multi-value/nested data can be stored. The element, which said
attribute is in, can have child nodes but those nodes inherit all of the
parent's attributes at once. IMO, common data should be included as
attributes to a root element or as elements within a container that is
defined as a single, large entity by the container. Hopefully that makes
sense?
 

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 Brian Leach
 Sent: Thursday, May 13, 2010 11:24 AM
 To: 'U2 Users List'
 Subject: Re: [U2] XML format question
 
 George
 
 So to paraphrase, when do you use attributes to hold data and when do you
 elements..
 
 The problem is, there is no clear answer to this, and everyone who designs
 XML schema has to grapple with this question. The only simple answer is
 that
 if a value could legitimately have an attribute associated with it to
 qualify it, it should be an element. So in your example, the precision
 attribute is qualifying the type/content of the Latitude element. But that
 is really just a design and not a technical choice.
 
 The real answer is more pragmatic - it generally depends on what the
 consumer of that data wants. In parsing terms, attributes and elements are
 not the same so if the contract calls for an element, use an element; and
 if
 it calls for an attribute, use an attribute.
 
 It's a question I've asked lots of times and never really had a solid or
 consistent answer.
 
 Brian
 
 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
 Sent: 13 May 2010 4:06 PM
 To: U2 Users List
 Subject: [U2] XML format question
 
 I'm importing some XML, and a question came up with the following: I'm
 writing a small xml extraction program
to setup a dynamic array, what is the difference between putting a
 field
 inside the label vs putting the field
between the tags of the label? Aren't they both a subset of the label?
 I
 always thought that if the field was
a single value field, it would be quoted and inside the label, but if
 it
 could be a multivaled field, it would go
between the field tags, with it's own field/tags.
 
 Result precision=addressLatitude39.931085/Latitude
  Longitude-77.387943/LongitudeAddress1001 N   Some Rd/Address
 
 CitySomewhere/CityStatePA/StateZip15063-
 1404/ZipCountryUS/Cou
 ntry
 /Result
 
 Could this have formatted just as well as:
 
 Resultprecisionaddress/precisionLatitude39.931085/Latitude
 Longitude-77.387943/LongitudeAddress1001 N  Some Rd/Address
 CitySomewhere/CityStatePA/StateZip19063-
 1404/ZipCountryUS/Cou
 ntry
 /Result
 
 or
 
 Result precision=address Latitude=39.931085 Longitude=-77.387943
   Address=1001 N  Some Rd City=Somewhere State=PA  Zip=19063-1404
  Country=US/Result
 
 
 George Gallen
 Senior Programmer/Analyst
 Accounting/Data Division, EDI Administrator
 ggal...@wyanokegroup.com
 ph:856.848.9005 Ext 220
 The Wyanoke Group
 http://www.wyanokegroup.com
 
 
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 9.0.819 / Virus Database: 271.1.1/2870 - Release Date: 05/12/10
 19:26:00
 
 ___
 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] fnuxi problem

2010-05-13 Thread Brian Leach
Martin

The obvious choice would be uvbackup and uvrestore, but failing that you're
going to have to do some scripting.

How about:

Run a find for all the VOC files - that will get you all the account
directories. Redirect that to file. Edit it to remove all the /VOC so you're
left with the paths.

Edit the file (or cat it into a script). You want to run fnuxi against each
of those top level account directories for all files and directories
contained, but not recursively. 

From memory a for..done loop should that, something like:

for file in account_directory/*; do; fnuxi $file; done

Sorry it's been a while since I've had to do this: I use my own packaging
tools.

Brian

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Martin Phillips
Sent: 13 May 2010 3:48 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] fnuxi problem

Hi all,

I am on a UniVerse client site trying to move an application with a vast 
number of dynamic files, some indexed, from UV 10.1.18 on a Sun Solaris box 
to UV 10.3.6 on a Red Hat Linux Intel box.

The data files were moved with tar and byte order conversion was done using
   find . -type f -exec fnuxi {} \;

This appeared to work but, on testing the application today, it now seems 
that it skipped quite a few files along the way. Given that fnuxi is 
supposed to ignore files that don't need conversion, I simply ran the 
process again. It hung after converting a number of files, looping at 100% 
cp.

In an attempt to make this restartable, I created a shell script with each 
file as a separate fnuxi command. Again, this works for a while and then 
hangs. At each hang, I note the failing file, remove everything down to that

point from the script and try again. The hangs are so often that this has 
become unworkable (there are about 400,000 files in the list).

Repeating the fnuxi for a failing file sometimes fails again and sometimes 
works ok. I have also seen it fail with a segmentation fault.

Some of the hangs are on the data files, some are on indices. I have even 
used filepeek to walk through a failing file looking for ideas about why it 
hangs.

So, has anyone experienced the same problem and, far more importantly, has 
anyone got a fix or an alternative suggestion of how to move this system?

Thanks.


Martin Phillips
Ladybridge Systems Ltd
17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB
+44-(0)1604-709200 

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.819 / Virus Database: 271.1.1/2870 - Release Date: 05/12/10
19:26:00

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


Re: [U2] XML format question

2010-05-13 Thread Carl Dula
George:

If I understand your question, all you are trying to do is figure out how to 
get the value of the element attributes in an XML file you are receiving. If 
this is what you need to accomplish, the following is an example of a 
portion of an extract file that shows the format to do this.

For a normal element like
Money currency=USD285.72/Money
it would be
field_extraction field=DICTNAME1 path=Money/text()/

For an element with attributes like
 OrderRequestHeader orderDate=2010-04-13T09:35:27-0400 
orderID=EW244267 type=new
it would be
field_extraction field=DICTNAME2 path=OrderRequestHeader/@orderID/
field_extraction field=DICTNAME3 path=OrderRequestHeader/@orderDate/

Note the use of the @ symbol and the lack of /text() on the end of the line.

Hope that helps

--
Carl Dula   Voice: 973-227-8440 X111
Pulsar Systems, Inc.Fax: 973-227-8440
271 Route 46 West, Suite H209   email:c...@pulsarsystems.com
Fairfield, NJ 07004-2474http://www.pulsarsystems.com 


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


Re: [U2] fnuxi problem

2010-05-13 Thread John Hester
The following worked for me when we did a UV migration from unix to
linux about 7 years ago:

fnuxi *

I wrote a script that descended into the directory for each account and
executed the prior command at that level.  We have a mix of dynamic and
standard hashed files, and the command worked for both simultaneously.
It seems to be smart enough to look one level down in directories to
determine if they represent a dynamic file.

-John

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Martin
Phillips
Sent: Thursday, May 13, 2010 8:23 AM
To: U2 Users List
Subject: Re: [U2] fnuxi problem

Hi all,

A follow up to my own query.

This site uses entirely dynamic files. The recommended way to do fnuxi 
recursively over a whole application is to use find as in my previous
email. 
This will end up doing the fnuxi against the DATA.30 and OVER.30 files.
The 
OVER.30 file reports that it is not a UV file and is skipped.

If I do the fnuxi against the directory that represents the dynamic
file, it 
appears to work. If I do it against the DATA.30 file it sometimes hangs.

So, it now sounds as though I need to construct a find that will produce
all 
the files that don't end .30 (so I get the dictionaries and indices) and
a 
second pass to do all directories.

Once again, anyone had experience of this?


Martin Phillips
Ladybridge Systems Ltd
17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB
+44-(0)1604-709200 

___
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] fnuxi problem

2010-05-13 Thread Augusto Alonso
Hi.
What about doing it at UniVerse level?

You can get the list of files with SELECTFL, saving the list and execute a
FORMAT.CONV for each file.

Regards
--
Augusto


2010/5/13 John Hester jhes...@momtex.com

 The following worked for me when we did a UV migration from unix to
 linux about 7 years ago:

 fnuxi *

 I wrote a script that descended into the directory for each account and
 executed the prior command at that level.  We have a mix of dynamic and
 standard hashed files, and the command worked for both simultaneously.
 It seems to be smart enough to look one level down in directories to
 determine if they represent a dynamic file.

 -John

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org
 [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Martin
 Phillips
 Sent: Thursday, May 13, 2010 8:23 AM
 To: U2 Users List
 Subject: Re: [U2] fnuxi problem

 Hi all,

 A follow up to my own query.

 This site uses entirely dynamic files. The recommended way to do fnuxi
 recursively over a whole application is to use find as in my previous
 email.
 This will end up doing the fnuxi against the DATA.30 and OVER.30 files.
 The
 OVER.30 file reports that it is not a UV file and is skipped.

 If I do the fnuxi against the directory that represents the dynamic
 file, it
 appears to work. If I do it against the DATA.30 file it sometimes hangs.

 So, it now sounds as though I need to construct a find that will produce
 all
 the files that don't end .30 (so I get the dictionaries and indices) and
 a
 second pass to do all directories.

 Once again, anyone had experience of this?


 Martin Phillips
 Ladybridge Systems Ltd
 17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB
 +44-(0)1604-709200

 ___
 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] fnuxi problem

2010-05-13 Thread Anthony W. Youngman
In message 9ea3c4a038d14a2fa37a2ea3c801a...@lbs8, Martin Phillips 
martinphill...@ladybridge.com writes

Hi all,

A follow up to my own query.

This site uses entirely dynamic files. The recommended way to do fnuxi 
recursively over a whole application is to use find as in my previous 
email. This will end up doing the fnuxi against the DATA.30 and OVER.30 
files. The OVER.30 file reports that it is not a UV file and is skipped.


If I do the fnuxi against the directory that represents the dynamic 
file, it appears to work. If I do it against the DATA.30 file it 
sometimes hangs.


So, it now sounds as though I need to construct a find that will 
produce all the files that don't end .30 (so I get the dictionaries and 
indices) and a second pass to do all directories.


Once again, anyone had experience of this?

not being on my linux system I can't do a quick man, but has find got 
an option to say how deep to search? Off the top of my head I think it 
has. If you can say only search the current directory, and run it in 
the account directory, it sounds like that'll do exactly what you want.


That's assuming you're only converting one account. If you're converting 
multiple accounts, Brian's search for VOCs and process each in turn in 
a script sounds like the route you want.


Cheers,
Wol
--
Anthony W. Youngman pi...@thewolery.demon.co.uk
'Yings, yow graley yin! Suz ae rikt dheu,' said the blue man, taking the
thimble. 'What *is* he?' said Magrat. 'They're gnomes,' said Nanny. The man
lowered the thimble. 'Pictsies!' Carpe Jugulum, Terry Pratchett 1998
Visit the MaVerick web-site - http://www.maverick-dbms.org Open Source Pick
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Printing images

2010-05-13 Thread Bob Rasmussen
On Wed, 12 May 2010, Don Robinson wrote:

 Harold,
 
 If you or someone else can pay for it, Print Wizard will do the job plus 
 a lot more.

Given the amount of time someone might need to take to build one PCL file, 
Print Wizard will almost certainly save money. Entry price is $99 for 
Personal Edition, $300 for Server Edition. See web site for details.

Regards,
Bob Rasmussen,   President,   Rasmussen Software, Inc.

personal e-mail: r...@anzio.com
 company e-mail: r...@anzio.com
  voice: (US) 503-624-0360 (9:00-6:00 Pacific Time)
fax: (US) 503-624-0760
web: http://www.anzio.com
 street address: Rasmussen Software, Inc.
 10240 SW Nimbus, Suite L9
 Portland, OR  97223  USA___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] XML format question

2010-05-13 Thread Boydell, Stuart
XML, as suggested, is a flexible container but I think that the pundits suggest 
that you use elements for data and attributes for metadata which is used to 
refine or modify the default behaviour of an element. For example: Money 
currency=aud12.99/Money

Then if you needed to store or convert the currency in your application - you 
have the option to do so.

In your example the Result is described by the precision attribute as an 
address and the address data is contained in nested elements within the 
Result element. Pretty logical (though the precision nomenclature seems 
weird).

So, depending on how and where you want to use the result would determine how 
you convert it to a dynamic array. I'd probably just convert the XML into: a 
[U2]attribute for the precision and one each for the address elements. 
However, you could easily put the precision into one [U2]attribute and the 
address elements into another [U2]attribute as multi-values.

It really depends on how and where you want to use the result.

Stuart Boydell 

-Original Message-
since space concerns do not fall into place for my part, the xml has already 
been done, I
  had no control over that. I'm just trying to interpret the data correctly.

  Result precision=addressLatitude39.931085/Latitude
   Longitude-77.387943/LongitudeAddress1001 N   Some Rd/Address
 
 
  CitySomewhere/CityStatePA/StateZip15063-
 1404/ZipCountryUS/Cou
  ntry
  /Result
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users