Focal Point
[CLOSED]Integer with $ from Query

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9477002186

March 11, 2016, 04:10 AM
WF World
[CLOSED]Integer with $ from Query
Hi,
I'm getting asset value from our Teradata DB with comma seperated and appended with $ symbol using below command. I've created master file using the semantic view but I'm getting blank value in Assets. How do I reproduce the comma seperated value and Dollar($) symbol in Webfocus.

Note:I don't want to manually make changes to Synonym as we refresh it frequently.

Please suggest.

 TRIM(TRD_MKT_VAL_AM (FORMAT 'GLLZ(I)D9(F)')) AS ASST_VAL  

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8.1.03
Windows, Linux All Outputs
March 11, 2016, 05:17 AM
Tony A
If you are trying to do this within the GUI then compute a new field and you will see in the "new compute field" dialogue that you can add attributes to the format as necessary. Just click on the "format" tab to add options.

This is normally covered in basic training.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
March 11, 2016, 10:25 AM
Vivian
All of those formats are shown in the WebFOCUS Keysheet available from www.aviter.com or Amazon.


Vivian Perlmutter
Aviter, Inc.


WebFOCUS Keysheet Rel. 8.0.2
(Almost) 1001 Ways to Work with Dates thru Rel. 8.0.2
Focus since 1982
WebFOCUS since the beginning
Vivian@aviter.com

March 11, 2016, 12:00 PM
BabakNYC
What USAGE= and ACTUAL= values does Create Synonym assign to this field?


WebFOCUS 8206, Unix, Windows
March 13, 2016, 05:25 AM
WF World
hi Babak,
Below is format it is generated using GUI.

 FIELDNAME=ASSET, ALIAS=ASSET, USAGE=P33.2, ACTUAL=A53V, 



WebFOCUS 8.1.03
Windows, Linux All Outputs
March 13, 2016, 05:28 AM
WF World
Tony,
Before I raise request for adding compute column to my admin, I just want to understand that will compute column remain if I refresh the master file when I've new changes.


WebFOCUS 8.1.03
Windows, Linux All Outputs
March 13, 2016, 08:44 AM
Tony A
quote:
I just want to understand that will compute column remain if I refresh the master file when I've new changes


This question suggests that you have had no training in WebFOCUS, so I would urge you to push your management for basic training or a refresher.


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
March 14, 2016, 10:28 AM
BabakNYC
Do you have a field called ASST_VAL in your synonym? Unless this is something very peculiar to Teradata, I don't understand how Create Synonym would decide to make an ACTUAL of A53V into a USAGE of P33.2.


WebFOCUS 8206, Unix, Windows
March 15, 2016, 05:04 AM
WF World
quote:
USAGE


Yes Babak, thats surprising us too. Not sure how to proceed futher from here.

Tony - Usually we don't have access to create master files, we have raise request to Admin to just check if refresh will takeoff compute and define in synonyms.
From my understanding refresh will take off computes and defines.
So this will not work for us


WebFOCUS 8.1.03
Windows, Linux All Outputs
March 15, 2016, 10:59 AM
BabakNYC
Ask your DBA to provide you with the DDL of the view so you can see what it looks like. I'd also ask him to give you the description of the view. You can use "SHOW VIEW VIEW_NAME" or "HELP COLUMN VIEW_NAME" to get all column names and datatypes in the view. Use this to look up the column descriptions in the Teradata Adapter Manual and find out what behavior you should expect. An ACTUAL of A53V tells me Create Synonym looks at ASSET_VAL as a string (most likely because it's described as a string in Teradata). If for some reason WebFOCUS is turning the USAGE to a P33.2 automatically, then you should call tech support to find out why that's happening.

By the way, I tested Refresh Synonym on a SQL Server table and the DEFINE and COMPUTE weren't deleted.

This message has been edited. Last edited by: BabakNYC,


WebFOCUS 8206, Unix, Windows