Re: [U2] question(s)
Printer memory segment removed occurs when you attempt to attach to a printer shared memory segment that was formerly owned by a now logged-out process but insufficient time has gone by for it to be cleaned up. It's an alert, and may be safely ignored. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] question(s)
Hey all, I am back to re tooling my mind from jBASE to Universe (although one question is not vendor specific) 1. In universe how can I tell what type of pick file I am looking at (type 2,3,4,5,6, etc ) 2. I am getting a few (very few) PRINTER MEMORY SEGMENT REMOVED errors in root's emails but the few I am getting (roughly 3 a day) I cannot seem to figure out what's causing them. All our root cron jobs are either using uvcron or PHANTOM to start the universe program. 3. does anyone have a suggestion on RANDOMLY (or as random as possible) a way to SELECT a file? I am trying to get @ 500 RANDOM records from a file with 850,000 items. I have some ideas such as selecting the entire file and then every x records do some math operation and if even use this record but since I am a pup compared to some of you I have been doing pick forever vets out there I thought I would throw this out and see what comes back. The keys look like 51037517 51037516 15312939 51037518 15312936 51037519 51037512 51037513 51037515 14137791 51037514 51037510 Thanks everyone! dougc --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] question(s)
1. we use ANALYZE.FILE FILE.NAME .. it gives the scoop on anything not a directory and a little bit on dynamic files. 2. That's an indication of some type of memory leak or stack overflow I think. I'm pretty sure its an abnormal condition. You could probably duplicate it in a sub calling itself until it gets either too deep or too big maybe. The 'printer segment removed' I think is a symptom of the abnormal condition. 3. If you dont require specific key characteristics, you can use 'SAMPLED'. SELECT FILE.NAME SAMPLED 2000 , will take every 2000th record as they occur in the file I believe. john On 2/6/08, Doug Chanco [EMAIL PROTECTED] wrote: Hey all, I am back to re tooling my mind from jBASE to Universe (although one question is not vendor specific) 1. In universe how can I tell what type of pick file I am looking at (type 2,3,4,5,6, etc ) 2. I am getting a few (very few) PRINTER MEMORY SEGMENT REMOVED errors in root's emails but the few I am getting (roughly 3 a day) I cannot seem to figure out what's causing them. All our root cron jobs are either using uvcron or PHANTOM to start the universe program. 3. does anyone have a suggestion on RANDOMLY (or as random as possible) a way to SELECT a file? I am trying to get @ 500 RANDOM records from a file with 850,000 items. I have some ideas such as selecting the entire file and then every x records do some math operation and if even use this record but since I am a pup compared to some of you I have been doing pick forever vets out there I thought I would throw this out and see what comes back. The keys look like 51037517 51037516 15312939 51037518 15312936 51037519 51037512 51037513 51037515 14137791 51037514 51037510 Thanks everyone! dougc --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- john --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] question(s)
For number one, you could also open the file in BASIC and do a VAR=FILEINFO(FILE.VAR,#) where number is any number between 1 and about 15. File type is returned with a var of 4 in our system. On 2/6/08, john reid [EMAIL PROTECTED] wrote: 1. we use ANALYZE.FILE FILE.NAME .. it gives the scoop on anything not a directory and a little bit on dynamic files. 2. That's an indication of some type of memory leak or stack overflow I think. I'm pretty sure its an abnormal condition. You could probably duplicate it in a sub calling itself until it gets either too deep or too big maybe. The 'printer segment removed' I think is a symptom of the abnormal condition. 3. If you dont require specific key characteristics, you can use 'SAMPLED'. SELECT FILE.NAME SAMPLED 2000 , will take every 2000th record as they occur in the file I believe. john On 2/6/08, Doug Chanco [EMAIL PROTECTED] wrote: Hey all, I am back to re tooling my mind from jBASE to Universe (although one question is not vendor specific) 1. In universe how can I tell what type of pick file I am looking at (type 2,3,4,5,6, etc ) 2. I am getting a few (very few) PRINTER MEMORY SEGMENT REMOVED errors in root's emails but the few I am getting (roughly 3 a day) I cannot seem to figure out what's causing them. All our root cron jobs are either using uvcron or PHANTOM to start the universe program. 3. does anyone have a suggestion on RANDOMLY (or as random as possible) a way to SELECT a file? I am trying to get @ 500 RANDOM records from a file with 850,000 items. I have some ideas such as selecting the entire file and then every x records do some math operation and if even use this record but since I am a pup compared to some of you I have been doing pick forever vets out there I thought I would throw this out and see what comes back. The keys look like 51037517 51037516 15312939 51037518 15312936 51037519 51037512 51037513 51037515 14137791 51037514 51037510 Thanks everyone! dougc --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- john -- john --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] question(s)
1. Any of the UniVerse file utilities should tell you type; FILE.STAT, GROUP.STAT, HASH.HELP, etc. Or LISTFL has a TYPE column and is quick. 3. SELECT FILE SAMPLE 500 SAMPLED 1200 will select 500 records from the file, picking every 1200th record. Not truly random, but probably close enough depending on your purposes.\ HTH, Jeff Fitzgerald Fitzgerald Long, Inc. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Chanco Sent: Wednesday, February 06, 2008 7:28 AM To: u2-users@listserver.u2ug.org Subject: [U2] question(s) Hey all, I am back to re tooling my mind from jBASE to Universe (although one question is not vendor specific) 1. In universe how can I tell what type of pick file I am looking at (type 2,3,4,5,6, etc ) 2. I am getting a few (very few) PRINTER MEMORY SEGMENT REMOVED errors in root's emails but the few I am getting (roughly 3 a day) I cannot seem to figure out what's causing them. All our root cron jobs are either using uvcron or PHANTOM to start the universe program. 3. does anyone have a suggestion on RANDOMLY (or as random as possible) a way to SELECT a file? I am trying to get @ 500 RANDOM records from a file with 850,000 items. I have some ideas such as selecting the entire file and then every x records do some math operation and if even use this record but since I am a pup compared to some of you I have been doing pick forever vets out there I thought I would throw this out and see what comes back. The keys look like 51037517 51037516 15312939 51037518 15312936 51037519 51037512 51037513 51037515 14137791 51037514 51037510 Thanks everyone! dougc --- 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] question(s)
Doug 1.In universe how can I tell what type of pick file I am looking at (type 2,3,4,5,6, etc ) PROGRAM FILEINFO Get(Arg.) FileName Else Crt 'File : ':; Input FileName If FileName = '' Then STOP End Open FileName To FL Else Crt 'Cannot open ':FileName STOP End Status FStat From FL Else Crt 'Cannot stat ':FileName STOP End FileType = FStat21 FileMod = FStat22 FileSep = FStat23 FileSize = FStat6 Crt FileName, 'Type = ':FileType, 'Mod = ':FileMod, 'Sep = ':FileSep,'Size = ':FileSize STOP 3.does anyone have a suggestion on RANDOMLY (or as random as possible) a way to SELECT a file? I am trying to get @ 500 Are all the keys sequential? If so, a simple program to do a Randomize then assemble a list of random numbers between the min and max values of the key would be easiest. Just write that list to SAVEDLISTS and then GET.LIST it. Otherwise you can use SAMPLE or SAMPLED but that's not really randomized as such.. Brian --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] question(s)
The one problem with SAMPLE and SAMPLED is that, afaik, they are pseudo-random. Unless your file is volatile, you are likely to get approximately the same result set every time (or exactly the same result set, if your file hasn't changed). Cheers, Wol -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of john reid Sent: 06 February 2008 15:23 To: u2-users@listserver.u2ug.org Subject: Re: [U2] question(s) 1. we use ANALYZE.FILE FILE.NAME .. it gives the scoop on anything not a directory and a little bit on dynamic files. 2. That's an indication of some type of memory leak or stack overflow I think. I'm pretty sure its an abnormal condition. You could probably duplicate it in a sub calling itself until it gets either too deep or too big maybe. The 'printer segment removed' I think is a symptom of the abnormal condition. 3. If you dont require specific key characteristics, you can use 'SAMPLED'. SELECT FILE.NAME SAMPLED 2000 , will take every 2000th record as they occur in the file I believe. john On 2/6/08, Doug Chanco [EMAIL PROTECTED] wrote: Hey all, I am back to re tooling my mind from jBASE to Universe (although one question is not vendor specific) 1. In universe how can I tell what type of pick file I am looking at (type 2,3,4,5,6, etc ) 2. I am getting a few (very few) PRINTER MEMORY SEGMENT REMOVED errors in root's emails but the few I am getting (roughly 3 a day) I cannot seem to figure out what's causing them. All our root cron jobs are either using uvcron or PHANTOM to start the universe program. 3. does anyone have a suggestion on RANDOMLY (or as random as possible) a way to SELECT a file? I am trying to get @ 500 RANDOM records from a file with 850,000 items. I have some ideas such as selecting the entire file and then every x records do some math operation and if even use this record but since I am a pup compared to some of you I have been doing pick forever vets out there I thought I would throw this out and see what comes back. The keys look like 51037517 51037516 15312939 51037518 15312936 51037519 51037512 51037513 51037515 14137791 51037514 51037510 Thanks everyone! dougc --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- john --- 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] question(s)
quote who='Anthony Youngman' date='Wednesday 06 February 2008' The one problem with SAMPLE and SAMPLED is that, afaik, they are pseudo-random. Unless your file is volatile, you are likely to get approximately the same result set every time (or exactly the same result set, if your file hasn't changed). Correct - when we want psuedo-random, we create a i-desc which calls RND to generate a 6 digit integer. Then you can select against it (either sort or pattern match or whatever) and the results will vary from run to run. It's not truly random, but reasonable enough for most uses (far better than SAMPLE or SAMPLED). For example, to randomly select approx 10% of records: :GET.LIST SOMELIST (or SELECT...) SELECT FILENAME WITH XRANDOM LIKE ...0 or: :GET.LIST SOMELIST (or SELECT...) SELECT FILENAME BY XRANDOM SELECT FIELNAME SAMPLED 10 To randomly select 10 records: :GET.LIST SOMELIST (or SELECT...) SELECT FILENAME BY XRANDOM SELECT FIELNAME SAMPLE 10 -- Jeff Butera, Ph.D. Administrative Systems Hampshire College [EMAIL PROTECTED] 413-559-5556 Where I'm from, we believe all sorts of things that aren't true. We call it history. The Wizard, Wicked --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] question(s)
Thanks a million everyone! Great answers/suggestions/thoughts! dougc --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/