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
masking syntax
 Login/Join
 
Platinum Member
posted
Could someone assist me please...I'm trying to mask out the first 5 of a ssn with the following syntax in a define

 MASKSSN/A09=MASK(disbusprnssn, '*****9999'); 


I've also tryed something in a compute
 COMPUTE MASKSSN/A9 = MASK (disbusprnssn, '*****9999'); NOPRINT 



Nethier are working...




Prod: WebFOCUS 7.6.10 MRE
Oracle/Sybase
Test: DevStudio 7.6.6
WF Server 7.6.6
Report Caster 7.6.6
Web Server - Tomcat
MS Windows XP SP2
Output: HTML, Excel 2000 , PDF, CSV, DOC

 
Posts: 133 | Registered: December 29, 2006Report This Post
Expert
posted Hide Post
quote:
COMPUTE MASKSSN/A9 = MASK (disbusprnssn, '*****9999'); NOPRINT



S/B

COMPUTE MASKSSN/A4 = EDIT (disbusprnssn, '$$$$$9999'); NOPRINT


$ sign MASKS, 9 displays that character
If you only want the last four, the format S/B A4...

Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Platinum Member
posted Hide Post
I've got it ....thanks




Prod: WebFOCUS 7.6.10 MRE
Oracle/Sybase
Test: DevStudio 7.6.6
WF Server 7.6.6
Report Caster 7.6.6
Web Server - Tomcat
MS Windows XP SP2
Output: HTML, Excel 2000 , PDF, CSV, DOC

 
Posts: 133 | Registered: December 29, 2006Report This Post
Virtuoso
posted Hide Post
and for future reference, any other characters beside the 9 or $ (such as a slash / or dash - ) would be included into the output like
EDIT(SSN,'999-99-9999'); but would also need to be added to the format length of the output field. - Glad you got what you needed.


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
Virtuoso
posted Hide Post
If you want the '*****' as part of the mask, then COMPUTE MASKSSN/A9 EDIT(disbusprnssn,'$$$$$*****9999')


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
Leah...I found out yesterday that this is how I need to accomplish what I was trying to do....however I can still not answer why this worked I was cetain that this would work:

COMPUTE MASKSSN/A9 EDIT(disbusprnssn,'*****9999')

Can you explain this for me please....




Prod: WebFOCUS 7.6.10 MRE
Oracle/Sybase
Test: DevStudio 7.6.6
WF Server 7.6.6
Report Caster 7.6.6
Web Server - Tomcat
MS Windows XP SP2
Output: HTML, Excel 2000 , PDF, CSV, DOC

 
Posts: 133 | Registered: December 29, 2006Report This Post
Virtuoso
posted Hide Post
quote:
COMPUTE MASKSSN/A9 EDIT(disbusprnssn,'*****9999')

Can you explain this for me please....


When using a mask, if you want to replace characters with other characters you have to tell the Edit routine that you are doing so,

So if you said EDIT(ssn,'999-99-9999'), you are using all of the characters and inserting dashes. If you want to replace characters you use the '$' to indicate the character, then the next character is what you want to replace it with. So EDIT(ssn,'$-$-$-$-99999') would give '----99999' in the field where 99999 would be the last five characters of ssn. Hope this makes sense to you. Your way, you insert the ***** and then get the first four characters on the ssn.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
Thanks for the explaination.

Timothy




Prod: WebFOCUS 7.6.10 MRE
Oracle/Sybase
Test: DevStudio 7.6.6
WF Server 7.6.6
Report Caster 7.6.6
Web Server - Tomcat
MS Windows XP SP2
Output: HTML, Excel 2000 , PDF, CSV, DOC

 
Posts: 133 | Registered: December 29, 2006Report This Post
Expert
posted Hide Post
quote:
COMPUTE MASKSSN/A9 EDIT(disbusprnssn,'*****9999')


This line of code is missing an equal sign in front of EDIT and a semicolon at the end.

COMPUTE MASKSSN/A9=EDIT(disbusprnssn,'*****9999');

I don't know if that is your problem. I would think you would have gotten an error message if the code was actually in your program that way.


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
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders