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.
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.
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, 2003