Hi All,
I have a scenerio not sure if it is possible with DataStage.
I have a webpage URL address which contains records that I need to read and process. Is there a way we can read these records. I read about external source stage but not sure if it works with this.
The webpage would have that looks like
c1 c2 c3 c4
100 10 200 20
300 30 400 40
500 50 600 60
Once I read this webpage i need to convert columns into rows using a pivot stage and generate a flat file with the data given below
c1 c2
100 10
200 20
300 30
400 40
500 50
600 60
Any input appreciated. Thanks
Devi
Read a webpage data
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 247
- Joined: Thu Apr 27, 2006 6:38 am
- Location: Hyderabad
If the site hosts a web service that could deliver that data, then yes. Otherwise (AFAIK) you'd need to find some other way to retrieve that and either leverage it via an External Source stage or just land the data and process it from there like 'normal'.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
I haven't done it myself, but have talked with folks who have used JavaPack to do it, since java has fairly common libraries for http work...and at least one time heard that someone wrappered a perl script that did it, as perl (apparently?) has decent functions for http activity.
Ernie
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
-
- Participant
- Posts: 247
- Joined: Thu Apr 27, 2006 6:38 am
- Location: Hyderabad