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     [CLOSED] New Record to HOLD file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] New Record to HOLD file
 Login/Join
 
Member
posted
I have created a HOLD file in code
TABLE FILE COMPHLD2
BY PLAN_COMPONENT
END
THE RESULT WOULD BE :
PLAN_COMPONENT
---------------
NSR
RETENTION RATE

If there is an entry with "RETENTION RATE" I need a NEW record with the name "HOURS"
So expected :
PLAN_COMPONENT
---------------
NSR
RETENTION RATE
HOURS

Any suggession , how to accomplish this?

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 28 | Registered: January 20, 2011Report This Post
Gold member
posted Hide Post
Sanjeev,

Have you tried the MORE statement?

Example:

IF Country Contains "England" then Compute Country to equal "HOURS". Second request MOREs the two together.

TABLE FILE CAR
PRINT
COMPUTE COUNTRY/A10 = 'HOURS';
BY COUNTRY NOPRINT
WHERE COUNTRY EQ 'ENGLAND'
ON TABLE HOLD AS RETRATE
END
-RUN

TABLE FILE CAR
BY COUNTRY
WHERE COUNTRY EQ 'ENGLAND'
MORE
FILE RETRATE
END
-RUN

-mary


WF 7.6.10, Windows, PDF, Excel
 
Posts: 75 | Location: Dallas, TX | Registered: February 12, 2004Report This Post
Member
posted Hide Post
Sanjeev, I am at a great advantage here because I know your application, and the data. And while the previous post using "more" is valid and will work, it requires 3 passes at the data. What you want to do is create a row of data that does not exist. THIS SCREAMS MACGYVER. I also know you have existing MacGyver files of 10, 100, 250, etc at your disposal. I am assuming you know how to allocate them.
Then:
JOIN BLANC WITH PLAN_COMPONENT IN COMPHLD2 TO BLANK IN MCG10 AS J1
DEFINE FILE COMPHLD2
BLANC/A1 WITH PLAN_COMPONENT=' ';
PCOMPONENT/A32=IF COUNTER EQ 1 THEN PLAN_COMPONENT
ELSE IF (COUNTER EQ 2) AND (PLAN_COMPONENT EQ 'RETENTION RATE') THEN 'HOURS'
ELSE ' ';
END
TABLE FILE COMPHLD2
BY PCOMPONENT AS PLAN_COMPONENT
IF COUNTER LE 2
IF PCOMPONENT NE ' '
END
 
Posts: 17 | Location: Colorado, USA | Registered: January 22, 2010Report 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     [CLOSED] New Record to HOLD file

Copyright © 1996-2020 Information Builders