IBM Support

IC60796: HATS SEARCHSTRING API ALWAYS FAILS WITH -1 RETURN CODE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The SearchString API in the HostScreen class never finds the
    specified string on the screen and always returns -1.  There are
    three forms of the call and the one that is failing is the
    following:
    SearchString(String text,int direction)
    
    The command fails when you pass it a string that you know is on
    the host screen and a direction value of 1 which means search
    forward.
    

Local fix

  • Use one of the SearchString methods that specifies a position.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Developers using the SearchString or         *
    *                 SearchText API which don't specify a start   *
    *                 position for the search.                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: Using the SearchString or SearchText    *
    *                      API always fails returning -1.          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The API was internally setting the start position for the
    search incorrectly.  As a result the search was never done and
    -1 was always returned.
    

Problem conclusion

  • An incorrect start position was being used internally in the
    SearchString and SearchText API.  As a result the call fails
    and returns immediately without ever doing the search.
    The SearchString and SearchText API were changed to pass the
    correct starting position.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC60796

  • Reported component name

    RATL HATS FOR 5

  • Reported component ID

    5724U6800

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-04-16

  • Closed date

    2009-04-24

  • Last modified date

    2009-04-24

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Modules/Macros

  • HATSCOMM
    

Fix information

  • Fixed component name

    RATL HATS FOR 5

  • Fixed component ID

    5724U6800

Applicable component levels

  • R710 PSY

       UP

  • R750 PSY

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXKAY","label":"IBM Host Access Transformation Services"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.1","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
24 April 2009