MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can we Read XML file as input from a Stored Procedure

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
aruna_space
Beginner


Joined: 13 Mar 2007
Posts: 15
Topics: 5

PostPosted: Wed Jul 02, 2014 5:30 am    Post subject: Can we Read XML file as input from a Stored Procedure Reply with quote

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
View user's profile Send private message
William Collins
Supermod


Joined: 03 Jun 2012
Posts: 437
Topics: 0

PostPosted: Wed Jul 02, 2014 10:18 am    Post subject: Reply with quote

How big? Greater than 128MB?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Jul 02, 2014 10:55 am    Post subject: Reply with quote

aruna_space,

Please search before posting. Check this link

http://mvsforums.com/helpboards/viewtopic.php?p=14678#14678
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
aruna_space
Beginner


Joined: 13 Mar 2007
Posts: 15
Topics: 5

PostPosted: Wed Jul 09, 2014 8:49 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Jul 09, 2014 11:00 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
aruna_space
Beginner


Joined: 13 Mar 2007
Posts: 15
Topics: 5

PostPosted: Thu Jul 10, 2014 4:21 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Jul 10, 2014 1:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group