RP primary command

The RP (“Record Print”) command prints the current record. The format of the output from the RP command depends on the display format when you enter the RP command.

Syntax

RP command in Disk Browse, Disk Track Edit or VSAM Update

Read syntax diagramSkip visual syntax diagram
Syntax - Disk Browse, Disk Track Edit or VSAM Update

>>-RP----------------------------------------------------------><

RP command in View or Edit

When issued from the View or Edit panel, additional parameters allow you to print a specified number of records, from the current record to the end of the data, or all displayed records.

Read syntax diagramSkip visual syntax diagram
Syntax

       .-current_rec-.   
>>-RP--+-------------+-----------------------------------------><
       +-n_recs------+   
       +-MAX---------+   
       '-ALL---------'   

current_rec
The current record is the record in which your cursor is positioned within the data area. If your cursor is not in a record, the current record is the topmost record displayed in the data area.
n_recs
Prints the next n displayed records, starting from the current record.
MAX
Prints all remaining displayed records, from the current record to the end of the data set or member.
ALL
Prints all displayed records in the data set or member.
Note: In this context, "displayed" records are those records that are currently displayable, given the settings of the Show and Shadow commands. This includes shadow lines, that is, the "substitute" records that are displayed in place of one or more records that are suppressed, excluded or not selected. For the sake of the n count, a shadow line is counted as one record, even if it represents a number of suppressed, excluded or not selected records.

Availability