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.
What is it that you want.... List all the records that are in the file?
If so, you need to create a master that describes the file. If this file is just a way to select the data from the database file T2CHGDTL than give us more info. Both Dojo and myself think your database only holds FEEDER_KEY fields that has a value of '3370065' in the last 7 positions. Your report is working as expected, so what do YOU want.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
T2CHGDTL is a VERY LARGE DB2 Table, and I have isolated 10 codes that I want to use in a Rpt request. Those codes are stored in VENT_CD.TXT flat file.
Ultimately I want a report that goes like: DEFINE FILE T2CHGDTL SVC_CD/A7 = EDIT(FEEDER_KEY,'$$$$$$9999999'); END
TABLE FILE T2CHGDTL PRINT Blah (FLDS FROM T2CHGDTL) Blah BY SVC_CD WHERE SVC_CD in FILE VENT_CD; END
My point in doing this was to just print the ten values from the file.
I understand that if I create a MFD for this VENT_CD file, I can just go against that for a simple report to verify the values.
However, I thought I could get these 10 values to display in a report by doing some code with if SVC_CD NE LAST SVC_CD, etc., but that is not working out either.
Part of Focus's CMS heritage. In CMS FILEDEF, the trailing "options" are parenthesised, to set them off from the positional arguments; the closing parenthesis is optional, and typically omitted.
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
That still does not answer the question why you get these 5 records.
Waht do you get if you say
....
WHERE SVC_CD EQ '3370085'OR '3160407' OR '3160502' OR '3370065' OR '3370165' OR '3370265'
OR '3370614' OR '3370615' OR '3370616' OR '3370617';
.....
If you still get the same 5 records the problem appears not to be the filedef....
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
I'm with Frank - unless there is some other reason you need to use an external file, don't make it more complicated than it needs to be. If his code doesn't get you the right answer, there's some other problem. Sneaky suspicion if the FEEDER KEY field.
Having said that, it is not a very good idea to use a defined field in your selection criteria. In effect, it selects ALL records to the internal matrix, calculates the defined field, and THEN throws out the ones it doesn't need. Way too much I/O. Seems like it would work this way as well using the IN FILE method.
Last thought is to make sure that you are using the file that you think you are by checkking filedefs and locations with ? FI and WHENCE commands.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Tom, I suspect that the Data type for column "FEEDER_KEY" might be defined as Alpha in the T2CHGDTL master file. Update the Data type to Integer and give a try. E.g. FIELD=FEEDER_KEY,FEEDER_KEY,I13,I13,MISSING=ON, TITLE='Feeder Key',$
Version: WebFOCUS 7.6.6 O.S. WebFOCUS is mounted on Unix Output Report: HTML, Excel, CSV, PDF and TXT
QUERY TO DISPLAY FEEDER_KEY DATA: [ TABLE FILE T2CHGDTL PRINT FEEDER_KEY WHERE FEEDER_KEY CONTAINS '3370085' OR '3160407'; IF RECORDLIMIT EQ 5 END -EXIT ] ACTUAL FEEDER_KEY REPORT: PAGE 1
The problem isn't with VENT_CD or the OR option. You have multiple records with the equaling the first vent_cd. Try changing your code to SUM FEEDER_KEY BY FEEDER_KEY NOPRINT rather than PRINT and increase your RECORDLIMIT.
Pat WF 7.6.8, AIX, AS400, NT AS400 FOCUS, AIX FOCUS, Oracle, DB2, JDE, Lotus Notes
Posts: 755 | Location: TX | Registered: September 25, 2007
My point in doing this was to just print the ten values from the file.
If this is really the only reason IMHO it is not the best way. You have a small text file with 10 numbers and to print it you use a big eda file from the server. It's wasting report sources and time, even if it would take 10 seconds! You can do a read and loop....
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006