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     query regarding REPEAT keyword

Read-Only Read-Only Topic
Go
Search
Notify
Tools
query regarding REPEAT keyword
 Login/Join
 
Member
posted
I have a focus file with 80K records. Existing functionality is - Online screen updates the data in file and REPEAT command is used to search existing record in the file. This functionality works for few scenarios and failed for few.
When i check the count (number of times) entered values is compared with key field in file , count is always 65K in both cases .

When i deleted some records from file and then run this functionality, it works as expected.

My query is - does this repeat command has any limitation on loop count


focus version 7.2.3, mainframe
excel
 
Posts: 5 | Registered: January 08, 2010Report This Post
Platinum Member
posted Hide Post
Interesting...I had that problem years ago -- I had to do a repeat loop and whenever it went to about 125 times, it would crash.

So, I ended up breaking up the loop and actually exiting Focus and re-entering after writing out the last instance and then starting from there.

Looks like that limitation may still exist.

Vivian


Vivian Perlmutter
Aviter, Inc.


WebFOCUS Keysheet Rel. 8.0.2
(Almost) 1001 Ways to Work with Dates thru Rel. 8.0.2
Focus since 1982
WebFOCUS since the beginning
Vivian@aviter.com

 
Posts: 191 | Location: Henderson, Nevada | Registered: April 29, 2003Report This Post
Virtuoso
posted Hide Post
In Modify, I encountered a 64K limit on "REPEAT n [TIMES]". That's a while back, but Modify is "stabilized" so it's presumably still true.

Try converting it to REPEAT WHILE.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Virtuoso
posted Hide Post
Sonali,

In the very far back past when -REPEAT did not exist, we used to simulate a loop with -IF and -GOTO.
I suggest you try this.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Expert
posted Hide Post
More importantly, what's in the -REPEAT loop?


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
Member
posted Hide Post
thanks all for your response.

Below is code

Modify file
some processing

Reposition keyfield
Repeat * times
next key fields
on next ( tries to find the required record in file and if found , it hold the segment)
ON NEXT HOLD SEG.(key field)
end repeat
Later segment is deleted and new one is added with correct value.


focus version 7.2.3, mainframe
excel
 
Posts: 5 | Registered: January 08, 2010Report This Post
Master
posted Hide Post
I used to work with MODIFY, and miss it!

It sounds like you are NEXTing through a segment, with a very large number of occurrences.

You might want to clarify if you are saving multiple records (SPA), or if you are saving only one record.

Is it possible to establish a position in the segement with MATCH, and then start NEXTing at that point?

Does your code stop NEXTing, when it stops finding records it needs?
 
Posts: 822 | Registered: April 23, 2003Report This Post
Virtuoso
posted Hide Post
If it's feasible, it will be simpler to (first use TABLE to) HOLD the keys + other pertinent data for the records that need revision/deletion, and use
FIXFORM FROM HOLD
(rather than a Next loop )
to drive the operation.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Master
posted Hide Post
quote:
HOLD the keys + other pertinent data for the records that need revision/deletion, and use FIXFORM FROM HOLD

Exactly where I was going with this line of questioning! :-)

This message has been edited. Last edited by: David Briars,
 
Posts: 822 | Registered: April 23, 2003Report This Post
Member
posted Hide Post
Thanks. I will try this option. I have never made any changes to focus online program so not sure if this option will work.

My code do not have define file or table file and i am beginner in online focus. I will keep you updated with progress or new issues Smiler

Thanks everyone for reply and valuable information.


focus version 7.2.3, mainframe
excel
 
Posts: 5 | Registered: January 08, 2010Report This Post
Expert
posted Hide Post
Ahhh, The good ol' days...
quote:
I used to work with MODIFY, and miss it!
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report 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     query regarding REPEAT keyword

Copyright © 1996-2020 Information Builders