View Single Post

  #4 (permalink)  
Old 05-06-2006, 09:21 PM
Allan Allan is offline
Member
 
Join Date: May 2006
Posts: 45
Allan is on a distinguished road
Hope this helps

Quote:
01 Item-1 Pic x(30) Value "Hello World!".
01 Item-2 Pic x(30).
. . .
Display Item-1
Display Function Upper-case(Item-1)
Display Function Lower-case(Item-1)
Move Function Upper-case(Item-1) to Item-2
Display Item-2
The code above displays the following messages on the system logical output device:

Quote:
Hello World!
HELLO WORLD!
hello world!
HELLO WORLD!
The DISPLAY statements do not change the actual contents of Item-1, but affect only how the letters are displayed. However, the MOVE statement causes uppercase letters to be moved to the actual contents of Item-2.
Reply With Quote