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] convert alpha to integer

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] convert alpha to integer
 Login/Join
 
Gold member
posted
I seem to have a mental block but can someone assist me on converting an Alpha field into an integer?

i extract data from a source and it can only extract as alpha, i have to remove a character which i did and i'm at the point where i would ned to convert the field to an integer but can't seem to do this. I'm trying to create a define field in the synonym

This message has been edited. Last edited by: <Kathryn Henning>,


WebFocus 8.02, SQL Server 2008r2
 
Posts: 51 | Registered: November 30, 2012Report This Post
Platinum Member
posted Hide Post
DEFINE FILE EMPLOYEE
EMPID/I9 = EDIT(EMP_ID);
END
TABLE FILE EMPLOYEE
PRINT EMP_ID AS 'A9 FORMAT'
EMPID AS 'I9 FORMAT'
BY LAST_NAME AS 'LAST NAME'
END


WF 8 version 8.2.04. Windows.
In focus since 1990.
 
Posts: 189 | Location: pgh pa | Registered: October 06, 2004Report This Post
Platinum Member
posted Hide Post
You can add a DEFINE to the synonym.
DEFINE EMPID/I9 = EDIT(EMP_ID); ,$


WF 8 version 8.2.04. Windows.
In focus since 1990.
 
Posts: 189 | Location: pgh pa | Registered: October 06, 2004Report This Post
Platinum Member
posted Hide Post
All of these things are documented in the WebFOCUS Keysheet Release 8.0.2. It is such a great quick reference guide --- You will save so much time! Why beat your head against the wall, when you can have the answer right at your fingertips. You really should check it out.

Vivian
www.aviter.com


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

 
Posts: 191 | Location: Henderson, Nevada | Registered: April 29, 2003Report This Post
Expert
posted Hide Post
CS

Look for the SQL prefix to include SQL functions in synonyms. Works like a dream in passing to RDBMS.

Something like -
DEFINE MYINT/I9 = SQL.SUBSTR(column, 2, 9); $

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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Gold member
posted Hide Post
Hello Spence,Vivian,Tony,

Thank you for the reply these will really help me and i will certainly look more into the documentation.

Thanks again Smiler


WebFocus 8.02, SQL Server 2008r2
 
Posts: 51 | Registered: November 30, 2012Report 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] convert alpha to integer

Copyright © 1996-2020 Information Builders