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.
When using the &LINES function after an append it seems to give the number of lines that it added last and not a complete count of the file.
FILEDEF CAR2 DISK CAR2
TABLE FILE CAR
PRINT
COUNTRY
CAR
MODEL
BODYTYPE
WHERE COUNTRY EQ 'FRANCE';
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE HOLD AS CAR2 FORMAT ALPHA
ON TABLE SET XLSXPAGESETS ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
TABLE FILE CAR
PRINT
CAR.ORIGIN.COUNTRY
CAR.COMP.CAR
CAR.CARREC.MODEL
CAR.BODY.BODYTYPE
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE HOLD AS CAR1 FORMAT ALPHA
ON TABLE SET XLSXPAGESETS ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
FILEDEF CAR2 DISK CAR2 (APPEND
TABLE FILE CAR1
PRINT
COUNTRY
CAR
MODEL
BODYTYPE
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE HOLD AS CAR2 FORMAT ALPHA
ON TABLE SET XLSXPAGESETS ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
-TYPE &LINES
The above code returns a count of 4 (which is the count from England but is excluding the 1 from France which was already in the file. If we re-read the file into a secondary hold file it gives us the correct count.
FILEDEF CAR2 DISK CAR2
TABLE FILE CAR
PRINT
COUNTRY
CAR
MODEL
BODYTYPE
WHERE COUNTRY EQ 'FRANCE';
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE HOLD AS CAR2 FORMAT ALPHA
ON TABLE SET XLSXPAGESETS ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
TABLE FILE CAR
PRINT
CAR.ORIGIN.COUNTRY
CAR.COMP.CAR
CAR.CARREC.MODEL
CAR.BODY.BODYTYPE
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE HOLD AS CAR1 FORMAT ALPHA
ON TABLE SET XLSXPAGESETS ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
FILEDEF CAR2 DISK CAR2 (APPEND
TABLE FILE CAR1
PRINT
COUNTRY
CAR
MODEL
BODYTYPE
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE HOLD AS CAR2 FORMAT ALPHA
ON TABLE SET XLSXPAGESETS ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
TABLE FILE CAR2
PRINT
COUNTRY
CAR
MODEL
BODYTYPE
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE HOLD AS CAR3 FORMAT ALPHA
ON TABLE SET XLSXPAGESETS ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
-TYPE &LINES
Is this correct or am I mis-understanding how the &LINES is supposed to function?This message has been edited. Last edited by: FP Mod Chuck,
&LINES will be the number of lines of output accumulated in the last command, if it is a command (such as TABLE or GRAPH) that does such. &LINES is (I believe) computed before the command disposes of the lines (via HOLD, SAVE, or as a formatted report), so the "(APPEND" in your FILEDEF does not influence the value of &LINES for that step.
In your case that last command is
TABLE FILE CAR2
PRINT
COUNTRY
CAR
MODEL
BODYTYPE
...
ON TABLE HOLD AS CAR3 FORMAT ALPHA
...
END
which reads the entire file (original rows plus appended rows) that is target of the HOLD in the previous step.
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005