Focal Point
How do I call a FEX from a Managed Reporting Domain from a batch file?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4701063651

February 27, 2006, 02:42 PM
JimRice
How do I call a FEX from a Managed Reporting Domain from a batch file?
I'm using the following Perl command to call a FEX in webfocus:

my $rc = system(qq(c:\\ibi\\srv52\\wfs\\bin\\edastart -x "ex $fex" > $wf_log));

This works when my fex is in a folder in the APPPATH path. How do I get to a fex that is in a Managed Reporting Domain folder?

Thanks
Jim


WF DevStu 5.2.6/WF Srv 5.2.4/Win NT 5.2
February 27, 2006, 03:26 PM
dhagen
Jim, I think your SOL on this one. The edastart -x is designed to allow you to execute local test procedures of the reporting server. MRE procedures are not considered local to the reporting server, rather they are local to the web application server.

In perl, correct me if I'm wrong, but I thought you could consume java classes. If that is true, then you could use the WF API, or WF WebServices to do execute both reporting server and mre procedures.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
February 27, 2006, 03:36 PM
TexasStingray
Jim, Question is the WebFOCUS Client and the WebFOCUS Reporting Server on the same box?




Scott

dhagen,
I think you are correct, unfortunately my Perl knowledge is pretty limited so I don't know how to do this. If someone out there has done this, please let me know.

TexasStingray,
They are on different boxes.


WF DevStu 5.2.6/WF Srv 5.2.4/Win NT 5.2
Jim,

As TS intimated, that will make a difference as the MRE fexes reside on the Client under IBI/WBEFOCUSnn/basedir whereas the fexes under the app path reside on the Reporting Server (hence two different sign-ons in Dev Studio to access each one).

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
Tony & TS,

Sorry about the confusion, but after reading Tony's post, the client and the reporting server must be on the same box. I can look at our webfocus box and the app path fexes are in ibi/apps folders and the MRE fexes are in the ibi/WebFOCUS52/basedir folders.

By default, we started developing most of our fexes in MRE. I've been trying to decide if we should be developing in the app path folders. We currently are using VMS Focus mostly in a batch mode. We would like to convert all of this to WebFocus so I'm trying to create a batch type environment in WebFocus. If you have any advise in this area, I'm listening.

Thanks for the posts, and again, sorry for the confusion.

Jim


WF DevStu 5.2.6/WF Srv 5.2.4/Win NT 5.2
Jim,

The easiest way would be to run everything through report caster. That way the reports can exist either in MRE or on the server. The results can then be mailed directly to the user requesting the schedule.

In WF52, you can use a routine called DSTRUN to go from html prompt page to load the request into the report caster schedule.

My two cents.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
dhagen,

We currently use report caster for most of our scheduling. The biggest problem I have with RC is that I haven't figured out how to save the focus messages that are created when the fex runs. This information is necessary for trouble shooting problems with scheduled jobs. In the old focus environment you could filedef SYSPRINT to a log file and you had it. This doesn't seem to work in WebFocus or at least I can get it to work. If you could solve this for me, I would be very excited.

Jim


WF DevStu 5.2.6/WF Srv 5.2.4/Win NT 5.2