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

Figure 1. Syntax - Disk Browse, Disk Track Edit or VSAM Update

1 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.

Figure 2. Syntax

1 RP
1! current_rec
1 n_recs
1 MAX
1 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

Related tasks and examples