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     [Case-Opened] Format Conversion Error

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Case-Opened] Format Conversion Error
 Login/Join
 
Platinum Member
posted
Hi All,

There is a field called CODE format USAGE=P6 ACTUAL=P3

DEFINE FILE FILE1
CODE1/A6=PTOA(CODE,'P6',CODE);
END

TABLE FILE FILE1
PRINT CODE1
END
-RUN

When i run the above code, i am getting the below error.

(FOC200) INTERRUPT. DATA EXCEPTION
(FOC1130) FORMAT CONVERSION ERROR FIELD/KEY : CODE


Could any one help me in solving the above error.


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Virtuoso
posted Hide Post
DEFINE FILE FILE1
CODE1/A6=PTOA(CODE,'P6',CODE);
END

error in this define
it should be
CODE1/A6=PTOA(CODE,'P6',CODE1);

or

CODE1/A6=PTOA(CODE,'P6','(A6)');




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
<JG>
posted
quote:
CODE1/A6=PTOA(CODE,'P6','(A6)');

TYPO for CODE1/A6=PTOA(CODE,'P6','A6');

A typo is also possibly responsible for
CODE1/A6=PTOA(CODE,'P6',CODE);

The errors
(FOC200) INTERRUPT. DATA EXCEPTION
(FOC1130) FORMAT CONVERSION ERROR FIELD/KEY : CODE

Are usually on data read which would suggest that the master does not corectly map the data

However if the second is not a typo then PTOA directed to a P format may well cause it
 
Report This Post
Platinum Member
posted Hide Post
quote:

TYPO for CODE1/A6=PTOA(CODE,'P6','A6');
The errors
(FOC200) INTERRUPT. DATA EXCEPTION
(FOC1130) FORMAT CONVERSION ERROR FIELD/KEY : CODE


JG & Frank, i have used the above syntax, still the same error.


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Virtuoso
posted Hide Post
how does your real data look

just try to print the original CODE and see if that does show right
why do you want to convert an P6 value to an A6




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Platinum Member
posted Hide Post
Frank, i tried to print only that field (without any conversions) i am getting the same error.

Is this problem with the data?

I am doing this in mainframe focus, in the copybook there are REDEFINES.


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
<JG>
posted
Yes this is a problem with the way the data is described in the master.

The ACTUAL=P3 is obviously not correct.

What is it described as in the copybook
 
Report This Post
Platinum Member
posted Hide Post
JG, in the copybook the field type is S9(5) COMP-3 (Packed Decimal).


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Expert
posted Hide Post
The manual always has the answer...


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
quote:
Originally posted by Tom Flynn:
The manual always has the answer...


Hi Tom, Thanks for the link.

Including REDEFINEs as comments allows you to customize the Master File output to select the redefinitions of your choice.

I found the above statement in the manual which you have sent.

After creating an MFD for the copybook having nested REDEFINES, do we need to customize the MFD? Is yes, could you please tell me at what place customization has to be done.


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report This Post
Platinum Member
posted Hide Post
Could anyone give me an example using REDEFINES?


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
 
Posts: 135 | Registered: November 30, 2010Report 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     [Case-Opened] Format Conversion Error

Copyright © 1996-2020 Information Builders