# jCL RI

Updated: 10/19/2020, 10:24:56 AM
Created: 10/19/2020, 10:24:56 AM
Last Updated By: Daniel Klein
Read Time: 2 minute(s)

Tags: buffer jcl

# Description

The command resets (clears) the primary and secondary input buffers. It takes the general form:

RI
1

or

RIp
1

or

RI(n)
1

where:

  • p specifies starting parameter from which to clear to the end of the buffer. Can be a number, or a direct or indirect reference to a buffer or select register.
  • (n) specifies the starting column from which to clear to the end of the buffer. Can be a number, or a direct or indirect reference to a buffer or select register.

# Note

The RI command clears the entire PIB and SIB.

RIp clears the PIB starting from parameter p and continuing to the end of the buffer.

RI(n) clears the PIB starting from parameter n and continuing to the end of the buffer.

The buffer pointer will be left at the end of the PIB. The primary input buffer becomes the active buffer and the secondary input buffer will be cleared.

# Example 1

| Command |  PIB Before  | PIB After |
| ------- |  ----------  | --------- |
| RI      | ABC^DEF^GHI  |           |
|         |        ^     | ^         |
1
2
3
4

# Example 2

| Command |  PIB Before | PIB After |
| ------- |  ---------- | --------- |
| RI3     | ABC^DEF^GHI | ABC^DEF   |
|  |               ^    |        ^  |
1
2
3
4

# Example 3

| Command |  PIB Before | PIB After |
| ------- |  ---------- | --------- |
| RI(6)   | ABC^DEF^GHI | ABC^D     |
|         | ^           |      ^    |
1
2
3
4

Back to jCL.