How to retrieve previous entered CA 7 commands using the /FETCH function.

Document ID : KB000010783
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

CA 7 use many combinations of commands referred to a 'Top Line Commands' Each command has a variety of keywords within their syntax. These commands can be labor intensive and must be re-entered as needed.  To reduce or eliminate the need to type out each command, CA 7 offers a /FETCH command that retrieves top line commands entered since the last /Logon.

Instructions:

When in use, 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 command 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 CA 7 Initialization file. 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.

PF Keys can be assigned using the following command examples:

/PF01,M=LIST

/PF02,M=LPRRN

/PF03,M=XQ

Once all PF Keys have been entered, you must enter /PROF,K=SAVE to save your settings to your CA 7 profile. 

 

As always, please contact CA Technologies support for CA 7 if you have further questions.