View previous topic :: View next topic
|
Author |
Message |
rambabu Currently Banned New User
Joined: 18 Apr 2005 Posts: 67
|
|
|
|
what is the out of the below program?
01 emp
05 eno pic 999.
05 ename z(4).
move 19 to eno.
move emp to ename.
display emp.
display eno.
display ename. |
|
Back to top |
|
|
kvivek
New User
Joined: 09 May 2005 Posts: 51 Location: Singapore
|
|
|
|
display emp - 019
display eno - 019
display ename - SPACES
Regards,
Vivek |
|
Back to top |
|
|
vel2k8
New User
Joined: 10 Jun 2005 Posts: 11 Location: Jacksonville
|
|
|
|
Vivek,
I think you are wrong.. This should be the answer..
EMP 0190190
ENO 019
ENAME 0190
Thanks
Vel. |
|
Back to top |
|
|
kvivek
New User
Joined: 09 May 2005 Posts: 51 Location: Singapore
|
|
|
|
Vel,
You are correct... Sorry I haven't seen "move emp to ename" statement.
Regards,
Vivek |
|
Back to top |
|
|
sudheer648
New User
Joined: 23 May 2005 Posts: 97 Location: Chennai
|
|
|
|
Hi rambabu,
ENO will be 019 b'coz it moves values from right.
ENAME will 0190 b'coz it moves data from left.
EMP it is group item it is printing both eno and ename. |
|
Back to top |
|
|
|