Re: [U2] UniVerse backups to disk

2011-08-18 Thread Gregor Scott
Chris, add the options -notag -limit 1 to your command line. The -notag stops UV from updating the header of each record after it is included in the backup. The -limit 1 stops uvbackup from trying to use the shared-memory feature, which can severely impact the performance. The uvbackup

Re: [U2] Simple Masking of Password Input (Universe Basic)

2011-08-18 Thread nschroth
Thanks for the put-down, oh Senior Exhaulted Programmer Mecki. Two useful ditties were included to remind we juniors: 1) the user perspective is supreme - way too much code is generated by slick programmers with total disregard for the user experience. 2) I did learn this morning that the

Re: [U2] Simple Masking of Password Input (Universe Basic)

2011-08-18 Thread nschroth
Andy - Simple and right on point. Thanks Nelson andy baum-2 wrote: How about        PASSWD = ''        LOOP           CHR = KEYIN()        UNTIL CHR = CHAR(13) DO           IF CHR # CHAR(8) THEN              CRT *:              PASSWD := CHR           END ELSE              CRT

Re: [U2] Simple Masking of Password Input (Universe Basic)

2011-08-18 Thread Charlie Noah
Try INPUT X,-1 to see if anything is in the input buffer, then KEYIN() to get a single keystroke. That will get the backspace. Depending on your needs, you may need to check the input buffer because KEYIN will sit there until the cows come home if there's nothing there. This is great (with a

Re: [U2] UniVerse backups to disk

2011-08-18 Thread DavidJMurray (mvdbs.com)
Chris Lee-17 wrote: What's the best way to achieve this, is it necessary to use UniVerse's built-in uvbackup utility ? In the past for a small client who had a overnight 'dead' period, I used a simple windows script (UniVerse on MS-Windows) to backup using uvbackup to a scratch disk,

Re: [U2] easy way to get count of a DIM()?

2011-08-18 Thread Glorfield, Gordon
First off, I've never seen that syntax before. Do you mean: DIM X(25) or do you mean you are setting X to the 25th value in a dimensioned variable? And I don't understand what you mean when you say some records get taken out. How are they taken out? I'm a little confused by your question.

Re: [U2] easy way to get count of a DIM()?

2011-08-18 Thread Chris Austin
Yes, That is correct DIM X(25) to initialize X, how do we then get the size of X? Thanks, Chris From: gglorfi...@vertisinc.com To: u2-users@listserver.u2ug.org Date: Thu, 18 Aug 2011 13:41:17 -0400 Subject: Re: [U2] easy way to get count of a DIM()? First off, I've never seen that

Re: [U2] easy way to get count of a DIM()?

2011-08-18 Thread George Gallen
Dimensioned arrays do not change their sizes. If you DIM x(25), the size of x is 25 It's not like a dynamic array However, when you MATWRITE the array to disk, it will only write out up to the last physical data in the array, and ignore the trailing blank slots. George -Original

Re: [U2] easy way to get count of a DIM()?

2011-08-18 Thread Chris Austin
We're trying to create the dimensioned array at run time with a size based on a variable, which works in UniVerse when using the -STATIC.DIM option. We need to know (in another program), what the size of that dimensioned array is. Chris From: ggal...@wyanokegroup.com To:

Re: [U2] easy way to get count of a DIM()?

2011-08-18 Thread Chris Austin
I figured it out from Brian's notes SUBROUTINE TEST_HARNESS4 $INCLUDE LF_FINS LF_MASTER_INCLUDE VERS='4.000' DIM ARRAY(23) CALL CALLED(MAT ARRAY) RETURN --- SUBROUTINE CALLED(MAT ARRAY) VERS='4.000' PRINT INMAT(ARRAY) RETURN

Re: [U2] easy way to get count of a DIM()?

2011-08-18 Thread Rick Nuckolls
You can redimension an array as long as it is not a common variable. This tends to be a “slow” process, or at least one that you do not want to do each time that you add something to the array. You can use inmat( X ) to get a vector on the size of the array, as you might want to do within a

Re: [U2] Simple Masking of Password Input (Universe Basic)

2011-08-18 Thread Rex Gozar
Displays asterisks for characters entered. Displays extra asterisks when password is less than seven characters. Enjoy. rex SUBROUTINE GET.PASSWD(RESPONSE) * PASSWORD INPUT ROUTINE ** EQU BS TO CHAR(8) EQU CR TO CHAR(13) BUFFER = SPACE(255) BUFPTR = 0

Re: [U2] UniVerse backups to disk

2011-08-18 Thread John Hester
I do an additional archival backup with cp at the linux OS level before and after our month-end batch processing since that's the data we typically have to refer back to. I bought a 4TB iomega NAS appliance that was relatively inexpensive just for this purpose. The archive share is NFS mounted