IBM Support

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

Technote (FAQ)


Question

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?

Answer

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

Example:

  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.0.1, 7.0.0.2, 7.0.0.3, 7.0.0.4, 7.0.0.5, 7.0.0.6, 7.0.0.7, 7.0.0.8, 7.0.0.9, 7.0.1, 7.0.1.1, 7.0.1.2, 7.0.1.3, 7.0.1.4, 7.0.1.5, 7.0.1.6, 7.0.1.7, 7.0.1.8, 7.0.1.9, 7.1, 7.1.0.1, 7.1.1, 7.1.1.1, 7.1.1.2

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

Reference #: 1441502

Modified date: 12 May 2011


Translate this page: