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] DOS command execution status

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] DOS command execution status
 Login/Join
 
Member
posted
I'm looking for advice on how to receive a completion status code from a non-WebFOCUS executable that is initiated with a DOS command from within a FOCEXEC.

If anyone has done this before, can you advise me on how it was accomplished.

Thanks for your time,
Bill Helzing IBI - Chicago

This message has been edited. Last edited by: Kerry,
 
Posts: 5 | Location: IBI - Chicago Consulting | Registered: February 08, 2005Report This Post
Expert
posted Hide Post
I think this has been asked before, or something very similar.

What version of WebFOCUS are you on ?

Please update your signature.

Have you looked at the SYSTEM command.
SYSTEM command


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
<JG>
posted
The real question I suspect is,

How do you return the completion code of third party programs executed using WebFOCUS OS level calls.

The answer is,

Directly you can't.

WebFOCUS does not know or care about the OS level program.

The OS level Program does not know or care about WebFOCUS.

All reasonable "batch" execution systems allow log writing.

The WebFOCUS SYSTEM function waits for completion of the CALL as opposed to ! DOS etc. which does not.

Write the log.

Map the log to WF.

Read the log.
 
Report This Post
Silver Member
posted Hide Post
Hi Bill,

what I do make some calls with -WINNT and retrieve the Exit-Code within WebFOCUS.

e.g.
 
-WINNT powershell -Command "exit ((get-content xyz.txt).length)"
-SET &COUNT = &EXITRC;

Regards Markus


WF 7.6.6 (MRE,BID, DevStudio, partly RC) on Windows 2003 /Apache/Tomcat
Output: HTML,Excel,PDF,PPT
Adapters: SQL Server, DB2, Oracle
 
Posts: 38 | Location: Austria, Linz | Registered: June 19, 2009Report This Post
Platinum Member
posted Hide Post
Depending on how complicated the output is, you can also just do a simple redirect.

e.g.
DOS dir > output.txt

Stores the output of the dir command into the output.txt.

You should then be able to read the output back in using FOCUS and parse it.


WF 71.x, 76.x, 7701, 8.0 Beta OS: Linux, Win2k3, Win2k, Win2k8, WinXP


 
Posts: 203 | Registered: November 19, 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] DOS command execution status

Copyright © 1996-2020 Information Builders