View previous topic :: View next topic |
Author |
Message |
aruna_space Beginner
Joined: 13 Mar 2007 Posts: 15 Topics: 5
|
Posted: Wed Jul 02, 2014 5:30 am Post subject: Can we Read XML file as input from a Stored Procedure |
|
|
Hi,
We have a very BIG data which needs to be processed in Stored Procedure, which is not sufficient to pass in Linkage section as PARM value. So it comes in as XML file.
Can we process the XML file through Stored Procedure.
I understand we can use XML parse in case of normal COBOL program but for a Stored Procedure, i am not sure how to give the XML file as input and READ.
Kindly Advise,
Aruna. |
|
Back to top |
|
|
William Collins Supermod
Joined: 03 Jun 2012 Posts: 437 Topics: 0
|
Posted: Wed Jul 02, 2014 10:18 am Post subject: |
|
|
How big? Greater than 128MB? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
aruna_space Beginner
Joined: 13 Mar 2007 Posts: 15 Topics: 5
|
Posted: Wed Jul 09, 2014 8:49 am Post subject: |
|
|
Hi,
I found a way to CREATE a table with XML data with the help of the link given.
But still, the data i am gettin in XML format is around 90,700 bytes. I need to recieve it as input through Stored Procedure.
So i have 2 problems:
1. Recieving Big data inside Stored Procedure
2. INSERTing into XML field in XML table
My Input will be something like this.
Code: |
CALL xxxxx('10|<TEST>Hello</TEST>')
|
First parameter 10 - ID
Second Parameter <TEST>Hello</TEST> - XML document
I need to INSERT these values into a Table.
I have created a table with XML data. Code: |
CREATE TABLE ORDER (
ID INTEGER
,ORDERNIFO XML)
|
Please advise on the same.
Thanks,
Aruna. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Jul 09, 2014 11:00 am Post subject: |
|
|
aruna_space wrote: | Hi,
I found a way to CREATE a table with XML data with the help of the link given.
But still, the data i am gettin in XML format is around 90,700 bytes. I need to recieve it as input through Stored Procedure.
So i have 2 problems:
1. Recieving Big data inside Stored Procedure
2. INSERTing into XML field in XML table
|
aruna_space,
So now reading the file via stored procedure is ruled out? |
|
Back to top |
|
|
aruna_space Beginner
Joined: 13 Mar 2007 Posts: 15 Topics: 5
|
Posted: Thu Jul 10, 2014 4:21 am Post subject: |
|
|
Hi Kolusu,
I still Need to recieve XML input into the Stored Procedure through Call string.
Need to read the XML data from Call String and INSERT it into the table that is created.
Thanks,
Aruna. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Jul 10, 2014 1:03 pm Post subject: |
|
|
aruna_space,
I am confused now, I thought you defined the xml file to the SPAS and you should be reading it like any other sequential file. I thought that was the original question.
Why do you need the CALL statement? _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
|
|