View previous topic :: View next topic
|
Author |
Message |
amalraj_ece
New User
Joined: 16 Jul 2006 Posts: 21 Location: delhi
|
|
|
|
MOVE SPACES TO variable-what is actually happenning here |
|
Back to top |
|
|
mkarmegam
New User
Joined: 28 May 2006 Posts: 13 Location: USA
|
|
|
|
Let us say you have declared a variable WS-COUNTRY PIC X(25).
The WS-COUNTRY has value 'CHINA' in it. You just want to flush out and replace with spaces. Then you just do MOVE SPACES TO WS-COUNTRY. Now the value of WS-COUNTRY is SPACES. I am thinking the question may not be as simple as I answered here. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi There,
To initialize the variable we used to move spaces to the variable otherwise it will contain junk value. |
|
Back to top |
|
|
|