Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

WHAT IS DECIMAL DATA ERROR IN RPG IV...WHEN WILL IT HAPPENS?

Answer Posted / madhusudhan

For the above answer posted by Narendra, there are 19
People who told yes, but did they test this or verify.
Create a Char variable of Lenth 5 and Numeric variable of
lenth 5 and see the result .
D Num1 S 5 P 0
D Char1 S 5 A INZ('ABCDE')
C MOVE Char1 Num1
C Num1 DSPLY

Num1 will not give a Decimal Data error , instead it gives
the values Num1 = 12345. If you use eval
C EVAL Num1 = Char1
Eval will fail during compilation itself.
As per my analysis , Decimal Data error occurs when junk
values or special characters are passed to Numeric
variable. ( Ex : !, @ , #.$) . For testing Intialize the
above variable Char1 with atleast one special character and
just see the result.

This is only one example which i have given , and i heard
that during Parameter passing also this occurs , but dont
know in which scenerio , if anyone knows more on Decimal
Data error, kindly plz post.

Is This Answer Correct ?    24 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In 'o' Specs What Is The Opcode For Write?

1215


what is the maximum number of record formats in dspf?

1688


is it there an easy way to determine if an html section is available to issue a wrtsection upon?

976


how do you specify the number of records to roll in a subfile ?

2176


what are dds required for subfile?

1049


which type of object is used in db2/400?

1057


how to run other job when one job is active?

1020


what is procedure prototype and procedure interface.

1230


In AS/400 projects in Companies whats the meaning of production support team.what production support involves.also what work does development,maintenance involve what are the other teams or processes that are available for as400 project.

9079


describe the difference between the dowxx and douxx operations?

2140


which of the cl command can be used to determine which logical files are dependent on a specific file?

1098


what is the maximum number of parameters allowed in rpg?

1747


how do you use commitment control in rpg program ?

2075


what opcode will be used to test the zone of a character field?

1787


can a single screen format occupy a screen area above and below a subfile format ?

1683