[U2] Writeseq quirkiness - the answer
Greetings, And the prize goes to Kevin King! He came up with the write answer to solve my writeseq problem. Of course, he had an advantage since he helped write the application in the first place. Still, I was stumped and his answer worked. Thank you (once again!), Kevin. For those who care: To understand the solution, you need a little more background. The code segment I sent is part of an application that manages the interface between my Unidata application and a third-party device, which in turn manages the interface with a bunch of other devices. When I want to send data out of my application, I create a file with a .out extension and write the appropriately formatted data to the file. A program written by Kevin King sits out there looking for files with .out extensions. When it finds one, it reads the file and sends the data to the third-party device. It then deletes the file. And this is wherein lay the problem, and the solution. What was happening was, my program would open the file (OPENSEQ) and Kevin's program would come along and try to read it, then delete it, then I'd try to write to it (WRITESEQ), but by then it was gone. I changed the code a little bit to open the file with a .tmp extension, write to that, then rename it to .out. Works great! There are still a few mysteries: why does the original code work for just about every situation, then suddenly fail for one new situation that is seemly the same as all the others? But heck, it works so I'll go with it. Thanks to everyone who responded with a solution. And the u2 list comes through again! Dana Baron System Manager Smugglers' Notch Resort --- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Writeseq quirkiness - the answer
One question - why could Kevin's process delete an open file? I thought the OS prevented that very situation from happening! Or does UD not hold the item open such that the OS sees it an 'in use by another process'? It would seem that by virtue of doing OPENSEQ, no one could 'delete' the item until you wrote the item (or did CLOSESEQ)... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dana Baron Sent: Monday, December 20, 2004 8:39 AM To: U2-Users (E-mail) Subject: [U2] Writeseq quirkiness - the answer Greetings, And the prize goes to Kevin King! He came up with the write answer to solve my writeseq problem. Of course, he had an advantage since he helped write the application in the first place. Still, I was stumped and his answer worked. Thank you (once again!), Kevin. For those who care: To understand the solution, you need a little more background. The code segment I sent is part of an application that manages the interface between my Unidata application and a third-party device, which in turn manages the interface with a bunch of other devices. When I want to send data out of my application, I create a file with a .out extension and write the appropriately formatted data to the file. A program written by Kevin King sits out there looking for files with .out extensions. When it finds one, it reads the file and sends the data to the third-party device. It then deletes the file. And this is wherein lay the problem, and the solution. What was happening was, my program would open the file (OPENSEQ) and Kevin's program would come along and try to read it, then delete it, then I'd try to write to it (WRITESEQ), but by then it was gone. I changed the code a little bit to open the file with a .tmp extension, write to that, then rename it to .out. Works great! There are still a few mysteries: why does the original code work for just about every situation, then suddenly fail for one new situation that is seemly the same as all the others? But heck, it works so I'll go with it. Thanks to everyone who responded with a solution. And the u2 list comes through again! Dana Baron System Manager Smugglers' Notch Resort --- 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] Writeseq quirkiness - the answer
That's something of a mystery to me too. The app that Dana is referring to is a java app that polls the directory and then consumes anything it finds. I found it interesting that the Java app could open a file that was being written to by Unidata, but then again, we've seen this with credit card processing so I figured the .tmp - .out rename might be a workable solution in this case as well. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Wolverton Sent: Monday, December 20, 2004 9:19 AM To: [EMAIL PROTECTED] Subject: RE: [U2] Writeseq quirkiness - the answer One question - why could Kevin's process delete an open file? I thought the OS prevented that very situation from happening! Or does UD not hold the item open such that the OS sees it an 'in use by another process'? It would seem that by virtue of doing OPENSEQ, no one could 'delete' the item until you wrote the item (or did CLOSESEQ)... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dana Baron Sent: Monday, December 20, 2004 8:39 AM To: U2-Users (E-mail) Subject: [U2] Writeseq quirkiness - the answer Greetings, And the prize goes to Kevin King! He came up with the write answer to solve my writeseq problem. Of course, he had an advantage since he helped write the application in the first place. Still, I was stumped and his answer worked. Thank you (once again!), Kevin. For those who care: To understand the solution, you need a little more background. The code segment I sent is part of an application that manages the interface between my Unidata application and a third-party device, which in turn manages the interface with a bunch of other devices. When I want to send data out of my application, I create a file with a .out extension and write the appropriately formatted data to the file. A program written by Kevin King sits out there looking for files with .out extensions. When it finds one, it reads the file and sends the data to the third-party device. It then deletes the file. And this is wherein lay the problem, and the solution. What was happening was, my program would open the file (OPENSEQ) and Kevin's program would come along and try to read it, then delete it, then I'd try to write to it (WRITESEQ), but by then it was gone. I changed the code a little bit to open the file with a .tmp extension, write to that, then rename it to .out. Works great! There are still a few mysteries: why does the original code work for just about every situation, then suddenly fail for one new situation that is seemly the same as all the others? But heck, it works so I'll go with it. Thanks to everyone who responded with a solution. And the u2 list comes through again! Dana Baron System Manager Smugglers' Notch Resort --- 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] Writeseq quirkiness - the answer
I had a similar situation with my interface with Moen Faucet. The had a 'lock' record scheme set up so that they would write a record indicating that the were getting ready to upload the data from the 'orders to ship' file. If my ftp program saw that record, it was not supposed to append to the orders file. If I was going to append to the orders file, I would write the lock record so that they would not start uploading until I was finished. This worked about 98% of the time, but 2% of the time records were getting lost, or partial orders were being uploaded on their side. Before I ever wrote the first line of code for the order interface, I told them that their locking scheme was faulty, but I was told to do it anyway. Eventually this because a big enough problem that they finally listened to me. My solution was to create a master and slave locking process with a 15 second delay. (They liked this since I did all the programming, and they were the Master.) What I did was when I would write my locking record, I would wait 15 seconds and check the lock record to see if I had written it, or if they had overwritten my lock record with theirs. If they had overwritten my record, I knew that there was a collision similar to yours, and I would wait 5 minutes and try again. If not, I would go ahead and append. This solved their problem that they had experienced for over 7 years with other subsidiary companies as well as with mine. My reward? They closed our division. You just gotta love the logic of big corporations. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dana Baron Sent: Monday, December 20, 2004 06:39 To: U2-Users (E-mail) Subject: [U2] Writeseq quirkiness - the answer Greetings, And the prize goes to Kevin King! He came up with the write answer to solve my writeseq problem. Of course, he had an advantage since he helped write the application in the first place. Still, I was stumped and his answer worked. Thank you (once again!), Kevin. For those who care: To understand the solution, you need a little more background. The code segment I sent is part of an application that manages the interface between my Unidata application and a third-party device, which in turn manages the interface with a bunch of other devices. When I want to send data out of my application, I create a file with a .out extension and write the appropriately formatted data to the file. A program written by Kevin King sits out there looking for files with .out extensions. When it finds one, it reads the file and sends the data to the third-party device. It then deletes the file. And this is wherein lay the problem, and the solution. What was happening was, my program would open the file (OPENSEQ) and Kevin's program would come along and try to read it, then delete it, then I'd try to write to it (WRITESEQ), but by then it was gone. I changed the code a little bit to open the file with a .tmp extension, write to that, then rename it to .out. Works great! There are still a few mysteries: why does the original code work for just about every situation, then suddenly fail for one new situation that is seemly the same as all the others? But heck, it works so I'll go with it. Thanks to everyone who responded with a solution. And the u2 list comes through again! Dana Baron System Manager Smugglers' Notch Resort --- 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] Writeseq quirkiness - the answer
I'm sorry, I don't remember if this problem was occuring under unix or windows. The following response applies to unix The OPENSEQ doesn't prevent other people from opening/changing/deleting the file. In general, there's nothing in unix that prevents you from deleting an open file either. The file gets unlinked from the directory where it had been deleted from, but the inode continues to exist and the file remains accessable to anyone who already had it open. When the last person closes the file, the inode goes away. I seem to remember that universe, and maybe unidata, had a table of open files, and it would close and reopen unix files as necessary to avoid running out of OS file handles. Is it possible that that is happening here? Unidata closes the unix file, and then tries to reopen it so that it can do the write, and fails because it has been deleted? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Kevin King Sent: Monday, December 20, 2004 10:56 AM To: [EMAIL PROTECTED] Subject: RE: [U2] Writeseq quirkiness - the answer That's something of a mystery to me too. The app that Dana is referring to is a java app that polls the directory and then consumes anything it finds. I found it interesting that the Java app could open a file that was being written to by Unidata, but then again, we've seen this with credit card processing so I figured the .tmp - .out rename might be a workable solution in this case as well. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Wolverton Sent: Monday, December 20, 2004 9:19 AM To: [EMAIL PROTECTED] Subject: RE: [U2] Writeseq quirkiness - the answer One question - why could Kevin's process delete an open file? I thought the OS prevented that very situation from happening! Or does UD not hold the item open such that the OS sees it an 'in use by another process'? It would seem that by virtue of doing OPENSEQ, no one could 'delete' the item until you wrote the item (or did CLOSESEQ)... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dana Baron Sent: Monday, December 20, 2004 8:39 AM To: U2-Users (E-mail) Subject: [U2] Writeseq quirkiness - the answer Greetings, And the prize goes to Kevin King! He came up with the write answer to solve my writeseq problem. Of course, he had an advantage since he helped write the application in the first place. Still, I was stumped and his answer worked. Thank you (once again!), Kevin. For those who care: To understand the solution, you need a little more background. The code segment I sent is part of an application that manages the interface between my Unidata application and a third-party device, which in turn manages the interface with a bunch of other devices. When I want to send data out of my application, I create a file with a .out extension and write the appropriately formatted data to the file. A program written by Kevin King sits out there looking for files with .out extensions. When it finds one, it reads the file and sends the data to the third-party device. It then deletes the file. And this is wherein lay the problem, and the solution. What was happening was, my program would open the file (OPENSEQ) and Kevin's program would come along and try to read it, then delete it, then I'd try to write to it (WRITESEQ), but by then it was gone. I changed the code a little bit to open the file with a .tmp extension, write to that, then rename it to .out. Works great! There are still a few mysteries: why does the original code work for just about every situation, then suddenly fail for one new situation that is seemly the same as all the others? But heck, it works so I'll go with it. Thanks to everyone who responded with a solution. And the u2 list comes through again! Dana Baron System Manager Smugglers' Notch Resort --- 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/ --- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
[no subject]
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) * ITOTTT+OFFSET=ITOTTT+OFFSET+IVAL TOTAMTTT+OFFSET=TOTAMTTT+OFFSET+IVAL DTOTTT+OFFSET,TQ=DTOTTT+OFFSET,TQ+IVAL DTOTAMTTT+OFFSET,TQ=DTOTAMTTT+OFFSET,TQ+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/
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) * ITOTTT+OFFSET=ITOTTT+OFFSET+IVAL TOTAMTTT+OFFSET=TOTAMTTT+OFFSET+IVAL DTOTTT+OFFSET,TQ=DTOTTT+OFFSET,TQ+IVAL DTOTAMTTT+OFFSET,TQ=DTOTAMTTT+OFFSET,TQ+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)
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) * ITOTTT+OFFSET=ITOTTT+OFFSET+IVAL TOTAMTTT+OFFSET=TOTAMTTT+OFFSET+IVAL DTOTTT+OFFSET,TQ=DTOTTT+OFFSET,TQ+IVAL DTOTAMTTT+OFFSET,TQ=DTOTAMTTT+OFFSET,TQ+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)
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)
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) * ITOTTT+OFFSET=ITOTTT+OFFSET+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)
Check to see if there is a way to get to TOTAMTTT+OFFSET=TOTAMTTT+OFFSET+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) * ITOTTT+OFFSET=ITOTTT+OFFSET+IVAL TOTAMTTT+OFFSET=TOTAMTTT+OFFSET+IVAL DTOTTT+OFFSET,TQ=DTOTTT+OFFSET,TQ+IVAL DTOTAMTTT+OFFSET,TQ=DTOTAMTTT+OFFSET,TQ+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/
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: 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)
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/
[U2] The list format and usefulness
Hi Folks, After becoming a little frustrated of seeing and reading the same old stuff, day in and day out, and IMHO the list not having the same useful content as previously, I have number of suggestions. With a number of other groups, a different format is used, a question is asked, replies are sent directly to the person asking the question and this person then summarises for the groups benefit. This has couple of immediate advantages : 1) stops arguments on the relative benefits of a GOTO over a LOOP for the 53rd time. (30 replies on the last one). 2) stops multiple answers clogging bandwidth of everybody on the list. eg. being told how to MAT var = '' 9 times. People need to also have a little more discipline and perhaps utilise the community list when appropriate. I choose not to subscribe so am not aware if it gets much of a hammering but perhaps it could do with a little more. This format provides that discipline. I am aware there useful posts and the responses can be very helpful but we could also promote the use and searching of the archives prior to posting. This would trim down a number of the duplicate posts. I feel these simple measures would cut down considerably on duplicate and unnecessary traffic. Donning asbestos underpants now. Regards David Logan Database Administrator HP Managed Services 148 Frome Street, Adelaide 5000 Australia +61 8 8408 4273 - Work +61 417 268 665 - Mobile +61 8 8408 4259 - Fax --- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] The list format and usefulness
In a message dated 12/20/2004 7:40:32 PM Eastern Standard Time, Logan, David (SST - Adelaide) [EMAIL PROTECTED] writes: snip With a number of other groups, a different format is used, a question is asked, replies are sent directly to the person asking the question and this person then summarises for the groups benefit. /snip It's an excellent suggestion David, but doesn't it rely on people actually summarizing ? If they don't then the wisdom of the responders is lost in limbo isn't it? That's the one issue I'd bring up about your idea. Will Johnson Fast Forward Technologies Member of the U2UG Establishing Board --- 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] The list format and usefulness
Hi Will, Yes it does, it requires discipline and also an acknowledgement by the group that we all rely on everybody else. If you don't summarise, how long will it be before nobody bothers to reply? One of the other lists I subscribe to is the sun-managers list and this works well. Everybody knows the rules and realises that everybody can learn from their own experiences. It is rare that the summary isn't posted. My own opinion is that most people do wish to help and most people learn something from that assistance. As a price to pay, a quick summary is quite cheap. Regards David Logan Database Administrator HP Managed Services 148 Frome Street, Adelaide 5000 Australia +61 8 8408 4273 - Work +61 417 268 665 - Mobile +61 8 8408 4259 - Fax -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, 21 December 2004 11:50 AM To: [EMAIL PROTECTED] Subject: Re: [U2] The list format and usefulness In a message dated 12/20/2004 7:40:32 PM Eastern Standard Time, Logan, David (SST - Adelaide) [EMAIL PROTECTED] writes: snip With a number of other groups, a different format is used, a question is asked, replies are sent directly to the person asking the question and this person then summarises for the groups benefit. /snip It's an excellent suggestion David, but doesn't it rely on people actually summarizing ? If they don't then the wisdom of the responders is lost in limbo isn't it? That's the one issue I'd bring up about your idea. Will Johnson Fast Forward Technologies Member of the U2UG Establishing Board --- 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] The list format and usefulness
Hi Bruce, Do you really want the full content or do you want the answer? I don't disagree about Ray W's postings however it stops all the out of office messages along with a large number of tit for tat postings. If the zealots wish to continue, they can do it in private. The list manager used by other lists has a reply-to of the person posting the message. Personally, I'm a bit sick of the arguments. Some folks think it is funny but it ties up an inordinate amount of bandwidth. Your point about the immediate receivers is not really valid. Why does everybodys reply have to go to everybody on the list? Multiply the answers this morning by the number of subscribers times the length of each message and the bandwidth consumed becomes quite large. I'm not trying to control the delay, just redirect the replies to where they should go ie. the original message poster. It is then up to he/she to compose a reasonable summary and post this to the list. We then only have 2 messages to the list, the question and the answer. I don't disagree with the INFOCUS indexing however the price is right and I haven't seen any offers of anything better. It is using another sites donated bandwidth (AFAIK). I'm sure gmane or something else also mirrors the list. Regards David Logan Database Administrator HP Managed Services 148 Frome Street, Adelaide 5000 Australia +61 8 8408 4273 - Work +61 417 268 665 - Mobile +61 8 8408 4259 - Fax -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruce Nichol Sent: Tuesday, 21 December 2004 12:01 PM To: [EMAIL PROTECTED] Subject: Re: [U2] The list format and usefulness Goo'day, David, At 11:40 21/12/04 +1100, you wrote: Hi Folks, After becoming a little frustrated of seeing and reading the same old stuff, day in and day out, and IMHO the list not having the same useful content as previously, I have number of suggestions. With a number of other groups, a different format is used, a question is asked, replies are sent directly to the person asking the question and this person then summarises for the groups benefit. I'm not too certain about this... Are you *really* sure the *full* content will come back to the list in general? Will *everybody* quote Ray Wurlod in full? Many's the tid-bit found in Ray's responses.. grin This has couple of immediate advantages : 1) stops arguments on the relative benefits of a GOTO over a LOOP for the 53rd time. (30 replies on the last one). I'm not too sure how you (a) stop the troublemakers mentioning it, or (b) stop the anti-GOTO zealots for throwing their hats in the ring.. but zealots being zealots, they all have to respond.. We all know, even those newly-list-joined, about the ongoing stirring about GOTO's and the zealots' responses. 2) stops multiple answers clogging bandwidth of everybody on the list. eg. being told how to MAT var = '' 9 times. OK, we've had an enormous result to MAT var = '' this morning, but is that simply because it was an easy one? Many list users get their mail delivered to their desk immediately. Others have to go out to get it periodically from whereever. The immediate receivers really have no way of knowing if, as yet, anybody else has responded. I was in the process of answering this very question myself this morning - there being no apparent answers provided at that point, but a phone call disrupted the response, and by the time I got back to it about 15 to 20 minutes later, there were an easy half-dozen responses. So, I cancelled my response.I'm not too sure how you can control the time delay. An list administrator available 24/7 is probably the only way. Charles? People need to also have a little more discipline and perhaps utilise the community list when appropriate. I choose not to subscribe so am not aware if it gets much of a hammering but perhaps it could do with a little more. This format provides that discipline. I am aware there useful posts and the responses can be very helpful but we could also promote the use and searching of the archives prior to posting. Have you *really* tried finding something/anything on infocus? Most times, to me, the indexing is a bit off . This would trim down a number of the duplicate posts. I feel these simple measures would cut down considerably on duplicate and unnecessary traffic. Donning asbestos underpants now. Regards David Logan Database Administrator HP Managed Services 148 Frome Street, Adelaide 5000 Australia +61 8 8408 4273 - Work +61 417 268 665 - Mobile +61 8 8408 4259 - Fax --- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/ -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.290 / Virus Database: 265.6.2 - Release Date: 20/12/04 -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.290 / Virus Database: 265.6.2 -
RE: [U2] The list format and usefulness
Goo'day, again, David, At 15:13 21/12/04 +1100, you wrote: Hi Bruce, Do you really want the full content or do you want the answer? I don't disagree about Ray W's postings however it stops all the out of office messages along with a large number of tit for tat postings. Is filtering out the OOO's Out of Office (as I do) too hard? The tit-for-tats just get deleted without reading once I get sick of the thread of 'em If the zealots wish to continue, they can do it in private. They get deleted-without-reading, too. Then I write some more code with a few GOTOs, or GOs if I'm *really* peeved, just to make myself feel better grin The list manager used by other lists has a reply-to of the person posting the message. Personally, I'm a bit sick of the arguments. Some folks think it is funny but it ties up an inordinate amount of bandwidth. Your point about the immediate receivers is not really valid. Oh! I thought it was extremely valid, especially to those of us with lazy email . Why does everybodys reply have to go to everybody on the list? 'Cos then, them wot's wrong or under some misaprehension get told early enough by the rest of the list and *this* can then spark another conversation and *this* can be more meaningful and useful, at least to me Multiply the answers this morning by the number of subscribers times the length of each message and the bandwidth consumed becomes quite large. Is this a cost?12 emails times 700 subscribers in the time that how many zillion other emails were propagated. They can be so easily ignored, once *you* realize that *you're* finished with them I have seen recently, last week, in fact, an instance where it took a number of disparate replies to one poster before he saw the light. If nobody else on the list was able to see the responses, and couldn't keep posting additional bits 'n' pieces, Gawd alone knows where that poor bloke'd be by now. The additional bits really *do* have a value I'm not trying to control the delay, just redirect the replies to where they should go ie. the original message poster. It is then up to he/she to compose a reasonable summary and post this to the list. We then only have 2 messages to the list, the question and the answer. In a perfect world.there'd only be difficult and obtuse questions posed, and only Ray Wurlod (UV)and Ken Wallis(UD)'d be able to answer. So, list, listen up!Only ask the hard ones. grin I don't disagree with the INFOCUS indexing however the price is right and I haven't seen any offers of anything better. It is using another sites donated bandwidth (AFAIK). I'm sure gmane or something else also mirrors the list. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.290 / Virus Database: 265.6.2 - Release Date: 20/12/04 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.0.290 / Virus Database: 265.6.2 - Release Date: 20/12/04 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.290 / Virus Database: 265.6.2 - Release Date: 20/12/04 --- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] The list format and usefulness
I agree with Will on this one David. As the former host and CyberSpanker of the list, I am skeptical that these summaries would be posted. After watching the traffic for almost 10 years, I could tell you who would even post a thank you, let alone those blessed souls who would report the final answer, how it worked, and what contribution lead them to it. I could also tell which subscribers and which geographic regions were just taking from the list as a way to try to get out of paying IBM support time and would never even acknowledge the help. Many times the suggestions, while they may not be the answer, lead you into areas you never before considered. Except for the GOTO issue. On that old horse, the Delete Key is your friend. Nobody is ever going to change anyone else's mind. -- Regards, Clif ~~~ W. Clifton Oliver, CCP CLIFTON OLIVER ASSOCIATES Tel: +1 619 460 5678Web: www.oliver.com ~~~ Logan, David (SST - Adelaide) wrote: Hi Will, Yes it does, it requires discipline and also an acknowledgement by the group that we all rely on everybody else. If you don't summarise, how long will it be before nobody bothers to reply? One of the other lists I subscribe to is the sun-managers list and this works well. Everybody knows the rules and realises that everybody can learn from their own experiences. It is rare that the summary isn't posted. My own opinion is that most people do wish to help and most people learn something from that assistance. As a price to pay, a quick summary is quite cheap. Regards David Logan Database Administrator HP Managed Services 148 Frome Street, Adelaide 5000 Australia +61 8 8408 4273 - Work +61 417 268 665 - Mobile +61 8 8408 4259 - Fax -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, 21 December 2004 11:50 AM To: [EMAIL PROTECTED] Subject: Re: [U2] The list format and usefulness In a message dated 12/20/2004 7:40:32 PM Eastern Standard Time, Logan, David (SST - Adelaide) [EMAIL PROTECTED] writes: snip With a number of other groups, a different format is used, a question is asked, replies are sent directly to the person asking the question and this person then summarises for the groups benefit. /snip It's an excellent suggestion David, but doesn't it rely on people actually summarizing ? If they don't then the wisdom of the responders is lost in limbo isn't it? That's the one issue I'd bring up about your idea. Will Johnson Fast Forward Technologies Member of the U2UG Establishing Board --- 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] The list format and usefulness
Full content. A lot of times watching how someone else is thinking is more instructive than what they are thinking. For a problem, an answer is enough. To learn how to solve a class of problems, watching the process that more experienced (or even just different) techs go through is an education worth the noise on the channel. IMO. Clif Logan, David (SST - Adelaide) wrote: Do you really want the full content or do you want the answer? I don't disagree about Ray W's postings however it stops all the out of office messages along with a large number of tit for tat postings. --- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] The list format and usefulness
David, What I do is subscribe to both the list and the digest. That way I can skim and delete the individual messages as they come in (from the list), still have all the content if I need it later (from the digest). To control bandwidth, I have them going to two different names, so I can opt to not pull the e-mail with the separate posts if I don't have time or speed to spare for it. As moderator I can't delete-without-reading, but you could. I know it's not the answer you proposed, but I find it a workable solution. What has me more curious is your comment about the online indexing being insufficient. What would you like to see done differently? - Chuck Info-glut Barouch Clifton Oliver wrote: Full content. A lot of times watching how someone else is thinking is more instructive than what they are thinking. For a problem, an answer is enough. To learn how to solve a class of problems, watching the process that more experienced (or even just different) techs go through is an education worth the noise on the channel. IMO. Clif -- - Charles Barouch (718) 762-3884 x 1 - Key Ally Voice Mail cbarouch - Skype (Free VoIP Phone) [EMAIL PROTECTED] - Consulting services [EMAIL PROTECTED] - News [EMAIL PROTECTED] - U2-Users Moderator [EMAIL PROTECTED]- Zeus Data Integration Mount Olympus, Home of Zeus Data Integration --- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/