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.
I can't see how you are stuck. It's not really that complicated. Your data is straightforward. You just need to define fields to add the missing pieces. 1. Group the data based on if it is a regular class or a makeup class. 2. Determine the count of people for each Session.
EX -LINES 14 EDAPUT MASTER,class_data,CV,FILE
FILENAME=CLASS_DATA, SUFFIX=DFIX,$
SEGNAME=CLASS_DATA,$
FIELD=CASE_ID, ALIAS=CLASS_ID, A4, A4,$
FIELD=ISMAKEUP, ALIAS=ISMAKEUP, A6, A6,$
FIELD=CLASS, ALIAS=CLASS, A7, A7,$
FIELD=ISMARRIED, ALIAS=CLASS, A6, A6,$
FIELD=SESSION_1, ALIAS=SESSION_1, A2, A2,$
FIELD=SESSION_2, ALIAS=SESSION_2, A2, A2,$
FIELD=SESSION_3, ALIAS=SESSION_3, A2, A2,$
FIELD=SESSION_4, ALIAS=SESSION_4, A2, A2,$
FIELD=SESSION_5, ALIAS=SESSION_5, A2, A2,$
FIELD=SESSION_6, ALIAS=SESSION_6, A2, A2,$
FIELD=DELIMITER, ALIAS=',', A1, A1,$
FILEDEF CLASS_DATA DISK class_data.txt
-RUN
-WRITE CLASS_DATA 1111,TRUE,Class 1,FALSE,M,MF,M,M,F,MF
-WRITE CLASS_DATA 2222,TRUE,Class 2,FALSE,MF,M,MF,M,M,F
-WRITE CLASS_DATA 3333,TRUE,Class 3,FALSE,MF,F,F,M,M,MF
-WRITE CLASS_DATA 4444,FALSE,Class 4,FALSE,F,MF,F,M,F,MF
-WRITE CLASS_DATA 5555,FALSE,Class 5,FALSE,MF,MF,F,M,MF,F
-RUN
DEFINE FILE CLASS_DATA
MARRIED/A20 = IF (ISMARRIED EQ 'FALSE') THEN 'Unmarried' ELSE IF (ISMARRIED EQ 'TRUE') THEN 'Married' ELSE 'Unknown';
CLASS_DESC/A50 = IF (ISMAKEUP EQ 'FALSE') THEN 'Class Attendance' ELSE IF (ISMAKEUP EQ 'TRUE') THEN 'Makeup Attendance' ELSE 'Unknown';
CLASS_TITLE/A10 = IF (ISMAKEUP EQ 'FALSE') THEN 'Class' ELSE IF (ISMAKEUP EQ 'TRUE') THEN 'Makeup' ELSE 'Unknown';
SESSION_TITLE/A10 = IF (CLASS_DESC EQ 'Class Attendance') THEN 'Session' ELSE ' ';
SESSION_1_CNT/I8 = DECODE SESSION_1 ( 'MF' 2 'M' 1 'F' 1 ELSE 0);
SESSION_2_CNT/I8 = DECODE SESSION_2 ( 'MF' 2 'M' 1 'F' 1 ELSE 0);
SESSION_3_CNT/I8 = DECODE SESSION_3 ( 'MF' 2 'M' 1 'F' 1 ELSE 0);
SESSION_4_CNT/I8 = DECODE SESSION_4 ( 'MF' 2 'M' 1 'F' 1 ELSE 0);
SESSION_5_CNT/I8 = DECODE SESSION_5 ( 'MF' 2 'M' 1 'F' 1 ELSE 0);
SESSION_6_CNT/I8 = DECODE SESSION_6 ( 'MF' 2 'M' 1 'F' 1 ELSE 0);
DUMMY/A1 = '';
END
TABLE FILE CLASS_DATA
PRINT
CLASS AS ''
CASE_ID AS ''
MARRIED AS ''
SESSION_1 AS ''
SESSION_2 AS ''
SESSION_3 AS ''
SESSION_4 AS ''
SESSION_5 AS ''
SESSION_6 AS ''
BY CLASS_DESC NOPRINT
BY DUMMY NOPRINT
ON CLASS_DESC SUBHEAD
"<DUMMY<+0><DUMMY<+0><DUMMY<+0><SESSION_TITLE"
ON DUMMY SUBHEAD
"<CLASS_TITLE<+0>CaseID<+0>Married/Unmarried<+0>1<+0>2<+0>3<+0>4<+0>5<+0>6"
ON CLASS_DESC SUBFOOT
"<CLASS_DESC<+0><ST.SESSION_1_CNT<+0><ST.SESSION_2_CNT<+0><ST.SESSION_3_CNT<+0><ST.SESSION_4_CNT<+0><ST.SESSION_5_CNT<+0><ST.SESSION_6_CNT"
ON TABLE SUBFOOT
"Total Class Attendance<+0><ST.SESSION_1_CNT<+0><ST.SESSION_2_CNT<+0><ST.SESSION_3_CNT<+0><ST.SESSION_4_CNT<+0><ST.SESSION_5_CNT<+0><ST.SESSION_6_CNT"
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,PAGESIZE='Letter',LEFTMARGIN=0.250000,RIGHTMARGIN=0.250000,TOPMARGIN=0.25000,BOTTOMMARGIN=0.250000,SQUEEZE=ON,ORIENTATION=PORTRAIT,$
TYPE=REPORT,FONT='ARIAL',SIZE=10,COLOR='BLACK',STYLE=NORMAL,GRID=OFF,$
TYPE=SUBHEAD,BY=CLASS_DESC,HEADALIGN=BODY,STYLE=BOLD,$
TYPE=SUBHEAD,BY=CLASS_DESC,LINE=1,ITEM=4,OBJECT=FIELD,COLSPAN=6,JUSTIFY=CENTER,$
TYPE=SUBHEAD,BY=DUMMY,HEADALIGN=BODY,STYLE=BOLD,BORDER-TOP=LIGHT,BORDER-BOTTOM=LIGHT,BORDER-BOTTOM-STYLE=DOUBLE,$
TYPE=SUBFOOT,BY=CLASS_DESC,HEADALIGN=BODY,STYLE=BOLD,BORDER-TOP=LIGHT,BORDER-BOTTOM=LIGHT,BORDER-BOTTOM-STYLE=DOUBLE,$
TYPE=SUBFOOT,BY=CLASS_DESC,LINE=1,ITEM=1,OBJECT=FIELD,COLSPAN=3,$
TYPE=TABFOOTING,HEADALIGN=BODY,STYLE=BOLD,BORDER=MEDIUM,COLOR=RED,$
TYPE=TABFOOTING,LINE=1,ITEM=1,OBJECT=TEXT,COLSPAN=3,$
ENDSTYLE
END
But my only one question is I really don't know how many session will a class have, some class might have 20 session where other might have 2 sessions. Is there a way to auto generate session.
WebFOCUS 7.7. Windows Server 2008. All Outputs.
WEBFOCUS 7.6.11. Windows Server 2003. All Outputs.
You should have provided sample data that is in the same format as your data source. What is your data source? Is it a SQL table? Please provide the master file and proper sample data.