Decimal Data Error In Cobol/400
Contents |
? Ask a question, help others, and get answers from the community Discussions Start a thread and discuss today's topics with top experts Blogs Read the latest tech blogs how to handle decimal data error in as400 written by experienced community members Decimal data error - AS/400 question juslikdat1 440
Decimal-data Error Occurred In As400
pts. Tags: Thanks! We'll email youwhen relevant content isadded and updated. Following Follow AS/400 Thanks! We'll email youwhen mch1202 error in as400 relevant content isadded and updated. Following Follow AS/400 errors AS/400 question: Why do we get a decimal data error at first place? As per my understanding, When there are incorrect attributes
How To Handle Decimal Data Error In Rpg
(i.e, character being moved to numeric or numeric being moved to character or data lengths not matching), that could cause this error. But, when you can actually do a move operation and it doesn’t throw any error, and you have %char built in functions and all to covert numeric to character, why should a decimal data error come? Can anyone please rpgle monitor decimal data error help me with this question? Thanks. Asked: February 6, 20138:18 AM Last updated: February 7, 20132:49 AM Related Questions AS/400 - CL/RPG Getting a decimal data error when making a change in COBOL AS/400 Test for a decimal error. Converting amount in character field to numeric in rpgle Moving a numeric field in ILE RPG Answer Wiki Thanks. We'll let you know when a new response is added. Please enter an answer. Send me notifications when members answer or reply to this question. Register Hereor login if you are already a member E-mail User Name Password Forgot Password? By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy Answer Answer Processing your response... Discuss This Question: 7  Replies There was an error processing your information. Please try again later. Thanks. We'll let you know when a new response is added. Please enter a reply. Send me notifications when members answer or reply to this qu
This document provides information about finding and correcting decimal data errors. Resolving the problem It is not uncommon for programs to have problems with decimal data errors when working with files that originated on mainframes, non-IBM systems, and the IBM System/36. Program-described files are normally used on these systems and can result in non-numeric hexadecimal values in numeric fields. It is also possible for a program on the IBM OS/400 or IBM i5/OS system to do this because program-described files are still available, especially for programs that have been migrated and are running in the System/36 environment. The following example http://itknowledgeexchange.techtarget.com/itanswers/decimal-data-error-5/ takes advantage of the field descriptions in externally-described files to correct the problem. The program reads in each record and writes it out making assumptions on what the correct value should be. You are responsible for evaluating the results of using this program. Because it is necessary to make assumptions, the results might not be what you require. However, there is a very good chance the results will be http://www-01.ibm.com/support/docview.wss?uid=nas8N1018444 satisfactory. Always keep a back-up copy of the file until you evaluate the results and are comfortable with the end result. In the case of zoned numeric fields, hexadecimal values such as blanks, control characters, and unassigned hexadecimal values are normally converted to zeroes. When letters or special characters (for example, the ampersand) are encountered, the first hexadecimal character is converted to an F. For example, the letter A is C1 in hex, while the letter a is 81 in hex. Both are converted to F1, which is the number one. In testing, 8aA69 is converted to 81169. However, when certain values are encountered in certain positions in the field, the entire field can be converted to a zero value. For packed numeric fields, an incorrect value in any position normally causes the entire field to be converted to a zero value. One exception was noted in testing. A 10-digit packed field requires a 6-byte field, and the first position of the first byte is not used. An incorrect value in that first position still produced a correct converted value. All other testing resulted in a zero value being produced. To create and run the program to correct your data, you should do
decimal data error usually during computation, a good solution can be provided by applying simple data error check like: if field-a not numeric move zero to field-a. Share this article : Post a Comment Home affiliate marketing Popular post Decimal data error decimal data error For numeric fields offering decimal data error usually during computation, a good solution can be provided by applying simple check like: if... Blog Archive ▼ 2012 (1) ▼ June (1) Decimal data error Labels Decimal data error (1) error data decimal (1) Followers Support : Creating Website | Johny Template | Mas Template Copyright © 2011. COBOL AS/400 ERROR SOLUTION - All Rights Reserved Template Created by Creating Website Published by Mas Template Proudly powered by Blogger