I have the following variables declared in my CL program:
Pgm (&OPT) Dcl &OPT *char 4 dcl &OPTpost *char 1 stg(*defined) defvar(&OPT 1) dcl &OPTE *char 1 stg(*defined) defvar(&OPT 2) dcl &OPTS *char 1 stg(*defined) defvar(&OPT 3) dcl &OPTD *char 1 stg(*defined) defvar(&OPT 4)If the value of &OPT is 'NYY ' (blank at the end), should not the values of &OPTPost, &OPTE, &OPTS, &OPTD, be 'N', 'Y', 'Y', and ' ' respectively? All four are 'N'. Does that seem right? What am I not understanding?
Comment