AS400 Questions and Answers

What is purpose of declarative statement DEFN?

Depends on the factor 1 value it will do two things:

  • If the factor1is *LIKE then DEFN opcode defines the new field based on the attributes old field.
  • If the factor 1 is *NAMVAR then DEFN opcodes defines the field as a data area.