Page 1 of 1

XML or JSON Data as input

Posted: Mon Sep 25, 2017 7:44 pm
by vintipa
Hi Experts,

Our team has a new requirement. We need to read XML or JSON data from the source system. They may not be able to provide physical files. Is this supported by default in datastage or we need to install any 3rd pary/premium components to read data.

Please pardon my lack of knowledge on this as I am really new to XML and JSON technology. Hope you understand my requirement.

Thanks in advance.

Re: XML or JSON Data as input

Posted: Mon Sep 25, 2017 8:11 pm
by chulett
vintipa wrote:They may not be able to provide physical files.
Can you expand on this a bit? They are generally delivered as physical files, are you looking at some kind of streaming or real-time source?

And yes, you can process either out of the box with DataStage but it will be a rocky road without any knowledge of them...

Posted: Mon Sep 25, 2017 9:23 pm
by vintipa
Hi Craig,

Yes, currently source system wants us to connect to it real time. So do we need to install anything like a message broker or drivers for XML/JSON?
This is the information I currently have and may need assistance in asking the right question back to the source system to proceed.

Once it is clear we can do it from DataStage, I will gather detailed information to do the setup.
Thanks for the prompt responses.

Posted: Tue Sep 26, 2017 3:55 am
by eostic
Just ask them directly.... JSON or XML, in the end, is just "text" data...a chunk of it in a purposely formatted structure that makes it easy for the software to process or for humans to read.

It may be in a file, or come over in a message queue (kafka? jms? mqSeries? something else?) ....or via a web services call (REST? SOAP? simple HTTP?)? ....it could also just be stored as a big variable character column in a database.

Just ask the person "where is it coming from"? ...what technology is being used to send it or obtain it? What "protocol"?

We can help from there with how to do it in DataStage....

Ernie

Posted: Tue Sep 26, 2017 7:38 am
by PaulVL
Read the PDF on the Hierchial stage. You can connect to their host and REST API acquire their data and parse it out.

But do read the manual first.

Nested arrays can be tricky.