View previous topic :: View next topic
|
Author |
Message |
crrindia
Active User
Joined: 02 Jul 2005 Posts: 124 Location: Gurgaon
|
|
|
|
Hi All, if I wanted to display the value which we have coded at 88 level, how to code it?
I have coded like shown below...
WORKING-STORAGE SECTION.
01 EMP-CODE PIC X(02).
88 MFG-DEPT VALUE 'MF'.
PROCEDURE DIVISION.
MAIN-PARA.
DISPLAY 'CODE IS:' EMP-CODE.(Here Iwanted to display the value MF)
STOP RUN.
Thanks!
Rathna. |
|
Back to top |
|
|
David P
Active User
Joined: 11 Apr 2005 Posts: 106 Location: Cincinnati Ohio
|
|
|
|
Just before your display statement you can have one more statement as
SET MFG-DEPT TO TRUE.
This will do what you want.
-regards,
David P. |
|
Back to top |
|
|
crrindia
Active User
Joined: 02 Jul 2005 Posts: 124 Location: Gurgaon
|
|
|
|
Hi David, Thank you very much. It workded fine.
Thanks!
Rathna.
David P wrote: |
Just before your display statement you can have one more statement as
SET MFG-DEPT TO TRUE.
This will do what you want.
-regards,
David P. |
|
|
Back to top |
|
|
|