+

Adds an integer to the current parameter in the active input buffer.

Syntax

+n

Syntax Elements

n is the integer to be added.

Operation

The + command adds the integer specified by n to the current parameter in the active input buffer.

If the number of characters in a parameter increases after a + command, then the proper result is loaded and other parameters are moved to the right.

If a parameter is preceded by a plus sign, that sign is replaced with a zero.

If the buffer pointer is at the end of the buffer, a new parameter is created by the + command.

If the referenced parameter is nonnumeric, a zero is used.

Example 1

Command PIB Before PIB After
+28 ABC^123^456
   
ABC^151^456
  

Example 2

Command PIB Before PIB After
+10 XXX^92^33
   
XXX^102^33
  

Example 3

Command PIB Before PIB After
+12 ABC^0000^45
  
ABC^0012^45
  

Go to top button