Multiple choice technology programming languages

Which of the following statement(s) explains the difference(s) between the /INCLUDE and /COPY directives?

  1. No difference, they function the same

  2. /COPY cannot be used as a conditional directive

  3. /INCLUDE files cannot contain embedded SQL

  4. Nesting /INCLUDE directives is not allowed

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In RPG programming, /INCLUDE and /COPY directives have specific differences. The key distinction is that /INCLUDE files cannot contain embedded SQL statements (C is correct). This is a documented limitation in RPG compilers where SQL preprocessor cannot handle /INCLUDE directives. Options A, B, and D are incorrect - there are functional differences between the directives, both can be conditional, and /INCLUDE can be nested.