Previous Topic: Use Verify and Change DataNext Topic: Search for Data


Example

  1. The entries on the following screen show how to change the contents of the CUST‑NAME field from JIMMY to RONALD.

         CA InterTest CORE COMMAND BUILDER - BREAKPOINT-RELATED AREAS  (CORE=Bkpt)                                                                                     Specify area to be displayed, changed or moved:             Task number: 00081                                                                                     COBOL name: CUST-NAME_____________________                                                                                                                        Special element: ________   (Enter highlighted keyword)                            SSCR Saved screen image   BMSG Breakpoint message       CMAR Commarea            FCAR Facility cntl area   EIB  Exec interface block     TUAR TCT user area       BLLS COBOL BLL cells      CWK  COBOL working storage    TGT  COBOL TGT           LCL  COBOL local storage  DSA  COBOL DSA                                                                                                                      SCAN VALUE: _________________________________________           DATA  FORMATS    SCAN RANGE: ______             B to scan backwards: _         ----------------                                                               | P' ' = Packed |  To VERIFY and/or CHANGE Data:                                | X' ' = Hex    |  Existing data: C'JIMMY'______________________________        | C' ' = Char   |       New data: C'RONALD'_____________________________        -----------------                                                                                   MOVE From ______________________________    To   _____________________________                                                                                                                                                                    PF1 Help       2            3 End        4 Return     5            6             PF7            8            9 Complex   10           11           12  

    CA InterTest for CICS performs the requested change only if it verifies that the current contents of CUST‑NAME are JIMMY. If CA InterTest for CICS does not find JIMMY in CUST‑NAME, it will not perform the change and displays a message to that effect.

  2. To change the contents of CUST‑NAME to RONALD regardless of its current contents, enter nothing in the Existing data field, and in the New data field enter:
    Existing Data:
    New data: C'RONALD'
    
  3. To confirm the contents of CUST‑NAME without changing them, enter nothing in the New data field, and in the Existing data field enter:
    Existing data: C'JIMMY'
    New Data:
    
  4. CA InterTest for CICS informs you whether the prescribed data was found in the designated field.
  5. Combine data formats in a single expression.

Example

To specify New data as the character string KEY‑CODE followed by two bytes of binary zeros, enter:

Existing data:
New data: C'KEY‑CODE'X'0000'