VAR2PTR var,address[,length]
The value of var is put in variable pointed by address, the length, if not specified, is the same of var.
Pay attention to the use of this statement because no control is done at compile time (or at run time) to the number of moved bytes or to the length of output variable or to output address: it is very easy to cover unwanted variables without any message in the moment in which this statement is used.
Also, if address is not correct, the program can abend with an ADDRESSING EXCEPTION; address should be filled using ADDR instruction.
Parameter Name Mode Type coding Remark 1 var Input Any type 2 address Input Integer A or F 3 length Input Integer F or H or const.