Focal Point
[CLOSED]Difference between TABLE and TABLEF

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5901040752

November 13, 2007, 07:49 AM
Gobinath Velusamy
[CLOSED]Difference between TABLE and TABLEF
Hi All,

I leanred TABLEF is faster in data retrivel than TABLE command ....

1. What is the main dirrerence betweek thease?
2.What is the limitation when using the TABLEF instead of using TABLE ?


Thanks in Advance
Gobi

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 7610
Windows
November 13, 2007, 08:05 AM
Danny-SRL
Gobinath,
TABLEF does does not create the Internal Matrix which is usually in the file FOCSORT. Hence no sorting is done.
You can use BY's but sorting will not take place.
You cannot use ACROSS, nosplit, DST., EMPTYREPORT, RETYPE.
You cannot use multi-set requests.
However, when you just want to read a file and create a HOLD file, for example, it is very fast.
See also page 17-9 in the 7.6 manual.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

November 13, 2007, 03:03 PM
Frans
You can use BY, but since there's no internal matrix the sorting has to be done by the RDMS. So no sorting on defined fields.


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
July 18, 2016, 07:11 AM
reena
I am using TABLEF instead of TABLE in my focus program because i was getting error " (FOC920) FOCSORT EXCEEDED CURRENT PAGE LIMIT "
But now when i am using TABLEF ,I am getting below error
"(FOC037) THE REQUEST IS INCOMPATIBLE WITH TABLEF"
my program is like :

TABLEF FILE ARRP_BL
HEADING
-INCLUDE gnrphdr.fex
"CYCLE : "COMPANY : -*---"EXCHANGE : " "

SUM GLCODE AS 'ACCT, CODE ' IN 1
-* CATEGORY AS 'CATEGORY, CODE ' IN 12
CATCODE AS 'CATEGORY, CODE ' IN 10
CATDESC AS ' DESCRIPTION , ' IN 24
T_AMT AS ' TOTAL ' IN 49
B_AMT AS ' RECURRING , AMOUNT ' IN 65
P_AMT AS ' PARTIAL , AMOUNT ' IN 81
O_AMT AS ' ONE TIME , AMOUNT ' IN 95
U_AMT AS ' USAGE , AMOUNT ' IN 109
NO_MSGS AS ' # OF, MESSAGES' IN 123

BY DUMMY NOPRINT
BY CYCLE NOPRINT
BY COMPANY NOPRINT
BY NPA_NXX NOPRINT NOSPLIT PAGE-BREAK
BY GLCODE NOPRINT
BY CATEGORY NOPRINT
BY CATCODE NOPRINT
-*--BY CATDESC NOPRINT
-*-

Kindly suggest asap



quote:
Originally posted by Danny-SRL:
Gobinath,
TABLEF does does not create the Internal Matrix which is usually in the file FOCSORT. Hence no sorting is done.
You can use BY's but sorting will not take place.
You cannot use ACROSS, nosplit, DST., EMPTYREPORT, RETYPE.
You cannot use multi-set requests.
However, when you just want to read a file and create a HOLD file, for example, it is very fast.
See also page 17-9 in the 7.6 manual.



WebFOCUS 8
Unix, All Outputs
July 18, 2016, 08:25 AM
Dave
reena,

hard to tell.

There is some functionality that can't be ( e.g. unsupported ) handled by TABLEF.

Two main suspects : NOPRINT and IN n
[ or whatever there is in the rest of the TABLE request and -INCLUDE ]

What happens if you leave out all that?


_____________________
WF: 8.0.0.9 > going 8.2.0.5
July 18, 2016, 10:21 AM
Danny-SRL
Reena,
Welcome to the Forum!
When you show code please use the < / > icon. You then put your code between the generated CODE tags.
As for your problem, it is most probably the NOSPLIT you use in
  
BY NPA_NXX NOPRINT NOSPLIT PAGE-BREAK

Try without it.
Is your output PDF? If not the IN will be ignored.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

July 22, 2016, 06:31 AM
reena
Danny-SRL,

I tried after removing NOSPLIT but it is increasing no of output reports.
Suppose my output is 3 reports with NOSPLIT command but after remove this i get 6 output reports.This is because NOSPLIT determines if the total number of lines related to the new value can fit on the current page. If they cannot, the page breaks and the group of lines appear on the next page.

My output is .layout file.


WebFOCUS 8
Unix, All Outputs
July 22, 2016, 02:30 PM
j.gross
quote:
" (FOC920) FOCSORT EXCEEDED CURRENT PAGE LIMIT "


Go back and see what you can do to avoid that limit.
I shouldn't be reached unless you have a mammoth number of rows (distinct combinations of the sort fields DUMMY ... CATCODE), and/or a mammoth-size record (any A4095's among the sort and verb-object fields?)
July 26, 2016, 09:10 AM
Doug
Simple, basic first step for syntax and other WebFOCUS information and explanations, check out the ol' F1 for TABLE FILE command and TABLEF FILE command.
July 28, 2016, 03:58 AM
reena
Can anyone explain me how FOCSORT works and where is located in file ststem.
What it does ?


WebFOCUS 8
Unix, All Outputs