//*
20 //STEP1 IF (CMPL.RC >= 8 & LKED.RC >= 4) THEN
21 //STEP1X EXEC PGM=*.LKED1.SYSLMOD
22 //S1END ENDIF
23 //SYSPRINT DD SYSOUT=*
24 //SYSOUT DD SYSOUT=*
//*
20 //STEP1 IF (CMPL.RC >= 8 & LKED.RC >= 4) THEN
21 //STEP1X EXEC PGM=*.LKED1.SYSLMOD
22 //S1END ENDIF
23 //SYSPRINT DD SYSOUT=*
24 //SYSOUT DD SYSOUT=*
//*
I get the following errors:
STMT NO. MESSAGE
23 IEFC019I MISPLACED DD STATEMENT
24 IEFC019I MISPLACED DD STATEMENT
I wonder if there's a problem with my IF statement. I had no problem using COND, but I'm asked to use IF instead. I cannot move the DD statements on top of the block, since that would not produce the results I want.
(I'd be happy to get some feedback here. Also this is my first post, so if there's something off/missing, just point that out.
![Smile :)](https://www.ibmmainframeforum.com/images/smilies/icon_e_smile.gif)