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     Can we create more than one hold file in a procedure?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Can we create more than one hold file in a procedure?
 Login/Join
 
<priya>
posted
Can we create more than one hold file in a same procedure? ForExample:
-SET ASNAMES =ON
DEFINE FILE EMPL
NEW_STATUS/A10 = 'NEW';
LOST_STATUS/A10 = 'LOST';
END
TABLE FILE EMPL
SUM
NEW_STATUS
CNT.ID AS 'NEW'

WHERE
BEG_DATE LE '01/15/2005' AND
END_DATE GT '01/15/2005'
ON TABLE HOLD AS NEWHOLD

SUM
LOST_STATUS
CNT.ID AS 'LOST'

WHERE
BEG_DATE LE '01/15/2005' AND
END_DATE LE '01/15/2005'
ON TABLE HOLD AS LOSTHOLD

END

TABLE FILE NEWHOLD
PRINT *
END

After compilation it gives "THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: NEWHOLD
BYPASSING TO END OF COMMAND"

I think LOSTHOLD is overwriting NEWHOLD.But i want to create both HOLD files.Please help me in solving this problem.

cheers,
saggi
 
Report This Post
Expert
posted Hide Post
Saggi,

LOSTHOLD is not overwriting NEWHOLD, rather NEWHOLD is not being created.

You can create as many HOLD files in one procedure as you want but each will have to be actioned. In your example you are issuing two ON TABLE HOLD calls within a single TABLE request. My understanding is that the last one will be actioned only. To do what you want in your example then -
-SET ASNAMES =ON
DEFINE FILE EMPL
NEW_STATUS/A10 = 'NEW';
LOST_STATUS/A10 = 'LOST';
END
TABLE FILE EMPL
SUM NEW_STATUS
CNT.ID AS 'NEW'
WHERE BEG_DATE LE '01/15/2005'
AND END_DATE GT '01/15/2005'
ON TABLE HOLD AS NEWHOLD
END
-RUN

TABLE FILE EMPL
SUM LOST_STATUS
CNT.ID AS 'LOST'
WHERE BEG_DATE LE '01/15/2005'
AND END_DATE LE '01/15/2005'
ON TABLE HOLD AS LOSTHOLD
END
-RUN

TABLE FILE NEWHOLD
PRINT *
END

Note that there are now TWO TABLE requests in your ONE procedure but both NEWHOLD and LOSTHOLD are avaialble. They will remain available during the run of this fex as they are held in a temporary folder on the reporting server known as EDATEMP. Each run of this fex will create them afresh in the respective folder for the agent that runs them and once the run has finished the files will be deleted.

You could also create TWO holds files within ONE TABLE request by issuing a HOLD after the TABLE request -
TABLE FILE EMPL
SUM LOST_STATUS
CNT.ID AS 'LOST'
WHERE BEG_DATE LE '01/15/2005'
AND END_DATE LE '01/15/2005'
ON TABLE HOLD AS HOLD1
END
-RUN
HOLD AS HOLD2

This will produce TWO identical HOLD files.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
<priya>
posted
Thanx a Lot Tony A.
It worked..


Saggi
 
Report 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     Can we create more than one hold file in a procedure?

Copyright © 1996-2020 Information Builders