Problem:
I need to download a file(using datastage) from the internet using HTTP protocol. Please let me know which stage can be used for this purpose.
eg)
URL: http://news.google.com/news
In the above example, I need to download the data found under the URL to a file on my machine.
Thanks,
HTTP download stage
Moderators: chulett, rschirm, roy
JavaPack is an easy way to do it, assuming you are comfortable using HTTP within Java and then can spend some time building an interface for JavaPack ....I've also heard of people using PERL for this as well from within DataStage, although I haven't done it.......I could be wrong, but I seem to remember this being discussed relative to Java another time...maybe someone has built a class for this already.
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>
-
- Premium Member
- Posts: 301
- Joined: Thu Jul 14, 2005 10:27 am
- Location: Melbourne, Australia
- Contact:
Perhaps something employing the 'wget' command?
For text files you could employ the external source stage with a 'wget {URL}; echo {file}' combination to fetch from the web then echo the file.
For text files you could employ the external source stage with a 'wget {URL}; echo {file}' combination to fetch from the web then echo the file.
<b>John McKeever</b>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>