ISPF: Retrieve Previous Commands
What was that command again?
In this #kilobit, you will learn how to quickly retrieve previous commands in ISPF using the RETP
command. The RETP
command is a powerful tool that allows mere mortals, like myself, to quickly remember up to 25 previous commands. This is especially useful when you are attempting to recall a recently used command that makes War and Peace look small, and can’t afford to melt any more brain cells.
How does it work?
At a high level, it works on the Last-In, First-Out (LIFO) principle. This means that the most recent command you entered is at the top of the stack, and the oldest command is at the bottom. If you have 25 commands, and enter a 26th command, the oldest command will be removed from the list.
How to Use the RETP Command
- Type
RETP
on any ISPF command line. It will display a pop-up panel. - Scroll through the list using the F7 and F8 keys.
- Type the number of the command you want to retrieve and press Enter.
My command is cut off!
If you have a command that’s too long, it will be truncated with an >
showing as the last visible character.
Don’t worry though, the entire command is still there, and will be retrieved when the command is selected.
Summary
In this #kilobit, you learned how to quickly retrieve previous commands in ISPF using the RETP
command. This will save you time and effort when working with long commands. But remember, it’s only going to hold your last 25 commands, so use it wisely.
Until next time, may the code be with you.