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.

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.


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
Go
Search
Notify
Tools
[SOLVED] How to call the hold file created in other procedure?
 Login/Join
 
Member
posted
Hi,

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.

Basava
WF 7.1.4 HTML PDF EXCEL UNIX

This message has been edited. Last edited by: Kerry,
 
Posts: 9 | Registered: June 16, 2008Report This Post
Member
posted Hide Post
HI,
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
Expert
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
? USE


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
-EXIT
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 ?

Try
-RUN
! 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.


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: 6347 | 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
APP HOLDMETA {applib}
APP HOLDDATA {applib}

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