have posted same earlier but heres putting it in a concise manner
I have flags JCL00,JCL01...thru JCL09. I have a variable PASSON which i assign to a digit ,say n,from a record which i read from a file as folows.
GETFILE READFL /*ive allocated my PS to readfl*/
&PASSON = &SUBSTR(7:7,&PASSON)
Now to check if PASSON already had the same value now as the value it had once or more times earlier, i want to check if the flag is set. I try to do it as follows
IF (&JCL0&PASSON = &STR(0)) THEN +
SET &JCL&PASSON = 1
But the above IF condition in bold does not work .Please please can someone help.