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
how you will find an error which is not in the first page of the subfile without using rolldown key?
what is the difference between normal upddta to pf and updating using dfu program?
how to define global parameter in ile ?
writing an sql statement from selecting records from two files using single statement and nested select statement.
What Is The Purpose Of The "n" In The Following Calculation Specification?
distinguish between terminating a program through seton lr and return?
how to define to define a hidden filed in dspf ?
how can u check no of records in a file?
can anybody give the interview questions list of RLU. plz mail me: dinesh_sati07@yahoo.com
which are the query selection criteria, which can be given in a query?
what are the basic features of seu?
What Is Ddm ?
If I want to execute Sftp commands(LS & GET) stored in Physical file from CL program automatically...Can u Plz tell me how can I do this?...How the script will look?? THANX FOR NY HELP...
how many maximum spaces could be given in o specs?
how can I automatically refresh a web page?