|
Thanks Buck ! ur mail did really help me !Thanks once again Murali.
Murali wrote:
>D Ds >DParmr 256 >D Amtr 1 180 >D RFrmRt 181 188P 8 >D RFrmCd 189 189 >D RToRt 190 197P 8 >D RtoCd 198 198 >D REMUIn 199 199 >D RCnvRT 200 207P 8 >D RCnvCd 208 208 >D RmlTpx 209 216P 8
>0137.00 C Eval Rate = RMltPx
> YNGTEST/YGETFXRI found a decimal-data error at statement 137 >Can anybody let me knoe why im getting this >errors consecutively and how I do solve them?
The steps I take for a decimal data error normally begin with responding to
the error with a D so I can see the actual value of the variables which may
be in error. Here, it's probably RMltPx, which is probably x'40404040'
There is a good possibility that the program is not doing anything to
populate the data structure. All data structures in RPG are initialised to
*BLANK (x'4040'...) when the program starts, so if the code does not do
anything to populate the variables there, they will all be blanks (NOT
zero).
If my guess is correct, there are two approaches you can take:
1) Make sure your program always populates the variables in the data
structure
2) Specify the INZ keyword and have the compiler initialise the DS for you
I hope this helps you get started. --buck
_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
___________________________________________________ Medicine meets Marketing; Dr. Swati Weds Jayaram. Rediff Matchmaker strikes another interesting match !! Visit http://rediff.com/matchmaker?2
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.