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     Create Hold file from stack

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Create Hold file from stack
 Login/Join
 
<priya>
posted
Hi

As I am new to webFOCUS ,I just want to know is it possible to generate one hold file with the help of stack file?Plese help me in solving this also.
 
Report This Post
Expert
posted Hide Post
What do you mean "with the help of stack file"?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Priya,

please clearely Explain what is STACK file,iam unable to understand what it is.

Thanks,


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------
 
Posts: 155 | Location: Bangalore. | Registered: January 24, 2006Report This Post
<priya>
posted
Kalyanswarna,

Ya Sorry for this brief description.Let me explain you in detail.
Suppose I create one stack "MonthStk" which consists of Month Names like Jan 2006,feb 2006 etc.I just want to retieve this stack data one by one with the help of REPEAT loop and Put it into an hold File.


TABLE FILE EMPDATA
SUM SALARY
BY FIRSTNAME
ON TABLE HOLD AS TEST_HOLD
END

? HOLD TEST_HOLD

MAINTAIN FILE TEST_HOLD
FOR ALL NEXT FIRSTNAME INTO EMPSTK;
COMPUTE I/I2=1;

REPEAT EMPSTK.FOCCOUNT
TYPE EMPSTK(i).FIRSTNAME;
COMPUTE I=I+1;
-*ON HOLD TABLE AS HOLD_NEW;
ENDREPEAT
END

Like in this code I created one stack and when I am accessing this stack in the REPEAT loop I want to put it into Hold File.

Is it possible or not?

regards,
Priya
 
Report This Post
Master
posted Hide Post
Priya
While you cannot issue a HOLD command from inside of Maintain, you can do a TYPE ON DDNAME to save the data to a flat file. You could also INCLUDE the data to a FOCUS / SQL file. In either case, you would just have to have the Master File Description created first.

TABLE FILE EMPDATA
SUM SALARY
BY FIRSTNAME
ON TABLE HOLD AS TEST_HOLD
END

? HOLD TEST_HOLD

MAINTAIN FILE TEST_HOLD AND HOLD_NEW
FOR ALL NEXT TEST_HOLD.FIRSTNAME INTO EMPSTK;
COMPUTE I/I2=1;

REPEAT EMPSTK.FOCCOUNT
TYPE EMPSTK(i).FIRSTNAME;
COMPUTE I=I+1;
INCLUDE HOLD_NEW.FIRSTNAME FROM EMPSTK(I)
-*ON HOLD TABLE AS HOLD_NEW;
ENDREPEAT
END

I hope this helps.

Mark
 
Posts: 663 | Location: New York | Registered: May 08, 2003Report 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     Create Hold file from stack

Copyright © 1996-2020 Information Builders