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 have a 300+ line sql passthru and named some of the columns as a_fg, b_promised for sorting, my thinking was I would be able to save the file as focus hold file then rename them, I've tried using define and compute with no luck and ideas?
Secongd question is how do you change the properties of a column in a heading?This message has been edited. Last edited by: DaveZ,
Why would you want to rename a column? You can always use the AS phrase while reporting... Changing the properties of a column in a heading ... I think you mean the way the column is presented? If that's indeed the case, then use DEFINE to create a new field with the desired properties (format and edit options) and use that field in the heading.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Maybe I didn't explain myself clear enough...it's data that I'm trying to change not a column name. In sql I saved the data as a_fg, b_promised and c_ and d_ and so on, so when I sort on the column the the data comes out the way the user wants it. I've tried to do a define with no luck, but a define should work correct?
The DEFINE should in that case take care of stripping the a_ b_ c_ aso. But you do need to keep sorting in that way, so you'll need both fields in the request: BY ORIG_FIELD NOPRINT BY DEF_FIELD or some such code.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
I'M GETTING THE FOLLOWING ERROR FOR DESCRIPTION ON FIle code follows
(FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: LOB1
APP PATH MFGVIS APP DELETEF MFGVIS LOB1 MASTER DEFINE FILE LOB1 RECORD_TYPE_2/A35 = IF RECORD_TYPE EQ 'A.FG' THEN 'FG' ELSE ''; AVG_AR_TERM/D20.0 = IF AVG_AR_TERMS GE 0 THEN AVG_AR_TERMS ELSE 0; END APP HOLD MFGVIS END ENGINE SQLORA SET DEFAULT_CONNECTION mfgvis
// SQL HERE
END TABLE FILE SQLOUT BY PLANT_C BY PART_X BY RECORD_TYPE PRINT BALANCE RECORD_TYPE END_PAYWK DESCR_X YIELD_6_MONTH_N INDUSTRY_CODE AVG_AR_TERMS ON TABLE NOTOTAL ON TABLE HOLD AS LOB1 FORMAT FOCUS INDEX PLANT_C PART_X END TABLE FILE LOB1 SUM 'LOB1.SEG01.BALANCE' BY 'LOB1.SEG01.PART_X' NOPRINT BY RECORD_TYPE NOPRINT BY RECORD_TYPE_2 ACROSS 'LOB1.SEG01.END_PAYWK' AS '' ON 'LOB1.SEG01.PART_X' PAGE-BREAK ON TABLE SUBHEAD "company name" "&DATEMDYY <+0> LINE OF BALANCE SUMMARY BY PLANT" HEADING "ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT EXL2K END