RE: [U2] [UV] OpenXMLData error

2006-11-19 Thread gerry-u2ug
Hi ,
I missed the beginning of this thread.
However we were having the problem of XDOMOpen returning -1 with an
empty error message when invoked via a uvcs session .
Our problem turned out to be the SHLIB_PATH environment variable was not
being set.
As I recall this needs to be set during system startup before universe (
or maybe it is uvcs ) is started.

Gerry


 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Lin
Sent: November 19, 2006 1:18 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] [UV] OpenXMLData error

Don Verhagen wrote:
 Jason,

 Unless it's a typo, you quoted the TEST_XML_HANDEL variable in your
OpenXMLData statement

 Should by STATUS = OpenXMLData(TEST_XML_HANDEL,.) not
OpenXMLData(TEST_XML_HANDEL,...)

 Don V

   

Don,

I you read my original posting closely, you will see I have already 
pointed out the quoted xml handle variable as the possible culprit.
The reason I included the quoted variable in my example was because all 
examples I have seen in IBM's Universe docs have them quoted.
I also mentioned if I un-quoted the xml handle variable, I will get a -1

status error code.

Jason
---
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] [UV] OpenXMLData error

2006-11-18 Thread Don Verhagen
Jason,

Unless it's a typo, you quoted the TEST_XML_HANDEL variable in your 
OpenXMLData statement

Should by STATUS = OpenXMLData(TEST_XML_HANDEL,.) not 
OpenXMLData(TEST_XML_HANDEL,...)

Don V


 On 11/17/2006 at 7:11 pm, in message
[EMAIL PROTECTED], [EMAIL PROTECTED] 
wrote:
 Hi guys.
 
 I am doing some testing of receiving XML data into Universe database and I
 and kind of stuck with the OpenXMLData function which keeps returning a
 INVALID.XML.HANDEL error.
 
 Here is what I attempted to do in a BASIC program mostly by following the
 examples in BASIC Extension documentation.
 
 $INCLUDE UNIVERSE.INCLUDE XML.H
 STATUS = PrepareXML(TEST_FILE/TEST.xml, TEST_XML_HANDEL)
 IF STATUS # XML.ERROR THEN
STATUS = OpenXMLData(TEST_XML_HANDEL, XML/TEST_EXTRACT_RULES,
 TEST_XML_DATA)
 END
 
 STATUS returned by OpenXMLData always gives me -2 which is
 XML.INVALID.HANDLE.
 
 All examples I have found for OpenXMLData are passing quoted string for
 the xml handle and I don't know why.  If OpenXMLData depends on a valid
 xml handle created by PrepareXML, I imagine the variable TEXT_XML_HANDEL
 should be passed to OpenXMLData.  However, examples I have seen in
 Universe docs all have the xml handle name quoted.  (Here I am thinking
 the xml handle variable works like a opened file variable).
 If I remove un-quote the xml handle name, STATUS returned will be -1.
 
 
 Does any know anything wrong with my usage of OpenXMLData?
 
 Thanks.
 Jason
 ---
 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] [UV] OpenXMLData error

2006-11-18 Thread Jason Lin

Don Verhagen wrote:

Jason,

Unless it's a typo, you quoted the TEST_XML_HANDEL variable in your 
OpenXMLData statement

Should by STATUS = OpenXMLData(TEST_XML_HANDEL,.) not 
OpenXMLData(TEST_XML_HANDEL,...)

Don V

  


Don,

I you read my original posting closely, you will see I have already 
pointed out the quoted xml handle variable as the possible culprit.
The reason I included the quoted variable in my example was because all 
examples I have seen in IBM's Universe docs have them quoted.
I also mentioned if I un-quoted the xml handle variable, I will get a -1 
status error code.


Jason
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] [UV] OpenXMLData error

2006-11-17 Thread Jason Lin
Hi guys.

I am doing some testing of receiving XML data into Universe database and I
and kind of stuck with the OpenXMLData function which keeps returning a
INVALID.XML.HANDEL error.

Here is what I attempted to do in a BASIC program mostly by following the
examples in BASIC Extension documentation.

$INCLUDE UNIVERSE.INCLUDE XML.H
STATUS = PrepareXML(TEST_FILE/TEST.xml, TEST_XML_HANDEL)
IF STATUS # XML.ERROR THEN
   STATUS = OpenXMLData(TEST_XML_HANDEL, XML/TEST_EXTRACT_RULES,
TEST_XML_DATA)
END

STATUS returned by OpenXMLData always gives me -2 which is
XML.INVALID.HANDLE.

All examples I have found for OpenXMLData are passing quoted string for
the xml handle and I don't know why.  If OpenXMLData depends on a valid
xml handle created by PrepareXML, I imagine the variable TEXT_XML_HANDEL
should be passed to OpenXMLData.  However, examples I have seen in
Universe docs all have the xml handle name quoted.  (Here I am thinking
the xml handle variable works like a opened file variable).
If I remove un-quote the xml handle name, STATUS returned will be -1.


Does any know anything wrong with my usage of OpenXMLData?

Thanks.
Jason
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/