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.
We have a field on our database that is defined as varchar 2000. In our master, it is defined as TX50 and TX.
When we execute the following code the draft1 field is always 0 even if the condition should cause it to be 1. We are NOT displaying or using the varchar 2000 byte field so it took me a bit to figure out the issue. What is happening is when we display the entire file, one record is appearing as 5 rows in the output because of the varchar field (there is about 200 characters in the varchar field and since we have it defined as TX50, it goes to 5 lines). I believe my define is looking at the last "line" of my 1st record and seeing blanks for both fields and setting my define to 0. If I change the varchar field to be A200 in my master, the entire record appears on only 1 line and the define works.
What is the best way to define a varchar in the master? Is there some other setting I should by entering so that my define will work when the field is defined as TX50? I thought TX50 was how it should be done so that wrapping, etc could be done with the field.
I also tried doing the calc as a compute instead of a define and I got the same result if I left the field as TX50.
Thanks.
DEFINE FILE FOLLOW_UP_INFO DRAFT1/I2=IF (FOLLOW_UP_RESPONSE NE ' ' AND FOLLOW_UP_COMPL_DT IS MISSING) THEN 1 ELSE 0; END
TABLE FILE FOLLOW_UP_INFO PRINT ACCOUNT_NUM FOLLOW_UP_RESPONSE FOLLOW_UP_COMPL_DT DRAFT1 WHERE ACCOUNT_NUM EQ '123456' END
The STRT_DT is a system date, so they are pretty much guaranteed to be unique when considering time down to the millisecond. To find the most recent assignment for a each Staff person,
TABLE FILE KDSASSGN PRINT AS_ASGNID AS_BEGDT AS_ENDDT BY AS_STAFF_NM BY HIGHEST 1 AS_BEGDTTM NOPRINT END
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006
The TX format is the old why of handling long character fields from RDBMS's. The A format was increased some releases ago to handle long character formats. The TX field format has some limitations besides the behavior of breaking a field value into multiple records. I have found that using the Annnn format is best. I have not done any testing to see if there is a significant advantage to including the V on the end of the format or not (AnnnnV).
In general, I would recommend using the Annn[V] format instead of the TX. In addition, you can set you WebFOCUS server to create Annnn[V] format fields instead of TX format fields when creating synonyms (MFDs).
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003