IBM Support

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

Question & Answer


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

[{"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.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","Edition":"","Line of Business":{"code":"LOB15","label":"Integration"}}]

Document Information

Modified date:
16 June 2018

UID

swg21441502