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     Surpressing non - error Focus messages for MAINTAINs

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Surpressing non - error Focus messages for MAINTAINs
 Login/Join
 
Member
posted
Hi,
When running a MAINTAIN code, I get a message at the end saying "Transactions : commits = 1, rollbacks = 0 Segements : Included = 0" etc. At this point the user needs to click OK for the code to proceed. However I want the execution of the code to continue without the user having to click anything.

Is there a way of suppressing these Focus Messages; I noticed a similar post in March this year suggesting the use of SET MESSAGES = OFF, but this didn't work in my case.

Any help will be greatly appreciated
Thanks,
Trevor Wilson (CPP UK)
 
Posts: 12 | Location: Llanelli, South Wales, UK | Registered: November 17, 2005Report This Post
Master
posted Hide Post
Trevor
Are you running WebFOCUS or on the Mainframe? Are you running a series of Maintain procedures in a Focexec? How are you getting this message, and when comes next?

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report This Post
Member
posted Hide Post
Hi Mark,
Thanks for getting back to me, sorry for the delay in replying (I'd just finished for the day).
I'm using Webfocus Desktop power reporter for Windows v 4.3.6.

This all stems from an earlier post I made November 17th regarding how to make changes to data using a MAINTAIN, which Mikel in Spain was kind enough to help me with. His solution worked well, but I found that when I deleted the TYPE commands to provide the user with information, I started getting the 'TRANSACTIONS, message instead. [with the TYPE commands included I didn't get the TRANSACTIONS message but I still needed to acknowledge the TYPE results).

Although there is only one MAINTAIN in my code, it is part of a larger procedure which takes some time to run, and I would prefer to be able to let the PC get on with it, without me having to click on message boxes.

Rather than go into detail of the code which is causing me problems (I could provide this if it would help), this is a much simpler example which still generates the Focus message, even with SET MESSAGE = OFF.

This example creates a HOLD file with 5 records, then adds 1 to each with a MAINTAIN command:

DEFINE FILE CAR
KEY/I2 = DECODE COUNTRY (
'ENGLAND' 1
'JAPAN' 2
'ITALY' 3
'W GERMANY' 4
'FRANCE' 5
ELSE 0) ;
VALUE/I2 = DECODE KEY (
1 10
2 15
3 20
4 25
5 30
ELSE 0) ;
END

TABLE FILE CAR
SUM VALUE BY KEY
ON TABLE HOLD AS HOLD1 FORMAT FOCUS
END

-RUN

MAINTAIN FILE HOLD1

FOR ALL NEXT HOLD1.KEY INTO STK
REPEAT STK.FOCCOUNT I/I5 = 1 ;
IF (I GE 1) AND (I LT STK.FOCCOUNT) THEN BEGIN
COMPUTE VALHOLD/I2 = STK(I).VALUE ;
COMPUTE VALPLUS/I2 = VALHOLD + 1;
STK(I).VALUE = VALPLUS;
UPDATE HOLD1.VALUE FROM STK(I);
ENDBEGIN
ENDREPEAT I = I + 1;
END

-RUN

TABLE FILE HOLD1
PRINT *
END

Before the last TABLE shows the correct result, I get the Focus Message : "Transactions : commits =1 , rollback = 0 Segments : Included = 0 , Updated = 4, deleted - 0". This is the message I want to suppress.

The use of SET MESSAGE = OFF only seems to supress the " No of records in table etc" messages you get at the bottom of the screen next to the "Focus:Idle" status bar.

Regards
Trevor Wilson
Corus Packaging Plus
UK

This message has been edited. Last edited by: Trevor M Wilson,
 
Posts: 12 | Location: Llanelli, South Wales, UK | Registered: November 17, 2005Report This Post
Expert
posted Hide Post
Trevor,

Not having 4.3.6 I can't test this (it doesn't happen using 5.3.2) but looking at it logically the only way to get rid of the message is to use TYPE, but that prompts for a response?

How about using TYPE ON ddname - where ddname is an allocated temporary file?

As I say, I can't test this so I don't know if it will do what I think it will - give it a go and let us know how you get on.

T

