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     Set a variable in MODIFY and access it outside

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Set a variable in MODIFY and access it outside
 Login/Join
 
<Tennisbum>
posted
I am performing a database update using
MODIFY and CASE logic.
Is there any way I can set a variable in MODIFY
if some event happen?
I'd like to check that value upon exiting the
MODIFY.
In the code snippet, that value would be set in
case SET_VALUE.


VMS FILEDEF ...IN_DATA ..
-RUN

MODIFY FILE MASTE

CASE DO_IT
..
PERFORM SET_VALUE
...
ENDCASE
...

CASE case1
...
ENDCASE

CASE SET_VALUE
...
ENDCASE

CASE case2
...
ENDCASE

DATA ON IN_DATA
END
-RUN
-* Check value set here
 
Report This Post
Gold member
posted Hide Post
You can use the "TYPE ON DDNAME" command within the MODIFY to type anything you like into an external file. Then use -READ to read the value from the file after the MODIFY completes. Does this do what you need?

-CB
 
Posts: 55 | Location: New York | Registered: March 07, 2003Report This Post
Platinum Member
posted Hide Post
As Chris said:



FILEDEF FDATA ...
FILEDEF MODOUTF ...
-RUN

MODIFY FILE TBDWT004
PERFORM PROCESS
PERFORM MODOUT

CASE PROCESS
...
COMPUTE MENSAJE/A64 = 'My message' ;
...
ENDCASE

CASE MODOUT
TYPE ON MODOUTF " ***"
ENDCASE

DATA ON FDATA
END
-RUN

-READ MODOUTF &MESSAGE.A64.
-IF &IORETURN ...
Same in Maintain.

This message has been edited. Last edited by: <Mabel>,
 
Posts: 173 | Location: Madrid, Spain | Registered: May 09, 2003Report This Post
<Tennisbum>
posted
Thank you all. That helps
 
Report 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     Set a variable in MODIFY and access it outside

Copyright © 1996-2020 Information Builders