Solved

Call iseries remote procedure from DTS using url

Posted on 2006-07-19
4
683 Views
Last Modified: 2013-11-30
I need to call an iseries remote procedure to generate the file that I need to import in DTS.

Here is the deal:

The AS400 team has created a remote procedure that can be called by a url.
If I type the url in a browser it runs a rpg program that exports data to my server. Then all I have to do is import the file.
The problem I am having is in how to call the remote procedure from DTS.
I need to either call the url from DTS or call the remote procedure directly from DTS.
Any help is appreciated.
0
Comment
Question by:EVANFAGER
  • 2
  • 2
4 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 17143641
>>I need to either call the url from DTS or call the remote procedure directly from DTS.<<
No different than executing a URL from the Command Line.  Therefore you can use an Execute Process Task.  However your biggest challenge will be to wait until it has finished, before executing the import.  You may want to schedule the first part separate from the second part.
0
 

Author Comment

by:EVANFAGER
ID: 17147085
That seemed to work but I still have a question. I typed the browser path in the win32 process line and the url in the parameter and it brought up the browser with the correct url. I set the timeout and it closed the browser but gave me the following error: The process created by a task did not terminate within the time specified
How do I close the browser without getting the error?
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 17147400
To be honest I have no idea.  I have never done it that way our SQL Servers never have access to the Internet.  I will see if I get a chance to test it out tonight when I get home.
0
 

Author Comment

by:EVANFAGER
ID: 17147609
That's cool thanks, I can handle it with error handling. FYI though, we don't open our servers up to the internet either it's on our intranet.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now