I would like to automate rendering an rdl into an excel spreadsheet, and then
upload the excel spreadsheet to our As400. The Report Server and As400 are
on different servers and I have encountered communication issues between the
2 because we have the AS400 on a Novell network.
I have tried establishing a subscription which successfully renders the xls
to the report server. However, Client Access forces me to login and
authenticate before I can execute the file transfer back to the As400. I
was hoping there might be a way to write some sort of process that would
automatically do this for me.
My pc knowledge is limited.
Any help or alternate suggestions would be appreciated.
PBOn May 16, 2:52 pm, ppbedz <ppb...@.discussions.microsoft.com> wrote:
> I would like to automate rendering an rdl into an excel spreadsheet, and then
> upload the excel spreadsheet to our As400. The Report Server and As400 are
> on different servers and I have encountered communication issues between the
> 2 because we have the AS400 on a Novell network.
> I have tried establishing a subscription which successfully renders the xls
> to the report server. However, Client Access forces me to login and
> authenticate before I can execute the file transfer back to the As400. I
> was hoping there might be a way to write some sort of process that would
> automatically do this for me.
> My pc knowledge is limited.
> Any help or alternate suggestions would be appreciated.
> PB
You might want to look into the robocopy utility (for copying the
resulting Excel file to the AS400 machine). I'm not sure if it will
access the AS400 machine, but its worth a shot. Hopefully this is
helpful.
Regards,
Enrique Martinez
Sr. Software Consultant|||>>However, Client Access forces me to login and
>> authenticate before I can execute the file transfer back to the As400
>> I was hoping there might be a way to write some sort of process that
>> would
>> automatically do this for me. ..
Client Access does have some COM client-based tools as well as an EXE that
can be scripted with a command-line instruction file -- so it's possible.
You are embedding the credentials in the script or command-line text file,
when you do it this way.
I will log onto a client with Client Access loaded and get back to this
thread later today with more detail, if I can. But here is an alternative
idea or two:
* -- One of my clients had exactly your setup (including the Novell part)
and there was a similar requirement. The way they had it working was to
have the MS-component put the file someplace shared and an AS400 batch job
picked up the file from there. I don't know if it was the best way, or the
only way, but it worked. (We did also use the command-line text file
approach for other things, but it was before the COM approach was
available.)
* -- You could use an AS400 facility that can consume web content and pull
the report back, in Excel format, rather than pushing with the RS
subscription. I would use URL access rather than SOAP/web service for this.
There is a $400 tool called GETURI by Brad Stone to do it --
http://www.bvstools.com/geturi.html -- which makes me think that there is
no native AS400 facility to make an HTTP call' I would have expected there
was one -- But you would know this better than I do.
* -- If AS400 has a native FTP-GET facility, you could have the RS
subscription publish to an FTP directory, and have the AS400 job pick it up
from there.
>L<
"ppbedz" <ppbedz@.discussions.microsoft.com> wrote in message
news:1AB759AF-0D15-4A63-9375-2647E62B40B1@.microsoft.com...
>I would like to automate rendering an rdl into an excel spreadsheet, and
>then
> upload the excel spreadsheet to our As400. The Report Server and As400
> are
> on different servers and I have encountered communication issues between
> the
> 2 because we have the AS400 on a Novell network.
> I have tried establishing a subscription which successfully renders the
> xls
> to the report server. However, Client Access forces me to login and
> authenticate before I can execute the file transfer back to the As400. I
> was hoping there might be a way to write some sort of process that would
> automatically do this for me.
> My pc knowledge is limited.
> Any help or alternate suggestions would be appreciated.
> PB|||Here is the additional information: The COM client library that is
associated with Client Access is a DLL with this name (location on my box):
c:\program_files\ibm\client_access\shared\cwbx.dll
... I'm telling you this in case you want to look at it using an object
browser in Visual Studio or whatever.
You will see an object called AS400System in this library, and you will also
find an object called DatabaseUploadRequest.
On the AS400System object, you set up your user id and password, and on the
DatabaseUploadRequest object you tell it what file (on the PC file system)
you want to upload into the AS400.
You will find some sample code doing this in this thread:
http://www.systeminetwork.com/isnetforums/showthread.php?t=33403
So, you could have a little VBS script that looks like the code you see in
that thread. You set up a Scheduled Task Windows Task Manager, at some time
*after* the subscription publishes the file to the PC location or use any
other utility you like that runs timed tasks (like a cron job in *nix) --
but Task Manager is easy and free <g>.
Remember that you want to run this VBS script on the box that has Client
Access installed, not necessarily the RS Server, so basically you can set up
the task on any such client box that can "see" the location to which RS
publishes the report. If you need help, holler.
BUT I still say it would make more sense to "pull" the file from the AS400
side!!
>L<
"ppbedz" <ppbedz@.discussions.microsoft.com> wrote in message
news:1AB759AF-0D15-4A63-9375-2647E62B40B1@.microsoft.com...
>I would like to automate rendering an rdl into an excel spreadsheet, and
>then
> upload the excel spreadsheet to our As400. The Report Server and As400
> are
> on different servers and I have encountered communication issues between
> the
> 2 because we have the AS400 on a Novell network.
> I have tried establishing a subscription which successfully renders the
> xls
> to the report server. However, Client Access forces me to login and
> authenticate before I can execute the file transfer back to the As400. I
> was hoping there might be a way to write some sort of process that would
> automatically do this for me.
> My pc knowledge is limited.
> Any help or alternate suggestions would be appreciated.
> PB
Wednesday, March 7, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment