Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

JCL RI

Description 

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

RI

or 

RIp

or 

RI(n)

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

 


                 ^ ^

 

EXAMPLE 2
Command
PIB Before
PIB After

RI3

ABC^DEF^GHI

ABC^DEF


                 ^                ^

 

EXAMPLE 3
Command
PIB Before
PIB After

RI(6)

ABC^DEF^GHI

ABC^D


^
            ^

 

Back to JCL Commands

Was this article helpful?