Capturing C input to stdin

To redirect stdin input so that you can enter it from the command prompt, do the following steps

  1. Enter the following command: SET INTERCEPT ON FILE stdin ;
  2. When z/OS® Debugger encounters a C statement such as scanf, the following message is displayed in the Log window:
    EQA1290I The program is waiting for input from stdin           
    EQA1292I Use the INPUT command to enter up to a maximum of 1000
             characters for the intercepted variable-format file.  
  3. Enter the INPUT command to enter the input data.

Refer to the following topics for more information related to the material discussed in this topic.

  • Related references
  • IBM® z/OS Debugger Reference and Messages