RE: [U2] getting undefined errors when varible look defined (UV/unix)
I will test this once I can get a chance. My main concern was that the MATing would delay the job, but if it eliminates all the undefined...which no one see's since it's a phantom process and the &PH& file gets cleared daily. Possibly all the writing of the "undefined..." to the &PH& also would delay the job just as much. George >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Behalf Of Claus Derlien >Sent: Tuesday, December 21, 2004 10:02 AM >To: [EMAIL PROTECTED] >Subject: SV: [U2] getting undefined errors when varible look defined >(UV/unix) > > >MAT SOME.VAR = '' > >Will reset _all_ cells in the matrix > >Best regards and a merry xmas to all on the list > >Claus Derlien --- 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)
Will that fill a multidimensional array as well? or just a single dimensional array. I was going to try that next but wasn't sure. George >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Behalf Of David Jordan >Sent: Monday, December 20, 2004 6:29 PM >To: [EMAIL PROTECTED] >Subject: RE: [U2] getting undefined errors when varible look defined >(UV/unix) > > >Hi George > >The dimensioned array probably has unassigned values in it. > >You can do a MAT statement to assign values to an array >Ie MAT TOTALS = "" > MAT DADVTOT = "" > MAT TOTALS = "" --- 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)
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)
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)
MAT TOTALS = "" ; for each of the arrays should take care of it. Tom Dodds [EMAIL PROTECTED] 630-235-2975 Cell 708-482-4510 Office -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Gallen Sent: Monday, December 20, 2004 5:15 PM To: [EMAIL PROTECTED] Subject: RE: [U2] getting undefined errors when varible look defined (UV/unix) DTOTALS is a two dimensional array, which has been dimensioned, however, not all the slots have been filled. DIM TOTALS(MAXNOIR,MAXADV) DIM ADVTOT(MAXNOIR,MAXADV) DIM PRJTOT(MAXNOIR,MAXADV) DIM REPTOT(MAXNOIR,MAXADV) DIM DTOTALS(MAXNOIR,MAXADV) DIM DADVTOT(MAXNOIR,MAXADV) DIM DPRJTOT(MAXNOIR,MAXADV) DIM DREPTOT(MAXNOIR,MAXADV) So I'm guessing then, to avoid it, I have to put a "" in every possible slot in each array? I say "" not 0, since the contents of the arrays will be multi dimensional dynamic arrays, and not integer numbers. George >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Behalf Of Lee Bacall >Sent: Monday, December 20, 2004 5:40 PM >To: [EMAIL PROTECTED] >Subject: Re: [U2] getting undefined errors when varible look defined >(UV/unix) > > >George, >Variable "DTOTAMT" previously >> undefined. Empty string used. > >Was DTOTALS assigned? >Was DADVTOT assigned? > >If not, you are possibly attempting to assign one variable to another >that has not yet been assigned. >Here's a viable solution... >IF NOT(ASSIGNED(DTOTALS)) THEN DTOTALS = 0 >IF NOT(ASSIGNED(DADVTOT)) THEN DADVTOT = 0 > >Lee Bacall >http://www.binarystar.com >Phone: +1 (954) 791-8575 >Cell: +1 (954) 655-6581 --- 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: RE: [U2] getting undefined errors when varible look defined ( UV/unix)
Simply MAT var = "" for all your totals and be done with it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Gallen Sent: Monday, December 20, 2004 4:15 PM To: [EMAIL PROTECTED] Subject: [Norton AntiSpam] RE: [U2] getting undefined errors when varible look defined ( UV/unix) DTOTALS is a two dimensional array, which has been dimensioned, however, not all the slots have been filled. DIM TOTALS(MAXNOIR,MAXADV) DIM ADVTOT(MAXNOIR,MAXADV) DIM PRJTOT(MAXNOIR,MAXADV) DIM REPTOT(MAXNOIR,MAXADV) DIM DTOTALS(MAXNOIR,MAXADV) DIM DADVTOT(MAXNOIR,MAXADV) DIM DPRJTOT(MAXNOIR,MAXADV) DIM DREPTOT(MAXNOIR,MAXADV) So I'm guessing then, to avoid it, I have to put a "" in every possible slot in each array? I say "" not 0, since the contents of the arrays will be multi dimensional dynamic arrays, and not integer numbers. George >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Behalf Of Lee Bacall >Sent: Monday, December 20, 2004 5:40 PM >To: [EMAIL PROTECTED] >Subject: Re: [U2] getting undefined errors when varible look defined >(UV/unix) > > >George, >Variable "DTOTAMT" previously >> undefined. Empty string used. > >Was DTOTALS assigned? >Was DADVTOT assigned? > >If not, you are possibly attempting to assign one variable to another >that has not yet been assigned. >Here's a viable solution... >IF NOT(ASSIGNED(DTOTALS)) THEN DTOTALS = 0 IF NOT(ASSIGNED(DADVTOT)) >THEN DADVTOT = 0 > >Lee Bacall >http://www.binarystar.com >Phone: +1 (954) 791-8575 >Cell: +1 (954) 655-6581 --- 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] getting undefined errors when varible look defined (UV/unix)
Right, and the easiest way is to do a MAT DTOTALS = "" after the DIM statement. At least in UniData, hopefully in UV as well. hth Colin Alfke Calgary >-Original Message- >From: George Gallen > >DTOTALS is a two dimensional array, which has been dimensioned, > however, not all the slots have been filled. > > DIM TOTALS(MAXNOIR,MAXADV) > DIM ADVTOT(MAXNOIR,MAXADV) > DIM PRJTOT(MAXNOIR,MAXADV) > DIM REPTOT(MAXNOIR,MAXADV) > DIM DTOTALS(MAXNOIR,MAXADV) > DIM DADVTOT(MAXNOIR,MAXADV) > DIM DPRJTOT(MAXNOIR,MAXADV) > DIM DREPTOT(MAXNOIR,MAXADV) > >So I'm guessing then, to avoid it, I have to put a "" in every possible >slot in each array? > >I say "" not 0, since the contents of the arrays will be multi >dimensional > dynamic arrays, and not integer numbers. > >George --- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
Unclassified RE: [U2] getting undefined errors when varible look defined (UV/unix)
Not too hard to do, George ... DIM TOTALS(MAXNOIR,MAXADV) MAT TOTALS = '' DIM ADVTOT(MAXNOIR,MAXADV) MAT ADVTOT = '' Etc Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Gallen Sent: Tuesday, 21 December 2004 12:15 To: [EMAIL PROTECTED] Subject: RE: [U2] getting undefined errors when varible look defined (UV/unix) DTOTALS is a two dimensional array, which has been dimensioned, however, not all the slots have been filled. DIM TOTALS(MAXNOIR,MAXADV) DIM ADVTOT(MAXNOIR,MAXADV) DIM PRJTOT(MAXNOIR,MAXADV) DIM REPTOT(MAXNOIR,MAXADV) DIM DTOTALS(MAXNOIR,MAXADV) DIM DADVTOT(MAXNOIR,MAXADV) DIM DPRJTOT(MAXNOIR,MAXADV) DIM DREPTOT(MAXNOIR,MAXADV) So I'm guessing then, to avoid it, I have to put a "" in every possible slot in each array? I say "" not 0, since the contents of the arrays will be multi dimensional dynamic arrays, and not integer numbers. George The information contained in this Internet Email message is intended for the addressee only and may contain privileged information, but not necessarily the official views or opinions of the New Zealand Defence Force. If you are not the intended recipient you must not use, disclose, copy or distribute this message or the information in it. If you have received this message in error, please Email or telephone the sender immediately. --- 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)
Check to see if there is a way to get to TOTAMT=TOTAMT+IVAL But by pass TOTAMT="" Unless we can see the full section of code that deal with it can not specify what is the cause but what causing the error. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Gallen Sent: Monday, December 20, 2004 2:20 PM To: Ardent List Subject: [U2] getting undefined errors when varible look defined (UV/unix) Here is a snippit of code: ITOT="" ; TOTAMT="" ; DTOT="" ; DTOTAMT="" * ITOT=ADVTOT(JPOS3,T) TOTAMT=TOTALS(JPOS3,T) DTOT=DADVTOT(JPOS3,T) DTOTAMT=DTOTALS(JPOS3,T) * ITOT=ITOT+IVAL TOTAMT=TOTAMT+IVAL DTOT=DTOT+IVAL DTOTAMT=DTOTAMT+IVAL * ADVTOT(JPOS3,T)=ITOT TOTALS(JPOS3,T)=TOTAMT DADVTOT(JPOS3,T)=DTOT DTOTALS(JPOS3,T)=DTOTAMT when the full program is run I get these: Program "SPG-JSPEND-1": Line 762, Variable "DTOTAMT" previously undefined. Empty string used. Program "SPG-JSPEND-1": Line 759, Variable "ITOT" previously undefined. Empty string used. Program "SPG-JSPEND-1": Line 759, Variable "ITOT" previously undefined. Empty string used. Program "SPG-JSPEND-1": Line 760, Variable "TOTAMT" previously undefined. Empty string used. Program "SPG-JSPEND-1": Line 760, Variable "TOTAMT" previously undefined. Empty string used. Program "SPG-JSPEND-1": Line 761, Variable "DTOT" previously undefined. Empty string used. I'm assuming that nothing is ever been assigned to (JPOS3,T) to cause the error. I trIed using: IF ADVTOT(JPOS3,T)#"" THEN ITOT=ADVTOT(JPOS3,T) So I then put in a PRINT ADVTOT(JPOS3,T) and on certain number combos I get: Program "SPG-JSPEND-1": Line 755, Variable "$R196" previously undefined. Empty string used What is $R196? JPOS3 and T were both within the dimension of this array, otherwise I would have received an Array out of bounds error. How can I test for this so I don't get a screen full of the above? George George Gallen Senior Programmer/Analyst Accounting/Data Division [EMAIL PROTECTED] ph:856.848.1000 Ext 220 SLACK Incorporated - An innovative information, education and management company http://www.slackinc.com --- 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] getting undefined errors when varible look defined (UV/unix)
Hi George The dimensioned array probably has unassigned values in it. You can do a MAT statement to assign values to an array Ie MAT TOTALS = "" MAT DADVTOT = "" MAT TOTALS = "" -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Gallen Sent: Tuesday, 21 December 2004 9:20 AM To: Ardent List Subject: [U2] getting undefined errors when varible look defined (UV/unix) Here is a snippit of code: ITOT="" ; TOTAMT="" ; DTOT="" ; DTOTAMT="" * ITOT=ADVTOT(JPOS3,T) TOTAMT=TOTALS(JPOS3,T) DTOT=DADVTOT(JPOS3,T) DTOTAMT=DTOTALS(JPOS3,T) * ITOT=ITOT+IVAL Regards David Jordan Managing Consultant DACONO Holdings Pty Ltd PO Box 909 Lane Cove NSW 2066 Australia Email: [EMAIL PROTECTED] www.dacono.com.au --- 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)
DTOTALS is a two dimensional array, which has been dimensioned, however, not all the slots have been filled. DIM TOTALS(MAXNOIR,MAXADV) DIM ADVTOT(MAXNOIR,MAXADV) DIM PRJTOT(MAXNOIR,MAXADV) DIM REPTOT(MAXNOIR,MAXADV) DIM DTOTALS(MAXNOIR,MAXADV) DIM DADVTOT(MAXNOIR,MAXADV) DIM DPRJTOT(MAXNOIR,MAXADV) DIM DREPTOT(MAXNOIR,MAXADV) So I'm guessing then, to avoid it, I have to put a "" in every possible slot in each array? I say "" not 0, since the contents of the arrays will be multi dimensional dynamic arrays, and not integer numbers. George >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Behalf Of Lee Bacall >Sent: Monday, December 20, 2004 5:40 PM >To: [EMAIL PROTECTED] >Subject: Re: [U2] getting undefined errors when varible look defined >(UV/unix) > > >George, >Variable "DTOTAMT" previously >> undefined. Empty string used. > >Was DTOTALS assigned? >Was DADVTOT assigned? > >If not, you are possibly attempting to assign one variable to >another that >has not yet been assigned. >Here's a viable solution... >IF NOT(ASSIGNED(DTOTALS)) THEN DTOTALS = 0 >IF NOT(ASSIGNED(DADVTOT)) THEN DADVTOT = 0 > >Lee Bacall >http://www.binarystar.com >Phone: +1 (954) 791-8575 >Cell: +1 (954) 655-6581 --- 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)
Are you MAT clearing your totals before filling them? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Gallen Sent: Monday, December 20, 2004 3:20 PM To: Ardent List Subject: [U2] getting undefined errors when varible look defined (UV/unix) Here is a snippit of code: ITOT="" ; TOTAMT="" ; DTOT="" ; DTOTAMT="" * ITOT=ADVTOT(JPOS3,T) TOTAMT=TOTALS(JPOS3,T) DTOT=DADVTOT(JPOS3,T) DTOTAMT=DTOTALS(JPOS3,T) * ITOT=ITOT+IVAL TOTAMT=TOTAMT+IVAL DTOT=DTOT+IVAL DTOTAMT=DTOTAMT+IVAL * ADVTOT(JPOS3,T)=ITOT TOTALS(JPOS3,T)=TOTAMT DADVTOT(JPOS3,T)=DTOT DTOTALS(JPOS3,T)=DTOTAMT when the full program is run I get these: Program "SPG-JSPEND-1": Line 762, Variable "DTOTAMT" previously undefined. Empty string used. Program "SPG-JSPEND-1": Line 759, Variable "ITOT" previously undefined. Empty string used. Program "SPG-JSPEND-1": Line 759, Variable "ITOT" previously undefined. Empty string used. Program "SPG-JSPEND-1": Line 760, Variable "TOTAMT" previously undefined. Empty string used. Program "SPG-JSPEND-1": Line 760, Variable "TOTAMT" previously undefined. Empty string used. Program "SPG-JSPEND-1": Line 761, Variable "DTOT" previously undefined. Empty string used. I'm assuming that nothing is ever been assigned to (JPOS3,T) to cause the error. I trIed using: IF ADVTOT(JPOS3,T)#"" THEN ITOT=ADVTOT(JPOS3,T) So I then put in a PRINT ADVTOT(JPOS3,T) and on certain number combos I get: Program "SPG-JSPEND-1": Line 755, Variable "$R196" previously undefined. Empty string used What is $R196? JPOS3 and T were both within the dimension of this array, otherwise I would have received an Array out of bounds error. How can I test for this so I don't get a screen full of the above? George George Gallen Senior Programmer/Analyst Accounting/Data Division [EMAIL PROTECTED] ph:856.848.1000 Ext 220 SLACK Incorporated - An innovative information, education and management company http://www.slackinc.com --- 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] getting undefined errors when varible look defined (UV/unix)
George, Variable "DTOTAMT" previously > undefined. Empty string used. Was DTOTALS assigned? Was DADVTOT assigned? If not, you are possibly attempting to assign one variable to another that has not yet been assigned. Here's a viable solution... IF NOT(ASSIGNED(DTOTALS)) THEN DTOTALS = 0 IF NOT(ASSIGNED(DADVTOT)) THEN DADVTOT = 0 Lee Bacall http://www.binarystar.com Phone: +1 (954) 791-8575 Cell: +1 (954) 655-6581 - Original Message - From: "George Gallen" <[EMAIL PROTECTED]> To: "Ardent List" <[EMAIL PROTECTED]> Sent: Monday, December 20, 2004 5:19 PM Subject: [U2] getting undefined errors when varible look defined (UV/unix) > Here is a snippit of code: > > ITOT="" ; TOTAMT="" ; DTOT="" ; DTOTAMT="" > * > ITOT=ADVTOT(JPOS3,T) > TOTAMT=TOTALS(JPOS3,T) > DTOT=DADVTOT(JPOS3,T) > DTOTAMT=DTOTALS(JPOS3,T) > * > ITOT=ITOT+IVAL > TOTAMT=TOTAMT+IVAL > DTOT=DTOT+IVAL > DTOTAMT=DTOTAMT+IVAL > * > ADVTOT(JPOS3,T)=ITOT > TOTALS(JPOS3,T)=TOTAMT > DADVTOT(JPOS3,T)=DTOT > DTOTALS(JPOS3,T)=DTOTAMT > > when the full program is run I get these: > > Program "SPG-JSPEND-1": Line 762, Variable "DTOTAMT" previously > undefined. Empty string used. > Program "SPG-JSPEND-1": Line 759, Variable "ITOT" previously undefined. > Empty string used. > Program "SPG-JSPEND-1": Line 759, Variable "ITOT" previously undefined. > Empty string used. > Program "SPG-JSPEND-1": Line 760, Variable "TOTAMT" previously > undefined. Empty string used. > Program "SPG-JSPEND-1": Line 760, Variable "TOTAMT" previously > undefined. Empty string used. > Program "SPG-JSPEND-1": Line 761, Variable "DTOT" previously undefined. > Empty string used. > > I'm assuming that nothing is ever been assigned to (JPOS3,T) to cause > the error. > I trIed using: > > IF ADVTOT(JPOS3,T)#"" THEN ITOT=ADVTOT(JPOS3,T) > > So I then put in a PRINT ADVTOT(JPOS3,T) and on certain number combos I > get: > > Program "SPG-JSPEND-1": Line 755, Variable "$R196" previously undefined. > Empty string used > > What is $R196? > > JPOS3 and T were both within the dimension of this array, otherwise I > would have received an >Array out of bounds error. > > How can I test for this so I don't get a screen full of the above? > > George > > > > George Gallen > Senior Programmer/Analyst > Accounting/Data Division > [EMAIL PROTECTED] > ph:856.848.1000 Ext 220 > > SLACK Incorporated - An innovative information, education and management > company > http://www.slackinc.com > --- > 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/