IBM Support

How to search a PVOB for Baselines created since a certain date and time

Technote (FAQ)


How do you search for and list UCM Baselines in an IBM Rational ClearCase PVOB that has been created since a particular date and time?


One method for creating such a list is to use the "cleartool find" command in conjunction with basic Perl commands.


  1. From the operating system command prompt navigate to the PVOB in question.
  2. Using the following command formats to create a list of baselines created since a given date:

    • Windows:

    cleartool find -all -kind baseline -print | ^
    ccperl -pe "s/^/des -fmt '%Nd %n\\n' /" | ^
    cleartool | ^
    ccperl -ne "push(@a, $_) if ($_ ge ' yyyymmdd.hhmmss'); END{print sort @a;}"

    • UNIX and Linux:

    cleartool find -all -kind baseline -print |
    Perl -pe 's/^/des -fmt "%Nd %n\\n" /' |
    cleartool |
    Perl -ne 'push(@a, $_) if ($_ ge " yyyymmdd.hhmmss"); END{print sort @a;}'

    Note: yyyymmdd.hhmmss represents the year, month, day, hours, minutes and seconds.

    If you do not need to specify a time which includes hours, minutes and seconds you must enter

    zeros in place of hhmmss.

    For example: 20100815.000000

Related information

Additional examples of the cleartool find command

Document information

More support for: Rational ClearCase
UCM: Baseline

Software version: 7.0,,,,,,,,,, 7.0.1,,,,,,,,,, 7.1,, 7.1.1,,

Operating system(s): AIX, HP-UX, Linux, Solaris, Windows

Reference #: 1441502

Modified date: 12 May 2011

Translate this page: