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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at email@example.com and provide your corporate email address, company, and name.
So here is my problem. I have at table. The first 3 columns are correct. However, the correct data for that row, is two rows back. For example, on row 10 the first 3 columns are correct the rest of the columns are wrong. The correct data for row 10 is in row 8. In order ti fix the table, I need to move the data down 2 rows.
How do I do this using WebFocus.This message has been edited. Last edited by: FP Mod Chuck,
Do you have a key of foreign key to use that can tell you which records goes with which one ?
If so, you can then extract them per that id/fk and have them "grouped" properly.
It sounds to me that your table contain multiple type of record : address row, name row, etc. Probably there is a rowType indicator and a common fk somewhere but without further information it's difficult to help. We can only do assumption.
Please share your master file. It may help to understand how your data is organized.
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2410 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
In my considered opinion, you're trying to use a BI tool as an ETL tool. This is a data problem that begs the question, why is my data set up like this and even if you come up with something that fixes the problem today, will it be repeatable next week?
WebFOCUS 8206, Unix, Windows
Posts: 1853 | Location: New York City | Registered: December 30, 2015
Rich, Is this something you could work with (using the CAR file)?
TABLEF FILE CAR
PRINT COUNTRY CAR MODEL
ON TABLE HOLD
DEFINE FILE HOLD
LL1/I5=LAST LL1 + 1;
LL2/I5=LL1 - 2;
MODL/A30=IF LL2 LE 0 THEN MODEL ELSE MOD2;
TABLE FILE HOLD
PRINT MODEL LL1 LL2 MOD1 MOD2 MODL
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, 2006
TABLE FILE SYSSQLOP
WHERE CATEGORY EQ &CATEGORY.(OR(FIND CATEGORY IN SYSSQLOP |FORMAT=A128)).Category.;
WHERE SUFFIX EQ &SUFFIX.(OR(FIND SUFFIX IN SYSSQLOP |FORMAT=A25)).Adapter.;
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET BYDISPLAY ON
ON TABLE SET STYLE *
TYPE=REPORT, LINES-PER-PAGE=UNLIMITED, TITLETEXT='WebFOCUS Functions', $
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015