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     [SOLVED] Problem weeding out unwanted records in hold file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Problem weeding out unwanted records in hold file
 Login/Join
 
Member
posted
I have a hold file of accounts that need to be grouped somehow so that i can eliminate certain records.
Here is a sample of the file:

CUST LOC APP NAME APP_ACCT
10000000000136 9160342214 DDA DUCK DONALD 0100100000000113091871
10000000000136 9160342214 DDA DUCK DONALD 0100100000007120091764
10000000000136 9160342214 DDA DUCK DONALD 0100100000000100000215
10000000000136 9160342214 DDA DUCK DONALD 0100100000000113090691
10000000000136 9160342214 ALS DUCK DONALD 01001000000000000199999043
10000000000136 9160342214 CL DUCK DONALD 0100100091753416040008900100099
10000000000934 9485504158 DDA MOUSE MICKE 0100100000000099990012
10000000000934 9485504158 DDA MOUSE MICKE 0100100000000100064441
10000000000934 9485504158 DDA MOUSE MICKE 0100100000007120157431
10000000000934 9485504158 MSP MOUSE MICKE 0010118720
10000000008647 9251787615 DDA JACKSON MIC 0100100000007120136609
10000000008647 9251787615 DDA JACKSON MIC 0100100000007110229960
10000000008647 9251787615 CL JACKSON MIC 0100100091905682250000000100199
10000000008647 9251787615 CL JACKSON MIC 0100100091905682250008900100199
10000000008647 9251787615 CL JACKSON MIC 0100100091905682250008900200199

I only want to keep customers who have both at least one DDA account and one CL account.
In the above example, DUCK DONALD and all his records should be kept since there is a DDA and a CL account under his name and customer number. MOUSE MICKE and all his records should be excluded because he does not have a CL account.
I am a COBOL programmer at heart and this would all get stored in working storage, no problem! Can someone point me to a solution for this in FOCUS?

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


FOCUS for Mainframe 7.2
Windows and IBM Z9 Mainframe processor
FOCUS, Excel


 
Posts: 21 | Registered: October 31, 2008Report This Post
Silver Member
posted Hide Post
Have you attempted to either use a where clause where both have dda and cl. Or you can use a Define file XXX
create a temporay field called combddacl/a3= if the field that contains the dda and cl then field else ' ';
end


EDA764 Release * Current Software:
Unix
 
Posts: 42 | Registered: November 18, 2008Report This Post
Expert
posted Hide Post
With a two pass process, do a count of dda and cl by account number and print account number where the total counts are greater than zero. Hold or save the account numbers. You can then use the file in a join or WHERE IN FILE test.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Member
posted Hide Post
I like your suggestions. Let me go give this a try. Thanks!


FOCUS for Mainframe 7.2
Windows and IBM Z9 Mainframe processor
FOCUS, Excel


 
Posts: 21 | Registered: October 31, 2008Report This Post
<JG>
posted
How about a single multiverb request

DEFINE FILE CAR
S4/A1=IF SEATS EQ 4 THEN 'Y' ELSE 'N';
S5/A1=IF SEATS EQ 5 THEN 'Y' ELSE 'N';
END
TABLE FILE CAR
SUM
MAX.S4 NOPRINT
MAX.S5 NOPRINT
BY CAR
PRINT SEATS
COMPUTE WANTED/A2=MAX.S4 || MAX.S5; NOPRINT
BY CAR
WHERE TOTAL WANTED EQ 'YY'
END
 
Report This Post
Member
posted Hide Post
I followed JG's example and it did exactly what I needed!
Thanks for all the expertise. Got to get all this COBOL out of my brain and start thinking FOCUS!


FOCUS for Mainframe 7.2
Windows and IBM Z9 Mainframe processor
FOCUS, Excel


 
Posts: 21 | Registered: October 31, 2008Report 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     [SOLVED] Problem weeding out unwanted records in hold file

Copyright © 1996-2020 Information Builders