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.
On a HOLD file I have created a table called MILES. It has 2 columns Date and Name. DATE MILES 3/29/2010 MILES 1 3/31/2010 MILES 2 4/5/2010 MILES 4 4/14/2010 MILES 3 4/16/2010 MILES 5 I need to add a new column called “LABEL” which will represent each MILE with a Name…For example. LABEL DATE MILES A 2010/03/29 MILES 1 B 2010/03/31 MILES 2 C 2010/04/05 MILES 4 D 2010/04/14 MILES 3 E 2010/04/16 MILES 5 F 2010/04/22 MILES 6
NOTE: The DATE and MILES is dynamically generated. Please could anyone suggest how to achieve this. Im still new to WB so would need a more elaborate explanation. Thanks for all the help in advance..
WB Version: 7.6.4 Platform: WindowsThis message has been edited. Last edited by: Kerry,
The first MILE should have the Label 'A', the 2nd should be 'B' and so on.
I was thinking of implementing it as follows. I dont know if this is a good way to approach it, but this is all I can think of now. 1. do a COUNT * on the MILE table and store it in a variable &COUNTER. 2. Use a FOR loop for 1 to &COUNTER 3. -TYPE 'A' in row1 of LABEL, -TYPE 'B' in row2 of LABEL.....and so on..
I started with :
TABLE FILE MILE COUNT * AS COUNTER ON TABLE HOLD AS CNT_FILE FORMAT FOCUS END -RUN -READ MILE &COUNTER.A21
-TYPE &COUNTER END
I get an error message as follows: " 0 NUMBER OF RECORDS IN TABLE= 40 LINES= 40 0 NUMBER OF RECORDS IN TABLE= 1 LINES= 1 0 ERROR AT OR NEAR LINE 18 IN PROCEDURE test_spendate1.fex (FOC339) DIALOGUE MANAGER -READ FAILED: CHECK FILEDEF OR ALLOCATION FOR: -READ TMPMILESTONE &COUNTER.A21"
You could also use a combination of HEXBYT and IMOD on a sequence number -
DEFINE FILE GGSALES
REM/I2 = IMOD(SEQ_NO - 1, 26, 'I2');
MULT/I3 = (SEQ_NO - 1) / 26;
CHAR/A1 = HEXBYT(REM + 65,'A1');
KEY/A6 = IF MULT EQ 0 THEN CHAR
ELSE IF MULT EQ 1 THEN CHAR || CHAR
ELSE IF MULT EQ 2 THEN CHAR || CHAR || CHAR
ELSE IF MULT EQ 3 THEN CHAR || CHAR || CHAR || CHAR
ELSE IF MULT EQ 4 THEN CHAR || CHAR || CHAR || CHAR || CHAR
ELSE IF MULT EQ 5 THEN CHAR || CHAR || CHAR || CHAR || CHAR || CHAR ELSE '????';
END
TABLE FILE GGSALES
PRINT UNITS
BY SEQ_NO NOPRINT
BY KEY
BY CATEGORY
WHERE SEQ_NO LE 80
END
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, 2004