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?
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!