IBM Support

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

Question & Answer


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

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"UCM: Baseline","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"7.0;;;;;;;;;;7.0.1;;;;;;;;;;7.1;;7.1.1;;","Edition":"","Line of Business":{"code":"LOB15","label":"Integration"}}]

Document Information

Modified date:
16 June 2018