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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
edit function
 Login/Join
 
Platinum Member
posted
I cannot find the way to change a decimal number field to an alphanumberic field with no leading zeros. I am doing a letter and need to concatenate the gift amount to the end of the sentence, therefore it needs to be an alpha.


tbj
Prod WF 8.1.05,Test WF 8.1.05, WINDOWS 7 Platform, Oracle 12
Excel, PDF, Alpha
 
Posts: 132 | Location: Chapel Hill, NC | Registered: October 24, 2006Report This Post
Expert
posted Hide Post
Tracie,

PTOA function...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Virtuoso
posted Hide Post
Tracie,
You can use either the PTOA - for P fields - or the FTOA function - for F, D or P fields in DEFINE or COMPUTE. For example:
AFIELD/A12=FTOA(DFIELD,'(D10.2)','A12');


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Virtuoso
posted Hide Post
Danny
Can this also be done with a date field?

So from MYDATE/YYMD as '11th april 2007' or
'21st may 2007'

Frank




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Platinum Member
posted Hide Post
THANKS! ANY WAY TO SUPPRESS THE LEADING SPACES? THERE IS A GAP IN MY LETTER ACCOUNTING FOR THE SPACES. I MADE IT AN A12.


tbj
Prod WF 8.1.05,Test WF 8.1.05, WINDOWS 7 Platform, Oracle 12
Excel, PDF, Alpha
 
Posts: 132 | Location: Chapel Hill, NC | Registered: October 24, 2006Report This Post
Virtuoso
posted Hide Post
Looks like the answer you needed is already posted, but I was interested in another comment you made about having to concatenate on the end of a sentence. I don't know how exactly you are producing your letters, but the standard was is to include all text in the heading section. Just wanted to make sure that you know you can include fields there as well without having to convert to text or anything else as in the GIFT_AMT_FIELD in my example below.

TABLE FILE tablenm
PRINT donor_id NOPRINT
HEADING
"Dear Donor,"
" "
"Thank you for your contribution in the amount of <GIFT_AMT_FIELD>. It is sincerely appreciated."
" "
END


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Expert
posted Hide Post
You're most likely concatenating the amount to another alpha field, so this should work:

ALPHA_FIELD2/A100 = ALPHA_FIELD1 || (' ' | PTOA_FIELD);


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
Virtuoso
posted Hide Post
Leading space can be eliminated several ways:
Use a || instead of a | in your concatenation
Use the STRIP function to remove all spaces
My standard is to use SQUEEZ to squeeze all spaces into a single space. This preserves at least one space.
Isn't that "Using Functions" manual just your favroite manual of all time? ;-)


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Platinum Member
posted Hide Post
Right Francis, I am concatenating a field.

Thanks Darin, I will use the strip function because I am using the || already.


tbj
Prod WF 8.1.05,Test WF 8.1.05, WINDOWS 7 Platform, Oracle 12
Excel, PDF, Alpha
 
Posts: 132 | Location: Chapel Hill, NC | Registered: October 24, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders