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     DOS command - how to capture feedback

Read-Only Read-Only Topic
Go
Search
Notify
Tools
DOS command - how to capture feedback
 Login/Join
 
Expert
posted
I run a DOS command in a fex:

DOS Xcopy &BACK_SOURCE1.EVAL &BACK_DEST1.EVAL /d:&BACK_DATE.EVAL /q /i /s /y


I can test the execution of this command via the &IORETURN DM variable. Is there any other feedback I can capture, for instance, the number of files copied by the Xcopy command?

Thanks,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Does the xcopy produce output? If yes, can you pipe the output (using >) to a file?


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Expert
posted Hide Post
Ginny, thanks for that! Works well.

DOS XCOPY C:\IBI\APPS\B200 C:\IBI\_backup\apps\b200 /q /i /s /y >c:\ibi\_backup\result.txt

I have another little problem. It appears that &IORETURN is not valid in a fex run in Report Caster?

Thanks,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
My mistake! I should be using &RETOCDE and not &IORETURN.

Thanks,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
What I'd try :
1) Redirect the Dos Messages to a File
( Redirect is ">Dos filename" if I remember
2) With DM, take profit of the file
In any case) Beware of synchronising Tools that live in different Time-Spaces
Focusly yours


Focus Mainframe 7.6.11
Dev Studio 7.6.11 and !!!
PC Focus, Focus for OS/2, FFW Six, MSO
 
Posts: 134 | Registered: November 06, 2007Report This Post
Platinum Member
posted Hide Post
Well, i'm living in a different Space time, too !
Happy to see that I was not hundred miles out of the solution (And Thank you for the correct Word : PIPE)
Sorry that I arrive when the war is over (a French habit ?)
Could the Focus Community unify the World time so that everybody runs with the same chance
Focusly (and next time, it'll be seriously)


Focus Mainframe 7.6.11
Dev Studio 7.6.11 and !!!
PC Focus, Focus for OS/2, FFW Six, MSO
 
Posts: 134 | Registered: November 06, 2007Report This Post
Expert
posted Hide Post
Francis,

You are most welcome! I do this stuff in Unix-land all the time, doing reports on directory listings etc.

B,

You are sooo funny. My ancestors are from France (Normandy). Actually 'pipe' is the Unix term for taking output of one command and using it as input to another. The symbol is the vertical bar (|), hence the name pipe. Maybe the more correct term is redirect for the >.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Platinum Member
posted Hide Post
Giny, Bail - you are right on the mark(s). You can pipe, reroute, redirect to a file and do a -read against this file. and route accordingly with your results. c'est la vie

cos copy abc.mas xyz.mas > testfile.dat
filedef against it if need be
and -read against the vars.

Ira
aix 5333 wf 538


aix-533,websphere 5.1.1,apache-2.0,
wf 538(d), 537 (p),
==============
7.6.11 (t) aix 5312
websphere 6.1.19
apache 2.0
 
Posts: 195 | Registered: October 27, 2006Report This Post
Expert
posted Hide Post
And, if the file has multiple lines, you can define a LINE80 master, do GETOKs and SUBSTRs etc., i.e. parse the snot out out it, and do reports. Do it all the time.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report 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     DOS command - how to capture feedback

Copyright © 1996-2020 Information Builders