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     [CLOSED] Masking logic

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Masking logic
 Login/Join
 
Member
posted
Hi,

I need to replace to Number to character.
I have one input file and it contains 5 digit number value like 12345. i need to replace this value to ABCDE and store to focus file.

can you please give me some idea how to do this one?

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


Raghuraman K
 
Posts: 26 | Registered: March 16, 2007Report This Post
Virtuoso
posted Hide Post
Do a search on FTOA


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
You can use the EDIT function to convert an integer to an alpha. E.g.
FLDA/A5=EDIT(FLDI);
assume that the format of FLDI is an A5. This is just an example.

If your numeric field is format P, F, or D, use PTOA and FTOA respectively to convert to alpha. The format for these functions can be found in the Functions manual or in Help.

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


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
Virtuoso
posted Hide Post
Thanks Ginny for the additional options. I didn't have enough coffee when I answered earlier. Wink
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
Is this what he is asking ?

Is it as simple as converting a number to a string, or is it literal ?


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
Expert
posted Hide Post
Hard to say, Waz. You have to go with what he asked first. Then if it is more complex, he'll have to give us more detail. Is it a fixform input string to a MODIFY? Does he want to overlay a portion of a file? I tend to start with the KISS method and go up from there.

Plus he hasn't responded. Confused


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
Virtuoso
posted Hide Post
Good point, Waz!

Raghuraman, you can use EDIT or PTOA/FTOA as mentioned above to convert your numeric field to a string; p.e. 12345 will be represented as '12345'.

Once you have that, you may use the STRREP function to replace your digits with letters. You may need to use the STRREP multiple times, most likely once for each digit you will be converting.

Check for documentation a/o examples on STRREP and the other functions previously mentioned.

- Neftali.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Virtuoso
posted Hide Post
As far as "to store to focus file", you will need to provide more details as Ginny states.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Expert
posted Hide Post
Thi is just a failing on my part, I read the question and in trying to understand the question, analyse it too much.

The question still remains though.

Why ask to convert 12345 to ABCDE, and not 12345 to "12345"


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
Virtuoso
posted Hide Post
Maybe he is trying to implement some type of weak encryption? It's hard to tell until he decides to provide more detailed information.

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



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 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     [CLOSED] Masking logic

Copyright © 1996-2020 Information Builders