Difference between DEF and BASED ADDR
Page 1 of 1
Difference between DEF and BASED ADDR
Hi,
I'm trying to use a fiexd decimal variable in Char format as below:
Code:
DCL FD73 FIXED DEC(7,3);
DCL CH73 CHAR(4) DEF FD73;
And it gives me following error during compilation:
Code:
SEVERE AND ERROR DIAGNOSTIC MESSAGES
IEL0486I E 25 ATTRIBUTES OF 'DEFINED' ITEM 'CH73' CONFLICT WITH THOSE OF BASE. SIMPLE DEFINING ASSUMED.
But when I try the same with Based Addr function, it works fine:
Code:
DCL FD73 FIXED DEC(7,3);
DCL CH73 CHAR(4) BASED(ADDR(FD73));
Can anyone help me understand the differnece between the two scenarios described above.
I'm trying to use a fiexd decimal variable in Char format as below:
Code:
DCL FD73 FIXED DEC(7,3);
DCL CH73 CHAR(4) DEF FD73;
And it gives me following error during compilation:
Code:
SEVERE AND ERROR DIAGNOSTIC MESSAGES
IEL0486I E 25 ATTRIBUTES OF 'DEFINED' ITEM 'CH73' CONFLICT WITH THOSE OF BASE. SIMPLE DEFINING ASSUMED.
But when I try the same with Based Addr function, it works fine:
Code:
DCL FD73 FIXED DEC(7,3);
DCL CH73 CHAR(4) BASED(ADDR(FD73));
Can anyone help me understand the differnece between the two scenarios described above.
kasthuri- Posts : 212
Join date : 2013-01-27
Similar topics
» UNABLE TO DETERMINE ADDR
» How to get the record based on key
» Run Backup based on objects count
» Help on arranging the records based on KEY value horizontaly
» Selection based on part of char field
» How to get the record based on key
» Run Backup based on objects count
» Help on arranging the records based on KEY value horizontaly
» Selection based on part of char field
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|