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.
TABLE FILE HLDOTBOUT
SUM
NET_OTB
BY CLASS_ID
BY DEPT_DESCR
BY SUBDEPT_DESCR
BY CLASS_DESCR
ACROSS MONTH_ID
ON TABLE SET PAGE-NUM OFF
ON TABLE SET BYDISPLAY ON
ON TABLE HOLD AS HLDOTBGRID FORMAT FOCUS
END
How can I programmatically get the field names of the resulting hold file so I can use a particular field name for the succeeding report? Since the field names are dynamically generated when I use across.
The result for the above code would look like this:
You can use Dialogue Manager to read the HOLD master and place the field names in DM numbered variables:
TABLE FILE CAR
SUM SALES
BY CAR
ACROSS COUNTRY
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS HOLD1
END
-*
APP FILEDEF HOLDMAST DISK hold1.mas
-RUN
-*
-REPEAT ENDREPEAT1 FOR &I FROM 1 TO 500
-READ HOLDMAST, &TEXTX
-IF &IORETURN NE 0 GOTO QUITREPEAT1 ;
-IF &TEXTX OMITS 'FIELDNAME=' GOTO ENDREPEAT1 ;
-SET &NAMELEN = &TEXTX.LENGTH - 10 ;
-SET &FIELD.&I = GETTOK(&TEXTX,&TEXTX.LENGTH,2,'=',&NAMELEN,'A&NAMELEN.EVAL');
-TYPE &FIELD.&I
-ENDREPEAT1
-QUITREPEAT1
Or...if you are looking for a particular field name (containing 'JAPAN' in this example):