HTTP download stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
AugusRD
Participant
Posts: 5
Joined: Mon Nov 09, 2009 9:57 am

HTTP download stage

Post by AugusRD »

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,
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

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 Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
jhmckeever
Premium Member
Premium Member
Posts: 301
Joined: Thu Jul 14, 2005 10:27 am
Location: Melbourne, Australia
Contact:

Post by jhmckeever »

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.
<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>
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

In other words, there's no built-in stage for this.
-craig

"You can never have too many knives" -- Logan Nine Fingers
AugusRD
Participant
Posts: 5
Joined: Mon Nov 09, 2009 9:57 am

Post by AugusRD »

Thanks Everyone. I am planning to go with wget for now. I did not feel very comfortable as it is not available by default on solaris 10.
Post Reply