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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
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