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. 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 and provide your corporate email address, company, and name.

Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] How to call the hold file created in other procedure?

Read-Only Read-Only Topic
[SOLVED] How to call the hold file created in other procedure?

I am using a HOLD file which is created in the other procedure. HOLD file is in FOCUS format.
I am directly including the fex file in which i have created HOLD file (-INCLUDE fex_name).
But i am unable to access it. please help me out.


This message has been edited. Last edited by: Kerry,
Posts: 9 | Registered: June 16, 2008Report This Post
posted Hide Post
I tried with EX(execute) command instead of -INCLUDE, it is working fine. Better try with EX command i.e., EX fex_name

WF Production Version: WebFOCUS 7.6.1
WF Test Version : WebFOCUS 7.6.4
Operating System : Windows xp
Output format : Excel, PDF, HTML, AHTML, PPT
Posts: 12 | Registered: July 01, 2008Report This Post
Platinum Member
posted Hide Post
Post your code -- I do this exact thing constantly through out my fexes.

WF 7.7.05
HP-UX - Reporting Server, Windows 2008 - Client, MSSQL 2008, FOCUS Databases, Flat Files
HTML, Excel, PDF
Posts: 149 | Location: Dallas, TX | Registered: June 08, 2007Report This Post
posted Hide Post
Whether its an EX or -INCLUDE, it shouldn't matter.

The only real difference is that a -INCLUDE will keep and FILEDEF's, but the EX will not.

This shouldn't matter for a focus file, but a USE will still exist after the -INCLUDE. Check with the command

Once the file is created in your session it will be available.

Debugging 101

Step 1 - Are there any error messages
Stop the program after the -INCLUDE with the command
and check for any errors, these need to be fixed first.

Step 2 - Does the file exist
Have you done a directory listing after the -INCLUDE to see if it was created ?

! ls -al

There should be 2 files with the name you gave it, one with the extension .mas and the other .foc.

Step 3 - File Format
Is it a FOCUS file, should be a hold file qith the extension .foc. The file size should be at least 4K.

There are probably many more checks, but these should be enough to find major problems.


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
Platinum Member
posted Hide Post
First: INCLUDE works with *.fex source code files only, not data.

Second: WebFOCUS procedures are executed by an 'agent'.
All simple 'hold' files are stored in the agent's private temporary disk space. This space is deleted when the agent finishes executing the process; Simple 'hold' files in this temporary working space are thereby deleted.

If you want to access a 'held' file after it's creating procedure has completed you must do either of several things. Check the manuals or DevStudio's help for more information:

1. Precede your TABLE FILE ... END with

2. Allocate the file to permanent disk space with
FILEDEF {holdname} DISK {diskpath}

3. Construct the fully qualified disk path to the file in the agent's temporary space into an &variable, then use DOS COPY commands to copy it to a permanent disk location.

WIN/2K running WF 7.6.4
Development via DevStudio 7.6.4, MRE, TextEditor.
Data is Oracle, MS-SQL.
Posts: 154 | Location: NY | Registered: October 27, 2005Report 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     [SOLVED] How to call the hold file created in other procedure?

Copyright © 1996-2020 Information Builders