Wednesday, September 11, 2019

MOVE statement in Easytrieve


  • Assignments(using EQ or =) assigns the value in right side to the variable inthe left side.

            Example : WS-FLAG EQ 'Y' or WS-FLAG = 'Y'

  • MOVE statement moves a string from one variable to another. MOVE statement does not transfer the value in Numeric form(even if it is used for numeric fields the value moved is in Character form). However, when we move ZEROES the value moved is Numeric.
  • MOVE LIKE statement copies fields with identical field names from one file to another.

          SYNTAX : MOVE LIKE <file1/rec1> to <file2/rec2>

No comments:

Post a Comment