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] Datatype compatiblity

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Datatype compatiblity
 Login/Join
 
Gold member
posted
HI,

Am trying to define a field so that i can do some manipulations. For example , i need to show the prescription number , hence i need to do some manipulations liek below :

DEFINE FILE XXX
RX/P20 = IF RX1 EQ LAST RX1 THEN ' ' ELSE RX#;
END

The format of the field is :

RX# E04 P20

Hence when i use P20 as the format i get the below error:

(FOC282) RESULT OF EXPRESSION IS NOT COMPATIBLE WITH THE FORMAT OF FIELD: RX

Even if i use D20 , i get the same error.

Can somebody help please ?

Thanks!
Janani

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


WebFOCUS 7.6.9
Windows
Excel, HTML, PDF
 
Posts: 71 | Registered: April 17, 2009Report This Post
Member
posted Hide Post
You can not put space in a numeric field



FOCUS 7.2.0S1
Mainframe - MVS 390
Excel, Flat file

Italy
 
Posts: 25 | Registered: June 23, 2009Report This Post
Virtuoso
posted Hide Post
quote:
DEFINE FILE XXX
RX/P20 = IF RX1 EQ LAST RX1 THEN ' ' ELSE RX#;
END


  
DEFINE FILE XXX
RX/P20 = IF RX1 EQ LAST RX1 THEN 0 ELSE RX#;
END


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
Member
posted Hide Post
quote:
DEFINE FILE XXX
RX/P20 = IF RX1 EQ LAST RX1 THEN ' ' ELSE RX#;
END


If you want use missing value:

DEFINE FILE XXX
RX/P20 MISSING ON = IF RX1 EQ LAST RX1 THEN MISSING ELSE RX#;
END



FOCUS 7.2.0S1
Mainframe - MVS 390
Excel, Flat file

Italy
 
Posts: 25 | Registered: June 23, 2009Report This Post
<JG>
posted
Alternativly define RX as RX=P20S

That will suppress the zero for display purposes but will allow counts to work correctly if you are using them.
 
Report This Post
Gold member
posted Hide Post
Thanks for all your help!!!

Janani


WebFOCUS 7.6.9
Windows
Excel, HTML, PDF
 
Posts: 71 | Registered: April 17, 2009Report 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] Datatype compatiblity

Copyright © 1996-2020 Information Builders