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.

New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.

What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.

During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Check Free spaces in Focus Table

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Check Free spaces in Focus Table
 Login/Join
 
Gold member
posted
Hi All -

How to check the free spaces available in focus table?
How to check the spaces utilized?

Please let me know, Is there any way or formula available.

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


WebFOCUS 7.6.13

Mainframe
all output (Report in mainframe)
 
Posts: 64 | Registered: February 24, 2010Report This Post
Platinum Member
posted Hide Post
? FILE XXXXX will tell you the no. of pages used and then multiply by 4k to get space needed. REBUILD REBUILD will clear out the deleted pages.


_______________________
*** WebFOCUS 8.1.05M ***
 
Posts: 196 | Location: London, UK | Registered: December 06, 2005Report This Post
Expert
posted Hide Post
As the FOCUS DB is just a file, space available will be the free disk space/FOCUS DB limit ations.

You could also check the file size with this query.

This assumes the FOCUS file is in the path.
SQL FMI SET SYSFILES FOCUS
TABLE FILE SYSFILES
PRINT FILENAME SIZE
END


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6349 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
The file size is not necessarily equal to the focus DB size.
For example, if you write a table file of about 1k out to a pre-existing hold file of 2 GB, then your hold file will stay that size, but hardly any of the file gets used (just that 1k at the start).

Ian's answer gets you the DB size (1k in above example), while Waz's answer gets you the actual file size (2 GB).

It would be cool to be able to report on these. Is there a way to make the result of "? FILE xxx" available to FOCUS? I assume there's a FOCUS command under the hood somewhere in there?

Unfortunately, there doesn't appear to be a command to just trim the fat off the large file. If you want to reduce it to its minimum required size, you'll have to either REBUILD it or delete and recreate it.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Gold member
posted Hide Post
Thanks Ian/Waz/Wep.

I tried with ? FILE XXXXX. Got the below details.

DDNAME = FDBA111
DSNAME = FDB.BASE111.FOCUS
DISP = SHR
DEVICE = DISK
VOLSER = OCBL76
DSORG = PS
RECFM = F
SECONDARY = 180000
ALLOCATION = BLOCKS
BLKSIZE = 4096
LRECL = 4096
TRKTOT = 9240
EXTENTSUSED = 1
BLKSPERTRK = 12
TRKSPERCYL = 15
CYLSPERDISK = 10017
BLKSWRITTEN = 110748
FOCUSPAGES = 110743

Do I need to multiply the focuspages 110743 with 4K? ie 110743x4 = 442972

correct me if I'm wrong...


WebFOCUS 7.6.13

Mainframe
all output (Report in mainframe)
 
Posts: 64 | Registered: February 24, 2010Report This Post
Platinum Member
posted Hide Post
Yes that's right so your actual space requirements are 453,603,328 bytes or as it says 110,748 blocks (equates to 9,299 tracks or 615 cylinders) - so best to have all this as primary and say 25 cyls secondary. I see you are on the first extent only so that's OK.


_______________________
*** WebFOCUS 8.1.05M ***
 
Posts: 196 | Location: London, UK | Registered: December 06, 2005Report This Post
Virtuoso
posted Hide Post
If you are in an MVS environment, tbe following command will place file attribute info from the ? TSO ddname command into Dialogue Manager variables. The Dialogue Manager variables will have the same names as the attribute names returned by the ? TSO DDNAME command (i.e., &DDNAME, &DSNAME, &DISP, &DEVICE, &VOLSER, &DSORG, &RECFM, &SECONDARY, &ALLOCATION, &BLKSIZE, &LRECL, &TRKTOT, &EXTENTSUSED, &BLKSPERTRK, &TRKSPERCYL, &CYLSPERDISK, &BLKSWRITTEN, &FOCUSPAGES).

-? TSO DDNAME ddname


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report 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     [CLOSED] Check Free spaces in Focus Table

Copyright © 1996-2020 Information Builders