Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Calling a .bat from my Focexec

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Calling a .bat from my Focexec
 Login/Join
 
Master
posted
I've been at this off and on all afternoon. We're trying to call a windows .bat file from a .fex.

When we run the .fex from developer studio, it just sort of sits there with an open window. Doesn't do anything on either machine. The .bat file runs just great when we run it manually.


We've tried
CMD \\SVR99WFRS\G\My.bat
RUN

Then we tried
-SET &ECHO=ALL;
-SET &SYS_CMD = 'G:\My.bat';
-SET &RETCODE = SYSTEM(&SYS_CMD.LENGTH,'&SYS_CMD.EVAL','D4');

Doesn't work either way. We've tried all manner of different things, the two shown above are all I recall though.

This has to be simpler than how we're going at it. Ideas?

This message has been edited. Last edited by: Kerry,


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Expert
posted Hide Post
Have you tried

! batfile.bat
or
DOS batfile.bat

I believe there are security settings that can stop an OS call, you may need to check on them as well.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Silver Member
posted Hide Post
We use the CMD method to call batch files in couple of our webfocus programs and it works for us. I would check to make sure that you can run the command you are using from your webfocus report server (from a command prompt). If it works from there it should work from within the fex.
 
Posts: 38 | Location: Milwaukee | Registered: April 28, 2005Report This Post
Virtuoso
posted Hide Post
I have tried to do this and found that if the bat file is doing something that has no bearing on the other server, all goes fine. But as soon as it tries to do something on the other server, even if it just a dir, I get no output and the process just hangs there forever. The point is that the contents of the bat file is transported to my webfocus server machine and run there. And apparently this does not produce the desired results if it has business to do on the linked server.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Calling a .bat from my Focexec

Copyright © 1996-2020 Information Builders