Re: [U2] Using PHP
... And I've found when teaching UniVerse Basic to died-in-the-wool .Net and C programmers, who tend to comment at the lack of variable declaration or strong typing and the idea that it's an interpreted language, the words 'just like PHP' tends to have a calming effect ... grin I just wish IBM would officially publish the UO protocol so it could be emulated in PHP. The problem with the other approaches, excluding web services, is that you need to install specific modules rather than using PHP code. Which then makes that module platform dependent and you may not have the rights to install it on a hosted system. Whereas writing a UO client in pure PHP would make it fully cross platform and no installation hassles. Brian ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
[U2] ESC in Unidata
Please can you tell me the meaning of the following Unidata statement. PRINT ESC:*p170x:ROW:Y:BODYLINE ; What is the significance/use of keyword ESC? -- View this message in context: http://www.nabble.com/ESC-in-Unidata-tp24755334p24755334.html Sent from the U2 - Users mailing list archive at Nabble.com. ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] ESC in Unidata
It is probably the escape key, ascii 27. This syntax usually is telling a terminal (emulator) or printer to do something special. Each device has its own 'escape sequence' language, as such, that tells it to do different things. The sequence of characters that follow the ESC character are very specific instructions for that particular device. For example, move the cursor to a specific row and column on the screen, or change the characters per inch on the printer to 10. I cannot tell by this code alone what it is trying to do. David Laansma IT Manager Hubbard Supply Co. Direct: 810-342-7143 Office:810-234-8681 Fax: 810-234-6142 www.hubbardsupply.com Delivering Products, Services, and Innovative Solutions -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Vaibhav Patil Sent: Friday, July 31, 2009 8:05 AM To: u2-users@listserver.u2ug.org Subject: [U2] ESC in Unidata Please can you tell me the meaning of the following Unidata statement. PRINT ESC:*p170x:ROW:Y:BODYLINE ; What is the significance/use of keyword ESC? -- View this message in context: http://www.nabble.com/ESC-in-Unidata-tp24755334p24755334.html Sent from the U2 - Users mailing list archive at Nabble.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] ESC in Unidata
BTW, here the ESC variable can be replaced with CHAR(27) This would accomplish the same thing. David Laansma IT Manager Hubbard Supply Co. Direct: 810-342-7143 Office:810-234-8681 Fax: 810-234-6142 www.hubbardsupply.com Delivering Products, Services, and Innovative Solutions -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Vaibhav Patil Sent: Friday, July 31, 2009 8:05 AM To: u2-users@listserver.u2ug.org Subject: [U2] ESC in Unidata Please can you tell me the meaning of the following Unidata statement. PRINT ESC:*p170x:ROW:Y:BODYLINE ; What is the significance/use of keyword ESC? -- View this message in context: http://www.nabble.com/ESC-in-Unidata-tp24755334p24755334.html Sent from the U2 - Users mailing list archive at Nabble.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] ESC in Unidata
If you dig enough, you will find that ESC is defined somewhere as CHAR(27). It may be buried in INCLUDES. John Israel Sr. Programmer/Analyst Dayton Superior Corporation 721 Richard St. Dayton, OH 45342 937-866-0711 x44380 -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Vaibhav Patil Sent: Friday, July 31, 2009 8:05 AM To: u2-users@listserver.u2ug.org Subject: [U2] ESC in Unidata Please can you tell me the meaning of the following Unidata statement. PRINT ESC:*p170x:ROW:Y:BODYLINE ; What is the significance/use of keyword ESC? -- View this message in context: http://www.nabble.com/ESC-in-Unidata-tp24755334p24755334.html Sent from the U2 - Users mailing list archive at Nabble.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] ESC in Unidata
It's a PCL (Laserjet) command for positioning to 170 dots horizontally and ROW dots vertically before printing the line. A subset of the commands available can be found here: http://h2.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpl02705 HTH Drew -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dave Laansma Sent: Friday, July 31, 2009 8:10 AM To: U2 Users List Subject: Re: [U2] ESC in Unidata It is probably the escape key, ascii 27. This syntax usually is telling a terminal (emulator) or printer to do something special. Each device has its own 'escape sequence' language, as such, that tells it to do different things. The sequence of characters that follow the ESC character are very specific instructions for that particular device. For example, move the cursor to a specific row and column on the screen, or change the characters per inch on the printer to 10. I cannot tell by this code alone what it is trying to do. David Laansma IT Manager Hubbard Supply Co. Direct: 810-342-7143 Office:810-234-8681 Fax: 810-234-6142 www.hubbardsupply.com Delivering Products, Services, and Innovative Solutions -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Vaibhav Patil Sent: Friday, July 31, 2009 8:05 AM To: u2-users@listserver.u2ug.org Subject: [U2] ESC in Unidata Please can you tell me the meaning of the following Unidata statement. PRINT ESC:*p170x:ROW:Y:BODYLINE ; What is the significance/use of keyword ESC? -- View this message in context: http://www.nabble.com/ESC-in-Unidata-tp24755334p24755334.html Sent from the U2 - Users mailing list archive at Nabble.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] ESC in Unidata
Perhaps this is part of a barcode? David Laansma IT Manager Hubbard Supply Co. Direct: 810-342-7143 Office:810-234-8681 Fax: 810-234-6142 www.hubbardsupply.com Delivering Products, Services, and Innovative Solutions -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Drew William Henderson Sent: Friday, July 31, 2009 8:23 AM To: U2 Users List Subject: Re: [U2] ESC in Unidata It's a PCL (Laserjet) command for positioning to 170 dots horizontally and ROW dots vertically before printing the line. A subset of the commands available can be found here: http://h2.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=b pl02705 HTH Drew -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dave Laansma Sent: Friday, July 31, 2009 8:10 AM To: U2 Users List Subject: Re: [U2] ESC in Unidata It is probably the escape key, ascii 27. This syntax usually is telling a terminal (emulator) or printer to do something special. Each device has its own 'escape sequence' language, as such, that tells it to do different things. The sequence of characters that follow the ESC character are very specific instructions for that particular device. For example, move the cursor to a specific row and column on the screen, or change the characters per inch on the printer to 10. I cannot tell by this code alone what it is trying to do. David Laansma IT Manager Hubbard Supply Co. Direct: 810-342-7143 Office:810-234-8681 Fax: 810-234-6142 www.hubbardsupply.com Delivering Products, Services, and Innovative Solutions -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Vaibhav Patil Sent: Friday, July 31, 2009 8:05 AM To: u2-users@listserver.u2ug.org Subject: [U2] ESC in Unidata Please can you tell me the meaning of the following Unidata statement. PRINT ESC:*p170x:ROW:Y:BODYLINE ; What is the significance/use of keyword ESC? -- View this message in context: http://www.nabble.com/ESC-in-Unidata-tp24755334p24755334.html Sent from the U2 - Users mailing list archive at Nabble.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] ESC in Unidata
Dave Unlikely - most HPs, Brothers etc support the Epson FX-80 style barcode escape sequences, since these don't clash with anything in PCL. I've just had a merry time adding support for these into mvPDF's PCL parser. Brian -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dave Laansma Sent: 31 July 2009 13:25 To: U2 Users List Subject: Re: [U2] ESC in Unidata Perhaps this is part of a barcode? David Laansma IT Manager Hubbard Supply Co. Direct: 810-342-7143 Office:810-234-8681 Fax: 810-234-6142 www.hubbardsupply.com Delivering Products, Services, and Innovative Solutions -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Drew William Henderson Sent: Friday, July 31, 2009 8:23 AM To: U2 Users List Subject: Re: [U2] ESC in Unidata It's a PCL (Laserjet) command for positioning to 170 dots horizontally and ROW dots vertically before printing the line. A subset of the commands available can be found here: http://h2.www2.hp.com/bizsupport/TechSupport/Document.jsp? objectID=b pl02705 HTH Drew -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dave Laansma Sent: Friday, July 31, 2009 8:10 AM To: U2 Users List Subject: Re: [U2] ESC in Unidata It is probably the escape key, ascii 27. This syntax usually is telling a terminal (emulator) or printer to do something special. Each device has its own 'escape sequence' language, as such, that tells it to do different things. The sequence of characters that follow the ESC character are very specific instructions for that particular device. For example, move the cursor to a specific row and column on the screen, or change the characters per inch on the printer to 10. I cannot tell by this code alone what it is trying to do. David Laansma IT Manager Hubbard Supply Co. Direct: 810-342-7143 Office:810-234-8681 Fax: 810-234-6142 www.hubbardsupply.com Delivering Products, Services, and Innovative Solutions -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Vaibhav Patil Sent: Friday, July 31, 2009 8:05 AM To: u2-users@listserver.u2ug.org Subject: [U2] ESC in Unidata Please can you tell me the meaning of the following Unidata statement. PRINT ESC:*p170x:ROW:Y:BODYLINE ; What is the significance/use of keyword ESC? -- View this message in context: http://www.nabble.com/ESC-in-Unidata-tp24755334p24755334.html Sent from the U2 - Users mailing list archive at Nabble.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 ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] PHP vs Java
|boolean| |*add http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html#add%28E%29*(E http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html e)| Appends the specified element to the end of this list. | void| |*add http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html#add%28int,%20E%29*(int index, E http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html element)| Inserts the specified element at the specified position in this list. Adrian Merrall wrote: Bill, I don't have the javadoc for the dynamic array class provided by uniobjects handy but that may do it. I don't think a simple ArrayList will do it, primarily because it won't have insert capability. Building a dynamic array in java is certainly possible but has some interesting cases to handle. Regards, Adrian On Fri, Jul 31, 2009 at 10:39 AM, Brutzman, Bill bi...@hkmetalcraft.comwrote: Yes... It looks like it would. Thanks Jeff. I will plan to reVisit the Morris County Library to find the textbook that I found the java source code for the method to handle dynamic arrays... and try to determine why ArrayList was not mentioned. --Bill -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Jeff Powell Sent: Thursday, July 30, 2009 6:30 PM To: U2 Users List Subject: Re: [U2] PHP vs Java Wouldn't the ArrayList work? It has add and get methods plus a toArray method. Brutzman, Bill wrote: Thanks to Kevin and Ross for responding. I was surprised to learn that Java does not have built-in functionality to support dynamic arrays although a little method can be written to handle it. The battle inside my head continues... --B -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King Sent: Wednesday, July 29, 2009 9:21 PM To: U2 Users List Subject: Re: [U2] Using PHP To start, I'll echo Ross. PHP is great for sessions and all manners of web-type programming. Unlike Java - an otherwise excellent language which tends to require some complex-ish web server setup - PHP is much more lightweight and plugs into just about any web server quickly and efficiently. The language is purportedly derived from Perl but syntactically I find it closer to the original ANSI C++ with just a touch of Java-isms to keep it friendly. It's easy (dare I say fun?) to learn, easy to read, easy to deploy, and can be very maintainable (though of course individual mileage in this department varies per individual - as with all languages). There are all sorts of frameworks and infrastructures available for PHP but one doesn't have to use anything more than an editor to get started. The documentation is well written (I find it much more understandable than most) and there are plenty of books available with code samples to get one moving in the right direction. PHP can install with lots of different modules from SQL connectors to crypto libraries, ZIP and PDF creators and extractors, and a blindingly large array of other features as well. And if that's not enough there's a whole boatload of other user-contributed libraries available via PEAR. Generally speaking, (well written) PHP code performs very well, it's a reasonably mature language with a good object model (as of PHP5) but where it really shines is in passing data to and through a web server and managing sessions. I've also used it for *nix shell scripting for administration types of things and even had the pleasure of writing a NAGIOS plugin with it. Come to think of it, I've used it for all sorts of ad-hoc data analysis on my Windows box as well when awk was just a little too ... awkward? (pun intended, of course) I've heard PHP is the #2 language in the world behind C++, but I don't know definitively that's entirely reliable. That said, it does seem like it's gaining momentum because it's so flexible and pervasive. The fact that it can be used beyond the web and on nearly every platform imaginable without additional hardware or software, well, that has to account for something. The only downside to PHP in terms of U2 is that IBM has so far refused to create any kind of native connector. The UO connector works but it requires something of a walk on the wild side to mitigate some weirdness in the dynamic array extraction methods. Yeah, there's that TechConnect article which describes rolling your own, but even I'm not THAT geeky. Finally, FREE is always a good price, especially when you get so much with PHP. -K ___ 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] Using PHP
That would be cool. Could PHP keep a persistent connection to a UniData server? One of my reasons for using Java is that I can eliminate the connection time overhead by keeping the the connection and key files open and available to all incoming HTTP requests. Brian Leach wrote: ... And I've found when teaching UniVerse Basic to died-in-the-wool .Net and C programmers, who tend to comment at the lack of variable declaration or strong typing and the idea that it's an interpreted language, the words 'just like PHP' tends to have a calming effect ... grin I just wish IBM would officially publish the UO protocol so it could be emulated in PHP. The problem with the other approaches, excluding web services, is that you need to install specific modules rather than using PHP code. Which then makes that module platform dependent and you may not have the rights to install it on a hosted system. Whereas writing a UO client in pure PHP would make it fully cross platform and no installation hassles. Brian ___ 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] PHP vs Java
Here is sun's javadoc for Java 6. http://java.sun.com/javase/6/docs/api/ I'm not advocating one platform over the other since I use both myself. PHP certainly has a place for rapid application development. I have however done extensive work with web-services that connect to UniData via UniObjects for java. One application that is in use in our warehouse uses JSON, reflection and webservices to create an interactive web picker tool with real time validation of the material codes entered by the picker. Brutzman, Bill wrote: Yes... It looks like it would. Thanks Jeff. I will plan to reVisit the Morris County Library to find the textbook that I found the java source code for the method to handle dynamic arrays... and try to determine why ArrayList was not mentioned. --Bill -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Jeff Powell Sent: Thursday, July 30, 2009 6:30 PM To: U2 Users List Subject: Re: [U2] PHP vs Java Wouldn't the ArrayList work? It has add and get methods plus a toArray method. Brutzman, Bill wrote: Thanks to Kevin and Ross for responding. I was surprised to learn that Java does not have built-in functionality to support dynamic arrays although a little method can be written to handle it. The battle inside my head continues... --B -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King Sent: Wednesday, July 29, 2009 9:21 PM To: U2 Users List Subject: Re: [U2] Using PHP To start, I'll echo Ross. PHP is great for sessions and all manners of web-type programming. Unlike Java - an otherwise excellent language which tends to require some complex-ish web server setup - PHP is much more lightweight and plugs into just about any web server quickly and efficiently. The language is purportedly derived from Perl but syntactically I find it closer to the original ANSI C++ with just a touch of Java-isms to keep it friendly. It's easy (dare I say fun?) to learn, easy to read, easy to deploy, and can be very maintainable (though of course individual mileage in this department varies per individual - as with all languages). There are all sorts of frameworks and infrastructures available for PHP but one doesn't have to use anything more than an editor to get started. The documentation is well written (I find it much more understandable than most) and there are plenty of books available with code samples to get one moving in the right direction. PHP can install with lots of different modules from SQL connectors to crypto libraries, ZIP and PDF creators and extractors, and a blindingly large array of other features as well. And if that's not enough there's a whole boatload of other user-contributed libraries available via PEAR. Generally speaking, (well written) PHP code performs very well, it's a reasonably mature language with a good object model (as of PHP5) but where it really shines is in passing data to and through a web server and managing sessions. I've also used it for *nix shell scripting for administration types of things and even had the pleasure of writing a NAGIOS plugin with it. Come to think of it, I've used it for all sorts of ad-hoc data analysis on my Windows box as well when awk was just a little too ... awkward? (pun intended, of course) I've heard PHP is the #2 language in the world behind C++, but I don't know definitively that's entirely reliable. That said, it does seem like it's gaining momentum because it's so flexible and pervasive. The fact that it can be used beyond the web and on nearly every platform imaginable without additional hardware or software, well, that has to account for something. The only downside to PHP in terms of U2 is that IBM has so far refused to create any kind of native connector. The UO connector works but it requires something of a walk on the wild side to mitigate some weirdness in the dynamic array extraction methods. Yeah, there's that TechConnect article which describes rolling your own, but even I'm not THAT geeky. Finally, FREE is always a good price, especially when you get so much with PHP. -K ___ 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] Using PHP
Make sure you are on the right side of the licensing if you are doing that! You cannot 'multiplex' a standard UniData seat - you have to acquire a ConnectionPool or a ClientConnectionPool license. -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Jeff Powell Sent: Friday, July 31, 2009 10:06 AM To: U2 Users List Subject: Re: [U2] Using PHP That would be cool. Could PHP keep a persistent connection to a UniData server? One of my reasons for using Java is that I can eliminate the connection time overhead by keeping the the connection and key files open and available to all incoming HTTP requests. Brian Leach wrote: ... And I've found when teaching UniVerse Basic to died-in-the-wool .Net and C programmers, who tend to comment at the lack of variable declaration or strong typing and the idea that it's an interpreted language, the words 'just like PHP' tends to have a calming effect ... grin I just wish IBM would officially publish the UO protocol so it could be emulated in PHP. The problem with the other approaches, excluding web services, is that you need to install specific modules rather than using PHP code. Which then makes that module platform dependent and you may not have the rights to install it on a hosted system. Whereas writing a UO client in pure PHP would make it fully cross platform and no installation hassles. Brian ___ 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] PHP vs Java
-Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brutzman, Bill Sent: Thursday, July 30, 2009 2:59 PM To: U2 Users List Subject: Re: [U2] PHP vs Java Thanks to Kevin and Ross for responding. I was surprised to learn that Java does not have built-in functionality to support dynamic arrays although a little method can be written to handle it. The battle inside my head continues... --B The UOJ UniDynArray object and methods will let you pass dynamic arrays between Java applications and UniBASIC programs as a subroutine argument, but you can also use them independently of any U2 subroutine calls. We use them extensively. They have essentially the same functionality in Java as in UniBASIC. From the UOJ manual: The following table describes the UniDynArray methods. Primary Methods count ( ) dcount ( ) delete ( ) extract ( ) insert ( ) length ( ) remove ( ) replace ( ) toString ( ) Just include the UOJ asjava.zip library in your application. -John ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] PHP vs Java
Question to those who have used the UOJ connector... Is extract as stupid in Java as it is in PHP? With PHP you can't use this to extract an attribute to a local variable and then loop through the mv's like you would in BASIC. Every freakin' routine that wants to get a multivalue has to use Field(n) to get the attribute number first, then Field(m) for the value, and that's a RPITA. I've taken to parsing delimiters and using explode() in PHP to break things up by delimiter and convert the entire dynamic array to a first class PHP array; otherwise everything just gets too long and ugly. Does UOJ have this kind of thing as well? On Fri, Jul 31, 2009 at 12:06 PM, John Hester jhes...@momtex.com wrote: -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brutzman, Bill Sent: Thursday, July 30, 2009 2:59 PM To: U2 Users List Subject: Re: [U2] PHP vs Java Thanks to Kevin and Ross for responding. I was surprised to learn that Java does not have built-in functionality to support dynamic arrays although a little method can be written to handle it. The battle inside my head continues... --B The UOJ UniDynArray object and methods will let you pass dynamic arrays between Java applications and UniBASIC programs as a subroutine argument, but you can also use them independently of any U2 subroutine calls. We use them extensively. They have essentially the same functionality in Java as in UniBASIC. From the UOJ manual: The following table describes the UniDynArray methods. Primary Methods count ( ) dcount ( ) delete ( ) extract ( ) insert ( ) length ( ) remove ( ) replace ( ) toString ( ) Just include the UOJ asjava.zip library in your application. -John ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users -- -Kevin http://www.PrecisOnline.com ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] PHP vs Java
Kevin, You can extract to another unidynarray and then work through the values locally. Kevin King wrote: Question to those who have used the UOJ connector... Is extract as stupid in Java as it is in PHP? With PHP you can't use this to extract an attribute to a local variable and then loop through the mv's like you would in BASIC. Every freakin' routine that wants to get a multivalue has to use Field(n) to get the attribute number first, then Field(m) for the value, and that's a RPITA. I've taken to parsing delimiters and using explode() in PHP to break things up by delimiter and convert the entire dynamic array to a first class PHP array; otherwise everything just gets too long and ugly. Does UOJ have this kind of thing as well? On Fri, Jul 31, 2009 at 12:06 PM, John Hester jhes...@momtex.com wrote: -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brutzman, Bill Sent: Thursday, July 30, 2009 2:59 PM To: U2 Users List Subject: Re: [U2] PHP vs Java Thanks to Kevin and Ross for responding. I was surprised to learn that Java does not have built-in functionality to support dynamic arrays although a little method can be written to handle it. The battle inside my head continues... --B The UOJ UniDynArray object and methods will let you pass dynamic arrays between Java applications and UniBASIC programs as a subroutine argument, but you can also use them independently of any U2 subroutine calls. We use them extensively. They have essentially the same functionality in Java as in UniBASIC. From the UOJ manual: The following table describes the UniDynArray methods. Primary Methods count ( ) dcount ( ) delete ( ) extract ( ) insert ( ) length ( ) remove ( ) replace ( ) toString ( ) Just include the UOJ asjava.zip library in your application. -John ___ 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] PHP vs Java
In PHP you can't. If you extract something with Field(n) it appears the whole record goes to the other unidynarray. You still have to use Field(a)-Field(v)-... to get to a specific something even after the assignment. THAT is my biggest beef with this, but fortunately the explode solution works; otherwise I wouldn't even consider recommending PHP with UO. On Fri, Jul 31, 2009 at 1:09 PM, Jeff Powell j...@powellclan.com wrote: Kevin, You can extract to another unidynarray and then work through the values locally. Kevin King wrote: Question to those who have used the UOJ connector... Is extract as stupid in Java as it is in PHP? With PHP you can't use this to extract an attribute to a local variable and then loop through the mv's like you would in BASIC. Every freakin' routine that wants to get a multivalue has to use Field(n) to get the attribute number first, then Field(m) for the value, and that's a RPITA. I've taken to parsing delimiters and using explode() in PHP to break things up by delimiter and convert the entire dynamic array to a first class PHP array; otherwise everything just gets too long and ugly. Does UOJ have this kind of thing as well? On Fri, Jul 31, 2009 at 12:06 PM, John Hester jhes...@momtex.com wrote: -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brutzman, Bill Sent: Thursday, July 30, 2009 2:59 PM To: U2 Users List Subject: Re: [U2] PHP vs Java Thanks to Kevin and Ross for responding. I was surprised to learn that Java does not have built-in functionality to support dynamic arrays although a little method can be written to handle it. The battle inside my head continues... --B The UOJ UniDynArray object and methods will let you pass dynamic arrays between Java applications and UniBASIC programs as a subroutine argument, but you can also use them independently of any U2 subroutine calls. We use them extensively. They have essentially the same functionality in Java as in UniBASIC. From the UOJ manual: The following table describes the UniDynArray methods. Primary Methods count ( ) dcount ( ) delete ( ) extract ( ) insert ( ) length ( ) remove ( ) replace ( ) toString ( ) Just include the UOJ asjava.zip library in your application. -John ___ 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 -- -Kevin http://www.PrecisOnline.com ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
[U2] Haydon Bishop is out of the office.
I will be out of the office starting 31/07/2009 and will not return until 17/08/2009. I will respond to your message when I return. ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
[U2] UniData File Upgrade
We are migrating from UniData 6.0.4 to UniData 7.2.1. Can we do a simple UNIX cp from the old box to the new box, or have the guts of the UniData files changed in some minor way? Thus far, it looks like it will work, but I don't want to be a month into a LIVE deployment and find there is some subtle difference that we missed. John Israel Sr. Programmer/Analyst Dayton Superior Corporation 721 Richard St. Dayton, OH 45342 937-866-0711 x44380 ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] PHP vs Java
There's also something to be said for writing a common method to handle these things. Do it once, use your own methods, and forget about it needs to be handled internally. T You still have to use Field(a)-Field(v)--users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] UniData File Upgrade
Guess it might be a good idea to rebuild all index's. Do you have a var doing the upgrade or an IBM rep? The docs probably address this. Israel, John R. wrote: We are migrating from UniData 6.0.4 to UniData 7.2.1. Can we do a simple UNIX cp from the old box to the new box, or have the guts of the UniData files changed in some minor way? Thus far, it looks like it will work, but I don't want to be a month into a LIVE deployment and find there is some subtle difference that we missed. John Israel Sr. Programmer/Analyst Dayton Superior Corporation 721 Richard St. Dayton, OH 45342 937-866-0711 x44380 ___ 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] [BB] U2 Enhancement Request - WRITE
All, I see that there has been some discussion regarding setting up the EDA Tool. We are having trouble setting up an EDA Data Source. When we test our connection we get the following message stating that the 'Save Data Source Failed' (Could not write data source TEST on server xxx1000.ctc.com. Error message: Failed to write TEST to EDA_DATASOURCE) Can anyone either suggest how to resolve this error or direct us to someone that could? Any help in this area would be greatly appreciated. Thanks, Greg -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of John Jenkins Sent: Tuesday, May 29, 2007 2:35 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] [BB] U2 Enhancement Request - WRITE And of course: If you are using EDA to select/read/write/insert/update (sapristi spon: shades of ACLs) data in a U2 file which is *actually* physically resident in an external database (such as DV2/Oracle/SQL Server/etc...) then you can get a failure on any combination of those commands (as implemented by SQL table permissions). So: if you are using EDA (External Database Access) then an error can occur on any file operation due to external permissions (including CREATE.FILE or DELETE.FILE or CNAME). ON.ERROR and STATUS() are absolutely essential on that situation. Regards JayJay --- 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 http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] UniData File Upgrade
Probably not necessary, but it wouldn't hurt to run convdata against the files after they've been moved to the new system. If your structure isn't complicated this can be as easy as cding to each UniData directory and running convdata *. HTH, Jeff Fitzgerald Fitzgerald Long, Inc. www.fitzlong.com On 7/31/09 2:14 PM, Israel, John R. johnisr...@daytonsuperior.com wrote: We are migrating from UniData 6.0.4 to UniData 7.2.1. Can we do a simple UNIX cp from the old box to the new box, or have the guts of the UniData files changed in some minor way? Thus far, it looks like it will work, but I don't want to be a month into a LIVE deployment and find there is some subtle difference that we missed. John Israel Sr. Programmer/Analyst Dayton Superior Corporation 721 Richard St. Dayton, OH 45342 937-866-0711 x44380 ___ 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