The SET verb in COBOL set the value of a particular variable to a specified value.
Now say I decalred a variable as
05 WS-SWITCH PIC X(01).
88 VALID-VALUES VALUE 'A', 'B', 'C'.
88 NOT-VALID-VALUES VALUE 'D', 'E', 'F'.
If I want to set the value of WS-SWITCH as 'A', we can do as
SET VALID-VALUES TO TRUE.
however, I do not know any way in which I can set the value of WS-SWITCH as 'B' or say 'E'. Can anyone please suggest how i can accomplish this in COBOL?
December 1, 2005 3:36 AM
December 3, 2005 4:29 PM