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] converting A15 to P14.2

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] converting A15 to P14.2
 Login/Join
 
Gold member
posted
Hi!
Need to convert A15 to P14.2
thanks

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
Platinum Member
posted Hide Post
Hi Lera,

Did you try the function ATODBL ?

-Hari


WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML
 
Posts: 165 | Registered: September 29, 2008Report This Post
Gold member
posted Hide Post
no, NOT FAFILIAR.Could u send me a sample please?
thanks


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
TABLE FILE EMPLOYEE
PRINT LAST_NAME AND FIRST_NAME AND
EMP_ID AND
COMPUTE D_EMP_ID/P14.2 = ATODBL(EMP_ID, '09', D_EMP_ID);
WHERE DEPARTMENT EQ 'MIS';
END


WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML
 
Posts: 165 | Registered: September 29, 2008Report This Post
Gold member
posted Hide Post
Hari,

SOMWTHING IS NOT WORKING
I CODE THIS :
DEFINE FILE SWFAIMS
INPUT6/P14.2 = ATODBL(&FLD6, '09', INPUT6);
END

WHERE &FLD6 = A15

Am i doing it right?


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
&FLD6 should be a field in the table SWFAIMS.

Please research the documentation on the function ATODBL.


http://documentation.informati...?url=formatconv2.htm


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Try this. you can get this stuff from WF Help.

DEFINE FILE SWFAIMS
INPUT6/P14.2 = ATODBL(&FLD6, '15', INPUT6);
END

Syntax: How to Convert an Alphanumeric String to Double-Precision Format
ATODBL(string, length, outfield)
where:

string
Alphanumeric

Is the alphanumeric string to be converted, or a field or variable that contains the string.

length
Alphanumeric

Is the two-character length of infield in bytes. This can be a numeric constant, or a field or variable that contains the value. If you specify a numeric constant, enclose it in single quotation marks. The maximum value is 15.

outfield
Double precision floating-point

Is the name of the field that contains the result, or the format of the output value enclosed in single quotation marks.


WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML
 
Posts: 165 | Registered: September 29, 2008Report This Post
Gold member
posted Hide Post
THANKS


Valeriya

WebFOCUS 764 Servlet - MRE/Dashboard/Self Service/ReportCaster - Windows 2000
 
Posts: 68 | Location: Chicago | Registered: August 23, 2007Report This Post
Gold member
posted Hide Post
DEFINE FILE SWFAIMS
INPUT6/P14.2 = ATODBL(&FLD6, '15', INPUT6);
END

WORKED!


Valeriya

WebFOCUS 764 Servlet - MRE/Dashboard/Self Service/ReportCaster - Windows 2000
 
Posts: 68 | Location: Chicago | Registered: August 23, 2007Report This Post
Gold member
posted Hide Post
Did you try EDIT?

DEFINE FILE SWFAIMS
MYA/A15 = '&FLD6' ; 
INPUT6/P14.2 = EDIT(MYA) ; 
END



Also, if you really have just dialog mgr variables,

 
INPUT6/P14.2 WITH MYFLD = &FLD6 ; 
 


should work.


IBI Development
 
Posts: 61 | Registered: November 15, 2005Report 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] converting A15 to P14.2

Copyright © 1996-2020 Information Builders