Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] left justified data is blank - how to remove it?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] left justified data is blank - how to remove it?
 Login/Join
 
Gold member
posted
HI.
Please help me to find a function what would remove a blank data in a field(assuming that data looks like this ' 10.70') I need to dissplay only 10.70. I'm creating a WF page where use following logic:
TABLE FILE WFAIMS
PRINT
Fuel_Charge
ON TABLE SAVE AS JAPAN FORMAT ALPHA
END
-*
-RUN
-READ JAPAN &FC.A15.

table's structure has following format FUEL_CHG P14.2

On HTML page I'm getting only one digit of the value '1' and I need to display 10.70.
Looks like the data in a table stored as
| 10.70|

Please advise !

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


Valeriya

WebFOCUS 764 Servlet - MRE/Dashboard/Self Service/ReportCaster - Windows 2000
 
Posts: 68 | Location: Chicago | Registered: August 23, 2007Report This Post
Expert
posted Hide Post
When you do your SAVE, what does the browser say that the length of the field is?


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Gold member
posted Hide Post
not sure what ur talking about...save what?


Valeriya

WebFOCUS 764 Servlet - MRE/Dashboard/Self Service/ReportCaster - Windows 2000
 
Posts: 68 | Location: Chicago | Registered: August 23, 2007Report This Post
Platinum Member
posted Hide Post
Increase the variable length and check,

eg: -READ JAPAN &FC.A30.

It worked for me sometime ago.

Hari
WF-769


WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML
 
Posts: 165 | Registered: September 29, 2008Report This Post
Expert
posted Hide Post
quote:
ON TABLE SAVE AS JAPAN FORMAT ALPHA

This the SAVE Ginny is talking about.

The SAVE command tells you the format of the file and the individual fields.

e.g.

TABLE FILE CAR
PRINT
COUNTRY CAR MODEL SALES
ON TABLE SAVE AS H001
END


Produces this:

 0 NUMBER OF RECORDS IN TABLE=       18  LINES=     18
 ALPHANUMERIC RECORD NAMED  H001
 FIELDNAME                         ALIAS         FORMAT        LENGTH
 COUNTRY                           COUNTRY       A10            10
 CAR                               CARS          A16            16
 MODEL                             MODEL         A24            24
 SALES                             UNITS         I6              6
 TOTAL   


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
check out FTOA or PTOA
your data element is stored as packed decimal
so the position of the decimal point is an artefact of the display, not contained in the field content itself.
FTOA is 'floating point to alpha'
PTOA is 'packed to alpha'




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Gold member
posted Hide Post
Thank you All!


Valeriya

WebFOCUS 764 Servlet - MRE/Dashboard/Self Service/ReportCaster - Windows 2000
 
Posts: 68 | Location: Chicago | Registered: August 23, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] left justified data is blank - how to remove it?

Copyright © 1996-2020 Information Builders