p.s. Regards to Mervyn if he's still there!



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, 2004Report This Post
Member
posted Hide Post
Thanks Tony, I gave that a try. It managed to write an output to the message hold file, but I still get the 'Transactions' message.
My code now looks like :

-* DEFINING HOLD FILE FOR MESSAGES

DEFINE FILE CAR
MESSHOLD/A100 = DECODE COUNTRY (
'ENGLAND' 'MESSAGE'
ELSE '0');
END

TABLE FILE CAR
SUM MESSHOLD
BY MESSHOLD NOPRINT
WHERE MESSHOLD NE '0';
ON TABLE HOLD AS HOLDMSG FORMAT ALPHA
END

-* CREATING HOLD FILE TO MAINTAIN

DEFINE FILE CAR
KEY/I2 = DECODE COUNTRY (
'ENGLAND' 1
'JAPAN' 2
'ITALY' 3
'W GERMANY' 4
'FRANCE' 5
ELSE 0) ;
VALUE/I2 = DECODE KEY (
1 10
2 15
3 20
4 25
5 30
ELSE 0) ;
END

TABLE FILE CAR
SUM VALUE BY KEY
ON TABLE HOLD AS HOLD1 FORMAT FOCUS
END


FILEDEF HOLDMSG DISK C:\IBI\DESKTOP436\CONF\EDATEMP\HOLDMSG.FTM

-RUN

MAINTAIN FILE HOLD1

FOR ALL NEXT HOLD1.KEY INTO STK
REPEAT STK.FOCCOUNT I/I5 = 1 ;

-* SUPPRESSING MESSAGE TO HOLD FILE
TYPE ON HOLDMSG "9"

IF (I GE 1) AND (I LT STK.FOCCOUNT) THEN BEGIN
COMPUTE VALHOLD/I2 = STK(I).VALUE ;
COMPUTE VALPLUS/I2 = VALHOLD + 1;
STK(I).VALUE = VALPLUS;
UPDATE HOLD1.VALUE FROM STK(I);
ENDBEGIN
ENDREPEAT I = I + 1;
END

-RUN

TABLE FILE HOLD1
PRINT *
END

TABLE FILE HOLDMSG
PRINT *
END

The last TABLE shows the output to the message hold file, which now contains five 9's.
Thanks for the suggestion, perhaps this would give us ammunition for a Webfocus upgrade.

I don't know any Mervyn personally, I take it you are an ex - Trostre /Ebbw Vale man yourself. Are you still with Corus or have you gone on to better things ?

Regards,
Trevor Wilson
Corus Packaging Plus, Trostre Works
UK
 
Posts: 12 | Location: Llanelli, South Wales, UK | Registered: November 17, 2005Report This Post
Virtuoso
posted Hide Post
Nevermind, I just noticed you tried this already. Sorry. Frowner

Have you tried this?

SET MESSAGE = OFF


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Member
posted Hide Post
Hi Mickey,
Thanks for taking time to respond anyway. If anyone else has any ideas they would be very much appreciated, as I can't see us getting a Webfocus upgrade in the immediate future.

Regards,
Trevor Wilson
Corus Packaging Plus, Trostre Works
UK
 
Posts: 12 | Location: Llanelli, South Wales, UK | Registered: November 17, 2005Report This Post
Platinum Member
posted Hide Post
SET EMGSRV=OFF

Deactivates all output messages including MAINTAIN statistics.

-* Deactivate output messages.
SET EMGSRV = OFF
-* MAINTAIN code.
MAINTAIN
...
END
-RUN
-* Reactivate output messages.
SET EMGSRV = ON

Regards,
Mikel

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


WebFOCUS 8.1.05, 8.2.01
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report This Post
Member
posted Hide Post
Thanks Mikel, you did it again !. That did the job perfectly. I was sure that there had to be a simple answer to the problem.

Sincere thanks,

Trevor
 
Posts: 12 | Location: Llanelli, South Wales, UK | Registered: November 17, 2005Report This Post
Platinum Member
posted Hide Post
Be careful, this set, EMGSRV=OFF, also deactivates all warning/error messages.

Regards,
Mikel


WebFOCUS 8.1.05, 8.2.01
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report 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     Surpressing non - error Focus messages for MAINTAINs

Copyright © 1996-2020 Information Builders