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]Data Field with Signs

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Data Field with Signs
 Login/Join
 
Platinum Member
posted
Hello,

We have a field that we are pulling from a Mainframe file that is using weird characters for negative or positive signs.

How do I convert that to work nice with Webfocus.

Example

{-0
}-0

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


IBM Main Frame: MVS, FIX, VSAM

Windows SQL

WF 7.7
 
Posts: 147 | Registered: June 24, 2006Report This Post
Expert
posted Hide Post
Please tell us what the definition of the columns are and what you want to transform the values to.

Are these character columns?

{-0 -> +999
}-0 -> -999

Are these weird characters due to an incorrect column definition?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
{:-) Wears a toupee
{:-0 Wears a toupee and is shocked you detected it




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Platinum Member
posted Hide Post
The file that we are trying to report off of is an extract produced by a COBOL program. We have been told by our COBOL programmers that these signs are correct and we need to convert them.

Cobol Defines the field as

S9(12)V99

We want it to display as a simple cash amount with two decimal places.


IBM Main Frame: MVS, FIX, VSAM

Windows SQL

WF 7.7
 
Posts: 147 | Registered: June 24, 2006Report This Post
Expert
posted Hide Post
I can't imagine how a COBOL program outputs {-0 as a S9(12)V99 field.

In the Master I'd define the field as 2 alpha fields and then add a DEFINE checking for the value in the sign field and multiply the number field by -1 if it's supposed to be negative.

This is easy-peasy...

Susannah!


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
Good grief - this is Zoned Decimal(for those of us who remeber '11' punches or '12' punches!!!). Look at BCD in Wikipedia to see how the sign is expressed in the high-order four bits.
HTH

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


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
 
Posts: 252 | Location: USA | Registered: April 15, 2003Report This Post
Platinum Member
posted Hide Post
I think we found a solution.

In the master we used a combination of

Ex USAGE=P15.2, ACTUAL=Z14,


IBM Main Frame: MVS, FIX, VSAM

Windows SQL

WF 7.7
 
Posts: 147 | Registered: June 24, 2006Report This Post
Expert
posted Hide Post
Jim, you mean GI glasses?

How was the Master generated? I can't reveal how long it's been since I last worked with a VSAM file, but shouldn't this type of field be taken care of without any problems, is the field defined properly in the Master?

Is this of any help:
FIELD=SEQ_NO ,E70   ,I5    ,Z5 ,$

I think this is a zoned-decimal field. A DEFINE field taking this and dividing by 100 to enable the decimal places should work.

Or am I talking through my toupee?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
There you go then.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
zoned decimal.
ouch.
something deep, very deep, in my gray matter just exploded.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Expert
posted Hide Post
quote:
my gray matter just exploded
Well, hopefully your toupee managed to keep most of it in? If not, can you reach the rest of it on the ceiling?

Zoned decimal - just had a Homer shiver moment Frowner
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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]Data Field with Signs

Copyright © 1996-2020 Information Builders