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 email@example.com for further assistance. Reference the community FAQ to learn more about the community.
hi, I have to read a file and find out some specific recrord from it. If i get the record then set a flag foudn to true else set the flag to false. this reading process has to be continued till end of file. can u please let me know how can this be done? using which syntax i can do it? if it was cobol then its very easy for me but focus is quite tough, so i am asking for help please let me know the ans ,atleast the syntax then may be i can find out rest part.
mainframe focus 7.3.5
Posts: 3 | Location: India | Registered: December 26, 2007
The suggestions on training are well noted. What you are asking to do is very basic.
However, let us assume that you want to create a report from this data. The first thing you would need is a master file description. So please look in the Describing Data manual for the data source type of your data and create a master for your data. Once you have that in place, you can do the following:
DEFINE FILE filename
SEL_FLAG/I1=IF condition true THEN 1 ELSE O;
TABLE FILE filename
WHERE SEL_FLAG EQ 1
You don't tell us your end objective. If you're setting a flag to indicate some condition of the record, then I seems quite obvious that you want want to (1) mark the records for later use/retrieval or (2) report on the records which match that condition.
GinnyJakes suggestion replaces the 'flag' in each record with a file containing records matching the desired conditions. The File is a list of records that you would have flagged.
If your intent is to permenantly mark specific records, then a simple process is to use FOCUS to duplicate the file to temp space, generating (DEFINEing) and setting the flag in each record as it is copied, deleting the original file and renaming the temporary to replace the original file (FOCUS' ability to run DOS commands is a way to do the delete/rename). Alternatively you can use IBI's MAINTAIN product to write (maintain) your flag back into appropriate records.
Still, it would be easier for us to offer solutions if we knew your total objective. Better still for everyone if you get the suggested education and/or training.
WIN/2K running WF 7.6.4 Development via DevStudio 7.6.4, MRE, TextEditor. Data is Oracle, MS-SQL.
Posts: 154 | Location: NY | Registered: October 27, 2005