Solved

Call iseries remote procedure from DTS using url

Posted on 2006-07-19
4
684 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Changing SQL DB from Simple to Full recovery mode 3 47
Alter table 4 22
SQL Query stumper 3 36
How do query sql to display current month date ? 15 0
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
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 to return specific rows and columns, with various degrees of sorting and limits in place.

943 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

11 Experts available now in Live!

Get 1:1 Help Now