BCOPY statement

Purpose: BCOPY does a binary copy from one object to another object of equal size. BCOPY will copy objects with embedded zeros.


 Syntax:

 BCOPY binobject1 TO binobject2

 Parameters:

  • binobject1 binary object to be copied to binobject2.
  • binobject2 binary object to be copied from binobject1.

Remarks: Note well that the size of binobject1 and binobject2 should be the same! Also, when specifying a pointer it should be prefixed with a '*' dereferencing operator. For example,


 BCOPY *pv1 TO v2