IBM Support

PI48224: CLEARCASE CHECKIN FAILS WITH SNAPSHOT VIEWS

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Client runs a Rhapsody batch file called SensitiveCheckin.bat
    which
    calls cleardiff to compare the current and previous version of a
    checked out Rhapsody model unit to see if it should be
    checked-in or
    have the checkout cancelled.
    
    Customer reports this doesn't work with snapshot views.  It
    doesn't
    work because cleardiff doesn't support using version extended
    path
    names from snapshot views.
    

Local fix

  • As a workaround, the customer has manually edited the
    SensitiveCheckin.bat to evaluate the return value of "cleartool
    diff
    -pred" instead of cleardiff.  The "cleartool diff -pred"
    ClearCase
    command works with snapshot views.
    
    According to ClearCase support:
    
    To re-cap, cleartool diff will definitely work in both dynamic
    and snapshot views.
    
    I did a little more research, and discovered a -status_only
    option that can be used with both cleardiff and with cleartool
    diff that provides an exit status about whether or not a
    difference is found.  Perhaps that is what the
    SensitiveCheckin.bat is using now with cleardiff.
    
    Here is an example of the basic cleartool diff syntax (though it
    doesn't actually capture the exit status in a variable)
    
    	cleartool diff -pred -options -status_only FileName
    
    Note: the reference page for the cleartool diff command at
    http://www-01.ibm.com/support/knowledgecenter/#!/SSSH27_8.0.1/co
    m.ibm.rational.clearcase.cc_ref.doc/topics/ct_diff.htm states
    about the -options argument, "For descriptions of the valid
    options, see the cleardiff reference page."  The cleardiff
    reference page at
    http://www-01.ibm.com/support/knowledgecenter/#!/SSSH27_8.0.1/co
    m.ibm.rational.clearcase.cc_ref.doc/topics/cleardiff.htm states,
    "â “status_only suppresses all output, returning only an exit
    status: a 0 status indicates that no differences were found; a 1
    status indicates that one or more differences were found. This
    option is useful in shell scripts." (all links are to ClearCase
    8.0.1 Information Center).
    
    I haven't used the -status_only option myself, but I thought I'd
    pass it along.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Rhapsody                                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * CLEARCASE CHECKIN FAILS WITH SNAPSHOT VIEWS                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • As cleardiff -status_only it is not working on snapshot views.
    Updating SensetiveCheckin.bat  file with cleartool diff -pred
    -options -status_only which works with both snapshot and dynamic
    view.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI48224

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    753

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-09-04

  • Closed date

    2017-06-12

  • Last modified date

    2017-06-12

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

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

Fix information

  • Fixed component name

    TLOGIC RHAPSODY

  • Fixed component ID

    5724V74RP

Applicable component levels

  • R753 PSN

       UP

  • R760 PSN

       UP

  • R761 PSN

       UP

  • R800 PSN

       UP

  • R801 PSN

       UP

  • R802 PSN

       UP

  • R803 PSN

       UP

  • R804 PSN

       UP

  • R805 PSN

       UP

  • R806 PSN

       UP

  • R810 PSN

       UP

  • R811 PSN

       UP

  • R812 PSN

       UP

  • R813 PSN

       UP

  • R814 PSN

       UP

  • R815 PSN

       UP

  • R820 PSN

       UP



Document information

More support for: Rational Rhapsody

Software version: 7.5.3

Reference #: PI48224

Modified date: 12 June 2017