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.
Anyone know the syntax of the SYSTEM command? Specifically, is there an option that will pause processing of that focexec until whatever DOS command was issued by SYSTEM has completed?
Is there a SYSTEM START/WAIT (program name) command?
Thank you,
JohnThis message has been edited. Last edited by: JohnB,
WF 7.7.03, Windows 7, HTML, Excel, PDF
Posts: 225 | Location: San Francisco Bay Area, California | Registered: October 26, 2006
I don't know if we're thinking of the same SYSTEM command, but my understanding is that it's not really a command, but a function to which you pass and receive parameters. Would guess that it is usually used in Dialogue Manager commands. So when you say "pause processing of that focexec" it would otherwise obey normal processing "rules" for DM, but DM processing would stop until the command specified as the function parm completes. It cannot pause processing of a TABLE request that has been submitted to the server.
Just looked it up in the docs - here's and example to run chkdsk:
SYSTEM runs the check disk program and redirects the output to a file called CHKDSK.TXT. (Redirecting the output to a file makes it accessible to a program that might want to read it.)
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
SYSTEM is not a command for WebFOCUS, as Darin pointed out. And the SYSTEM function indeed halts processing until the dos command is completed, as Waz stated. If you need any other wait functionality, a simple search on the internet will give you various 'wait.exe' hits that allow you to pause a number of seconds. If the above is not what you're looking for, then as Waz suggested, show us your context.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Firstly, you do not need to have the process sleep etc. as the SYSTEM syntax causes the result of the OS command to be placed into the declared variable.
The syntax for SYSTEM (from memory) is -
-SET &variable = SYSTEM([length of command], [command in quotes], [output format of result - always double precision]);
I use this to allow a VB Script file to run, which creates a log file, which the remaining code in the fex uses - I actually update a FOCUS database with the results but it could be anything.
So,
-SET &VBS_Return = SYSTEM(13, 'runscript.vbs', 'D4'); -RUN -IF &VBS_Return NE 0 THEN :Error; -* If you get here then the command returned a zero value return code
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
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
If you think about how you are initiating the "OpenDoc.bat" file, you will realise that it is running on the server and not in an interactive way as would be the situation as a user. Therefore you should realise that there is probably a notepad.exe open on the server.
Go to the server and open task manager and look for all those notepad.exe tasks that you have set off!
If you want to deliver a document to the user then you will need to look at using EDAGET.
I see that Waz has responded to your original question in a similar manner.
Good luck
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
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004