Re: [U2] UOJ and value-mark and field-mark
Jeff: Could you post the UOJ code segment to do the counting work for your example here? I want to try them in my environemnt to see the difference. Thanks! Jeff Powell wrote: Sorry I meant to type LANG=en_US.iso886915. This is a known limitation I learned of in IBM's UOJ class. Note the difference below. In this sample Attribute 136 is MV with 8 @VM marks as viewed in screen edit. Default: LANG=en_US.utf8 [EMAIL PROTECTED] uojCounter]$ java -jar dist/uojCounter.jar UniString: 273 UniDynArray:273 UniString: F136 1 UniDynArray: F136 1 [EMAIL PROTECTED] uojCounter]$ LANG=en_US.iso885915 java -jar dist/uojCounter.jar UniString: 218 UniDynArray:218 UniString: F136 1 UniDynArray: F136 9 On Mon, 2008-06-09 at 23:05 -0700, waivic wrote: Jeff, I try your suggestion: export LANG=iso885915. It doesn't look like working neither. It has the same effect with LANG variable set to C. Any other suggestion? Jeff Powell wrote: Try setting yourLANG variable before executing your program. export LANG=iso885915 This is a Linux only problem with UOJ. It is the same for java apps and servlets. On Mon, 2008-06-02 at 16:17 -0700, waivic wrote: I have a very simple file-TESTS, which only has 4 fields: @ID field, F1, F2 and F3. F1 is a single value field, F2 is a multi-value field and the value is one value-mark-separated list, F3 is a single value field. It has the following sample record in the file: Field Name Value @ID t101 F1 F1V1 F2 F2V1:@VM:F2V2 F3 F3V1 I use the following UniObject for Java code segment to retrieve the record t101 from the file: //uSession is a UniSession Oject uSession.connect(); //Open a file variable to TESTS file. UniFile testFile = uSession.open(TESTS); //Read the record out String key = t101; UniStirng uString = personFile.read(key); System.out.println(bthe full record:b+uString); System.out.println(bthe number of fields in the file:b +uString.dcount()); When I print out the contents of the record, it looks like UOJ converts all the value marks at the field F2 into the field mark. When I use dcount() function to count the number of fields in the output, it returns 5, instead of 4. I think the correct result should be 4 since only 4 fields (@ID field, F1, F2 and F3) in the file. It seems that read() function converts all the value-marks into the field-marks. So the values at the field-F2: F2V1:@VM:F2V2 becomes F2:@FM:F2V2. That is why I got 5 instead of 4 when we use dcount() to count the number of fields in the output. We are running Unidata 7.1 in Red hat Linux server. I already set the environment variable LANG to bCb. I even tried to set LANG to ben_USb. Both times, the UOJ program returned the same result. Does anyone know how this happens? I want to keep the original value-marks and field-marks after using read() function. Please advice. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- View this message in context: http://www.nabble.com/UOJ-and-value-mark-and-field-mark-tp17612976p17770929.html Sent from the U2 - Users mailing list archive at Nabble.com. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] New .Net data provider (Vista)
Hi Brian Have you been able to load the new .Net data provider on Vista. IBM tells us we need to load SP1, but this just crashes on Vista and IBM has not been able to duplicate, even though another client in the UK is having the same problem. Regards David Jordan --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[Fwd: Re: [U2] UOJ and value-mark and field-mark]
Here is the main class. I use a wrapper class similar to the one you created to provide access to the UOJ library. My environments are RHEL 4.5, Fedora 8, Fedora 9 using console, desktop application, tomcat and glassfish. I use Netbeans as my development environment. I hope this helps. package uojcounter; import asjava.uniclientlibs.UniDynArray; import asjava.uniclientlibs.UniString; import com.ips.controller.unidata; /** * * @author jpowell */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { unidata ud=new unidata(your_unidata_server,your_ud_account,joe_user,joes_password); o;?// opens file and keeps reference in a map key=filename, value=unifile ud.newFile(ORDER.LINE); // Write a new record //UniDynArray test=new UniDynArray(); //test.replace(1, 1, F1.1); //test.replace(1, 2, F1.2); //test.replace(2, F2); //test.replace(3, F3); //ud.Write(TEST!REC, test, MTR.IPS); // read from the file UniString str=ud.Read(100T0154145!29, ORDER.LINE); UniDynArray udr=ud.Read(100T0154145!29, ORDER.LINE); System.out.println(UniString: +str.dcount()); System.out.println(UniDynArray:+udr.dcount() ); System.out.println(UniString: F136 +str.dcount(136)); System.out.println(UniDynArray: F1326 +udr.dcount(136) ); ud.CloseFiles(); ud.disconnect(); // TODO code application logic here } } --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] Error Opening HOLD file
We seem to have a sporatic issue with some of our nightly jobs. They run for months at a time then all of a sudden, for 3 or 4 days in a row we start to see the following error *PRINT.ONE.SEE.ATTACHED: Line 555, Cannot open file HOLD. Job seem to just fail because it can not open the HOLD file. Its more than just this one job, it happens to many jobs. So I suspect is some kind of issue with the HOLD file and not the job it's self. Has anyone else seen this before? Is there a max number of entries that can be in the HOLD file at one time? Thanks in advance. Henry. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] UniSubroutine question
I am working on accessing Unidata from PHP. Installed the PHP Java Bridge on Linux and have simple validation routines working. Ready to start acquiring datasets from the Unidata server. Based on past discussions I plan to write UniBasic subroutines for the bulk of the work. The Uniobjects for Java Developer's Guide describes how to make the call from Java usingUniSubroutine objects and how to get the result. I have a question. What is the syntax in the UniBasic subroutine to return a dataset? Charles Shaffer Senior Analyst NTN-Bower Corporation --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] Error Opening HOLD file
Hi Henry, *PRINT.ONE.SEE.ATTACHED: Line 555, Cannot open file HOLD. These sort of problems are usually related to access rights. One user creates the item and then another user tries to overwrite it but find the access rights don't allow it. Martin Phillips Ladybridge Systems Ltd 17b Coldstream Lane, Hardingstone, Northampton, NN4 6DB +44-(0)1604-709200 --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
{Blocked Content} RE: [U2] Error Opening HOLD file
Warning: This message has had one or more attachments removed Warning: (not named). Warning: Please read the AngelicHost-Attachment-Warning.txt attachment(s) for more information. Henry, What os are you running? Have you checked the size of your filesystem? From: [EMAIL PROTECTED] on behalf of Martel, Henry Sent: Wed 6/11/2008 10:03 AM To: u2-users@listserver.u2ug.org Subject: [U2] Error Opening HOLD file We seem to have a sporatic issue with some of our nightly jobs. They run for months at a time then all of a sudden, for 3 or 4 days in a row we start to see the following error *PRINT.ONE.SEE.ATTACHED: Line 555, Cannot open file HOLD. Job seem to just fail because it can not open the HOLD file. Its more than just this one job, it happens to many jobs. So I suspect is some kind of issue with the HOLD file and not the job it's self. Has anyone else seen this before? Is there a max number of entries that can be in the HOLD file at one time? Thanks in advance. Henry. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ Access Manager: This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this e-mail or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this e-mail in error, please immediately notify us by calling the Help Desk at (212) 999-9911 or email us at [EMAIL PROTECTED] This is a message from the MailScanner E-Mail Virus Protection Service -- The original e-mail attachment winmail.dat was believed to be infected by a virus and has been replaced by this warning message. If you wish to receive a copy of the *infected* attachment, please e-mail helpdesk and include the whole of this message in your request. Alternatively, you can call them, with the contents of this message to hand when you call. At Wed Jun 11 08:24:52 2008 the virus scanner said: Could not parse Outlook Rich Text attachment Note to Help Desk: Look on the AngelicHost MailScanner in /home/virtual/site2/fst/var/spool/mail.quarantine/20080611 (message m5BFOgpv006417). -- Postmaster --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] Error Opening HOLD file
If your HOLD file is a type 1 or 19 file it is a directory file and subject to the maximum number of files (records) that can be put into a directory on your operating system. If the HOLD file is a static hashed file, which it is probably not, then it would be limited to a maximum of 2 GB on a 32 bit operating system. More than likely this is a symptom of the maximum number of files you have open. Jerry Banker Senior Programmer Analyst IBM Certified Solutions Expert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martel, Henry Sent: Wednesday, June 11, 2008 9:04 AM To: u2-users@listserver.u2ug.org Subject: [U2] Error Opening HOLD file We seem to have a sporatic issue with some of our nightly jobs. They run for months at a time then all of a sudden, for 3 or 4 days in a row we start to see the following error *PRINT.ONE.SEE.ATTACHED: Line 555, Cannot open file HOLD. Job seem to just fail because it can not open the HOLD file. Its more than just this one job, it happens to many jobs. So I suspect is some kind of issue with the HOLD file and not the job it's self. Has anyone else seen this before? Is there a max number of entries that can be in the HOLD file at one time? Thanks in advance. Henry. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] File pointer question
If UniData, you may have overwritten the VOC entry in your VOC file. Try looking at the VOC item using the lowercase voc entry to see if that sheds any light. AE voc VOC Wally Terhune Mark your U2 Support Architectcalendar! IBM Information Management Software Tel: (303) 773-7969 T/L 656-7969 Mobile: (303) 807-6222 Email: [EMAIL PROTECTED] http://www.ibm.com/software/data/u2/support From: T Stokes [EMAIL PROTECTED] To: u2-users@listserver.u2ug.org Date: 06/11/2008 05:28 PM Subject:[U2] File pointer question I have a file that is a F pointer in the VOC yet when a BASIC STATUS is ran on the file it points to a file in another account. Have not been able to locate the reason for this. I am sure it is something simple. The VOC entry look like this F FILENAME D_FILENAME The results from STATUS looks like this D:\directory other than the directory I am current located\FILENAME -- View this message in context: http://www.nabble.com/File-pointer-question-tp17788496p17788496.html Sent from the U2 - Users mailing list archive at Nabble.com. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ [demime 1.01d removed an attachment of type image/jpeg which had a name of 26849515.jpg] [demime 1.01d removed an attachment of type image/gif which had a name of graycol.gif] [demime 1.01d removed an attachment of type image/gif which had a name of ecblank.gif] --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] UniSubroutine question
You want a subroutine to return a SQL compliant dataset? On Wed, Jun 11, 2008 at 8:05 AM, [EMAIL PROTECTED] wrote: I am working on accessing Unidata from PHP. Installed the PHP Java Bridge on Linux and have simple validation routines working. Ready to start acquiring datasets from the Unidata server. Based on past discussions I plan to write UniBasic subroutines for the bulk of the work. The Uniobjects for Java Developer's Guide describes how to make the call from Java usingUniSubroutine objects and how to get the result. I have a question. What is the syntax in the UniBasic subroutine to return a dataset? Charles Shaffer Senior Analyst NTN-Bower Corporation --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- -Kevin http://www.PrecisOnline.com --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/