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     Duplication of Records

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Duplication of Records
 Login/Join
 
Gold member
posted
Hi guys,
Iam kind of novice in focus code. Confused
Situation: -
HOLD <--
Field1 || Field2 || Field3
1 || A || john
1 || B || Mary
2 || C || Lisa
2 || D || Lori
2 || E || Sophy
3 || F || Kate

What I want is
SOME_HOLD1 <--
Field1 || Field2 || Field3
1 || A || john
2 || C || Lisa
3 || F || Kate
SOME_HOLD2 <--
Field1 || Field2 || Field3
1 || B || Mary
2 || D || Lori

I know one way of doing this with
Table file HOLD1
LIST Field2
bY Field1
End
I would appreciate some more efficient way attaching this problem
Thanks in Advance


Prod: WF 7.6.10 windows. -- MRE/Dashboard/Self Service/ReportCaster - Windows XP
 
Posts: 82 | Location: Chicago | Registered: September 28, 2005Report This Post
Gold member
posted Hide Post
Since noone else is biting, I'll ask if you can clarify this question a bit more. I'm not sure I understand what you are trying to do.
 
Posts: 90 | Registered: April 15, 2004Report This Post
Expert
posted Hide Post
Would I be correct in thinking that you want the first occurence in hold file 1, the second in hold file 2 .. etc.?

If so you can use basically what you have -
TABLE FILE CAR
LIST CAR
BY COUNTRY
ON TABLE HOLD AS MYDATA
END

TABLE FILE MYDATA
PRINT *
IF LIST EQ 1
END

TABLE FILE MYDATA
PRINT *
IF LIST EQ 2
END



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
Gold member
posted Hide Post
Tony A -
U r Perfect.
Actually I have a hold file of Huge Size.
Like

TABLE FILE CAR
LIST CAR
BY COUNTRY
ON TABLE HOLD AS MYDATA
END

List for CAR'S can go up to 40 and
Country's can go up to 20.

So Generating 40 Hold files dynamically and presenting all these 40 hold files in EXL2K wouldn't it be a Problem...?

I Wanted to know is there any better approach rather than this..?

Thanks in Advance


Prod: WF 7.6.10 windows. -- MRE/Dashboard/Self Service/ReportCaster - Windows XP
 
Posts: 82 | Location: Chicago | Registered: September 28, 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     Duplication of Records

Copyright © 1996-2020 Information Builders