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 TIG00514 SUM NM_PE N_EMPREGADO_NOVO NM_EMPREGADO COMPUTE M_SLDO_COLOC/D19.2 = .... BY N_CLIENTE_NOVO WHERE Z_DIA EQ '20130814'; WHERE TMH00041.Z_INICIO LE '20130814' AND TMH00041.Z_FIM GT '20130814'; WHERE I_VARZ_DIRZ_EMP EQ 'S' OR I_VARZ_DIRZ_PRTL EQ 'S' OR I_VARZ_DGE EQ 'S' OR I_VARZ_DBI EQ 'S' OR I_VARZ_DRC EQ 'S'; IF I_DPNZ_INF_MES EQ 'S' WHERE C_UO NE '09287'; ON TABLE SET CDN ON ON TABLE HOLD AS FINAL1TEMP END
You're saying is that i would put the fields defined below the compute?
TABLE FILE TIG00514 SUM NM_PE N_EMPREGADO_NOVO NM_EMPREGADO COMPUTE N_EMPREGADO2/P6 = .... N_EMPREGADO_NOVO/A6 = ... N_CLIENTE2/I11=... N_CLIENTE_NOVO/A11=FTOA(N_CLIENTE2, '(D11c)','A11'); NM_EMPREGADO/A200 = ... M_SLDO_COLOC/D19.2 = .... BY N_CLIENTE_NOVO WHERE Z_DIA EQ '20130814'; WHERE TMH00041.Z_INICIO LE '20130814' AND TMH00041.Z_FIM GT '20130814'; WHERE I_VARZ_DIRZ_EMP EQ 'S' OR I_VARZ_DIRZ_PRTL EQ 'S' OR I_VARZ_DGE EQ 'S' OR I_VARZ_DBI EQ 'S' OR I_VARZ_DRC EQ 'S'; IF I_DPNZ_INF_MES EQ 'S' WHERE C_UO NE '09287'; ON TABLE SET CDN ON ON TABLE HOLD AS FINAL1TEMP END
7706M AIX 7.1 HTML
Posts: 22 | Location: Portugal | Registered: May 07, 2015
The reason FTOA does not get translated to SQL is because it does not exist as a part of the adapter. Unfortunately I don't think there is a way for us to over come this, but you could put in a New Feature request for IBI to enhance the adapter for FTOA.
As Francis said, you should be able to make the field a compute and where as the FTOA won't translate to SQL, in theory it should process the request with the correct Group By's etc and do the function after it returns to the Reporting Server without bringing back extra rows.
I have found that this doesn't always work like that and what I have done to resolve it in the past is I would hold my data and apply FTOA on the second pass of the hold file. This way I can guarentee the most efficient execution of the query. Also if this is a field that you find you are converting often, perhaps consider creating a virtual field that would cast your field to the needed data type. As long as your DB supports that (Oravle does).
Eric Woerle 8.1.05M Gen 913- Reporting Server Unix 8.1.05 Client Unix Oracle 11.2.0.2
Posts: 750 | Location: Warrenville, IL | Registered: January 08, 2013
Hi, DB_EXPR solved my problem since i'vw upgraded to 7706M. Now i have another question I would like to do something like this: where a in(select b from fileB). As far as i know i could use something like this:
WHERE a IN FILE fileB; But since there is no "a" field in fileB is there any way to do this?
thanks one more time.
7706M AIX 7.1 HTML
Posts: 22 | Location: Portugal | Registered: May 07, 2015
If you cannot join the two tables, then you might be able to dump all b values into a SAVE file and use it in your WHERE clause. It depends on how big fileB is. If you run into limits on the number of B_VALS being passed, the NATVFLG setting will raise that limit.
TABLE FILE fileB
BY b
ON TABLE SAVE AS B_VALS
END
TABLE FILE fileA
PRINT .....
BY ....
WHERE a IN FILE B_VALS ;
-*ON TABLE SET NATVFLG 256
END
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
I've tried to use join instead but i can't generate a outer join: (TIG00540 and TDW032 are two SQL masters):
JOIN CLEAR *
JOIN TIG00540.C_UO_ORIG IN TIG00540 TO TDW032.C_UO IN TDW032 AS J7 END
TABLE FILE TIG00540 PRINT * WHERE Z_DIA EQ '20150528'; WHERE (I_NOVO_OPE EQ 'S' OR I_NOVO_OPE EQ '-'); WHERE M_CRED_VNCD GE 0.5; WHERE TIG00540.C_UO_ORIG = WF_TDW032_RDT0295_20150608.C_UO OR C_UO_ORIG EQ '00993' OR '09420'; ON TABLE SET ASNAMES ON ON TABLE HOLD AS TIG540 FORMAT SQLNEZ END
The sql trace shows a inner join:
FROM TIG00540 T1, TDW032 T2 WHERE (T2."C_UO" = T1."C_UO_ORIG")
7706M AIX 7.1 HTML
Posts: 22 | Location: Portugal | Registered: May 07, 2015