Is it Possible to Review and Repeat Previously Typed Commands in CA Roscoe?

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

Introduction:

How to Use the Command Buffer to Recall and Execute Previously Entered CA Roscoe Commands

Instructions:

To recall a command back to the command line

  • Enter STATUS COMMAND on the CA Roscoe command line to get a list of the commands, monitor commands and RPFs you just executed. [Optional]
  • Type the displayed number preceded by the + sign.  
  • Or-- just type + followed by the number of commands you want to go back.
  • Then hit enter to execute the command.

For example:

This is sample output from STATUS COMMAND with duplicate commands displayed. This is the default.

COMMAND BUFFER IS 256 BYTES LONG AND CONTAINS 16 COMMANDS (SAVE DUPS = Y)

  1. STATUS COMMAND
  2. RPF.STOPPOP
  3. A D ROSCOE.RO60.SAMPJCL(MRO6030)
  4. DIS
  5. DIS
  6. DIS
  7. DIS
  8. DIS
  9. DIS
  10. DIS

To use the recall feature, for example, type +3

This will recall

A D ROSCOE.RO60.SAMPJCL(MRO6030) to the Roscoe command line. Hit enter to execute it.

Additional Information:

If you do not want to display duplicate commands, you can change this setting by issuing the STA(TUS) SESSION command. On the right hand side of the screen there is a parameter DUCPR, simply overtype this entry with an "N" or NO..

                             ROSCOE SESSION STATUS 
  ALLRECALL  ==> NOWAIT                             ATTACH     ==> NOPAUSE 
  AUTOFF     ==> 240  ON                            AUTOINDENT ==> OFF 
  AUTOINSERT ==> 1    OFF                           AWS TRANS  ==> N 
  CHAR SET   ==> US ENGLISH                         CHAR TRANS ==> B 
  CMD LINE   ==> 3  1                               COPYDEST   ==> (NONE) 
  CURREC     ==> N/A                                DATE FMT   ==> AMERICAN  SHORT 
  DELIMITER  ==> &                                  DSNCMLST   ==> ERROR 
  DSNCNT     ==> 100000                             DSNEMPTY   ==> OFF 
  DSNRECALL  ==> NOWAIT                             DUPCR      ==> YES     <======