Previous Topic: /EMAIL CommandNext Topic: /FETCH Usage Notes


/FETCH Command

The /FETCH command retrieves top line commands entered since the last /LOGON.

Commands entered on the top line are stored in a buffer known as a command ring. The command ring can hold up to five top line commands. When the sixth command is entered, the oldest command in the ring is erased so that the new one can be stored. In this way, the five most recent commands are saved.

You can override the default number of commands stored in the command ring buffer using the MAXRINGSZ= keyword on the OPTIONS statement in the initialization file.

Note: For more information, see the Systems Programming Guide.

Repeated executions of /FETCH retrieve commands in the order that they are stored in the ring, from most recent to the oldest.

Use /PF to assign this command to a PF key for ease of use. Also, by default, PF2 is set to perform the /FETCH command.

This command has the following format:

►►─ /FETCH ───────────────────────────────────────────────────────────────────►◄