SET LASTLORC

Read syntax diagramSkip visual syntax diagram SET LASTLorc 1line
Notes:
  • 1 If line is not specified, the LASTLORC buffer is set to nulls.

Purpose

Use the LASTLORC (Last Locate or Change) option within a macro to specify the contents of the LASTLORC buffer.

Operands

line
specifies what you want saved in the LASTLORC buffer. If you omit line, the LASTLORC buffer is set to nulls.

Initial Setting

The initial setting of LASTLORC is a null string.

Notes for Macro Writers

  1. LASTLORC does not have to be set explicitly. It is normally automatically updated with the last user subcommand when a LOCATE, CLOCATE, CHANGE, or any subcommand in the FIND family is executed.
  2. LASTLORC provides a memory capability a macro can use explicitly. For example, SCHANGE uses LASTLORC so a user can repeat the last CHANGE or CLOCATE without having to reenter the data. Likewise a macro that issues a FIND or LOCATE might use this so the user need not retype a command just to continue a search.

Messages and Return Codes

This option issues no messages, it issues return codes as follows:

0
Normal
6
Subcommand rejected in the profile due to LOAD error, or QUIT subcommand has been issued in a macro called from the last file in the ring