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     How do I convert a field from zoned to integer.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How do I convert a field from zoned to integer.
 Login/Join
 
Platinum Member
posted
Hi,

I am having problem reading a mainframe flat file. I get format conversion error on the following field.

FIELDNAME=CP_CAB_QTY,ALIAS=E15, USAGE=P9, ACTUAL=Z9,$

Thanks


WF7.1.4 Prod/Test, MRE, self serve, DM
 
Posts: 176 | Location: Desplaines | Registered: August 05, 2004Report This Post
<JG>
posted
What is the actual format of the Zoned decimal?

If it contains a decimal point then that must be in your USAGE format.

So P9 is in valid if the Zoned value is actually equivalent to P7.2
 
Report This Post
Platinum Member
posted Hide Post
It takes up 9 bytes in the file with the sign being the last byte. When I look at the field in hex a value of 2 is represented as
FFFFFFFFC
000000002

The file has multiple record formats and a different layout can have spaces in there. I generally deal with packed decimal fields using CHKPCK function, but the function always returns an error code in this case. Any ideas?

Thanks.


WF7.1.4 Prod/Test, MRE, self serve, DM
 
Posts: 176 | Location: Desplaines | Registered: August 05, 2004Report This Post
<JG>
posted
quote:
The file has multiple record formats and a different layout can have spaces in there.


Someone has made big mistake somewhere.

A numeric can not contain a space. That implies it is text not numeric.

Options are get the idiots to do it correctly or

Parse the field and change spaces to the correct delimiter. Ugly but your only option.
 
Report This Post
Virtuoso
posted Hide Post
You need to set up a Master file that accounts for the various record layouts.

See: http://documentation.ibi.com/masterindex/html/html_wf_53/wf53ddlang/vsam9.htm

or search on the keyword RECTYPE


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Platinum Member
posted Hide Post
I was able to find the solution on the techsupport website. Here is the URL.
http://techsupport.informationbuilders.com/sps/73291001.html


WF7.1.4 Prod/Test, MRE, self serve, DM
 
Posts: 176 | Location: Desplaines | Registered: August 05, 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     How do I convert a field from zoned to integer.

Copyright © 1996-2020 Information Builders