Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 738093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:47:49+00:00 2026-05-14T07:47:49+00:00

Using IBM Rational ClearCase: – I have only access to Snapshot Views so NO

  • 0

Using IBM Rational ClearCase:
– I have only access to Snapshot Views so NO dynamic Views

I want to copy ALL versions from a certain changeset to c:\temp. I have already listed the changeset versions in a file (couple of hundred of versions, I only need the latest one), I do not have a baseline over this older set.

What I now have and does not work:

#!/usr/bin/perl -w
#
#  PROGRAM: copytest.pl
$filename = "Design test123.doc";
$view = "D:\\AdminViews\\ABC_R1_READ_2\\ABCD002\\ABC_DESIGN\\BLA Framework\\P0\\";
$version = "\\main\\ABC_R1_READ\\1";
$printhet = 'cleartool find . -name "' . $filename . '" -version version(' . $version. ') -exec "cmd /c copy %CLEARCASE_XPN% D:\temp\%CLEARCASE_PN%"';
system($printhet);

Basically because: http://www-01.ibm.com/support/docview.wss?uid=swg21150317 (XPN)

update: I read In ClearCase, how can I view old version of a file in a static view, from the command line? again and I see that a diff with an empty file is the /hack for having no XPN. ok… but a diff with empty and a doc in the above gives me “0”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T07:47:49+00:00Added an answer on May 14, 2026 at 7:47 am

    I am not sure what this IBM article (you mention in your question) can mean in your situation since it only works for dynamic view (if the view does not directly select the version you need).

    And my old answer for accessing an extended path file content in a snapshot view is not trivial to adapt here.


    So why not aim at something equivalent but simpler?

    Why not create another snapshot view directly within c:\temp (c:\temp\myview_snap), with a config spec along the lines of (you can keep ‘/‘ instead of ‘\‘):

    element * CHECKEDOUT
    element "/ABC_R1_READ_2/ABCD002/ABC_DESIGN/BLA Framework/P0/..." /main/ABC_R1_READ/1
    element -directory "/ABC_R1_READ_2/ABCD002/ABC_DESIGN/BLA Framework/P0/..." /main/ABC_R1_READ/LATEST
    element -directory "/ABC_R1_READ_2/ABCD002/ABC_DESIGN/BLA Framework/P0/..." /main/LATEST
    element "/ABC_R1_READ_2/ABCD002/ABC_DESIGN/BLA Framework/P0/..." -none
    element /ABC_R1_READ_2/ABCD002 /main/ABC_R1_READ/1
    element /ABC_R1_READ_2/ABCD002 /main/LATEST
    element /ABC_R1_READ_2/ABCD002/ABC_DESIGN /main/ABC_R1_READ/1
    element /ABC_R1_READ_2/ABCD002/ABC_DESIGN /main/LATEST
    element "/ABC_R1_READ_2/ABCD002/ABC_DESIGN/BLA Framework" /main/ABC_R1_READ/1
    element "/ABC_R1_READ_2/ABCD002/ABC_DESIGN/BLA Framework" /main/LATEST
    element * -none
    load /ABC_R1_READ_2
    

    That way, you should select:

    • any element under /ABC_R1_READ_2/ABCD002/ABC_DESIGN/BLA Framework/P0 (P0 included) with the right version
    • any directory which had not the exact version will try first to load itself as the LATEST on ABC_R1_READ, else as /main/LATEST as fallback (always exists)
    • if an element (file) has not that version, it won’t be selected at all and not loaded.
    • any parent element (/ABC_R1_READ_2/ABCD002/ABC_DESIGN/BLA Framework), if it has not the right version, will be selected as /main/LATEST (always exist)
    • any other element (outside of the relevant tree) will be ignored, non-selected

    Just tested it: it works fine.


    Notes:

    • “BLA Framework” is a directory with a space in it, so you need to add the double quotes where it is used.
    • the load rule can just load the vob ABC_R1_READ_2: since the ‘-none‘ rules will not select what you don’t need, they won’t be loaded anyway.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using IBM's Rational Software Architect (essentially Eclipse I suppose). I have a JAR
I am using IBM Rational Software Architect for creating a UML Model and then
I have a certain library (IBM's WebSphere MQ) which I'm using, with an API
Using IBM Informix Dynamic Server Version 10.00.FC9 I'm looking to set multiple field values
Using online interfaces to a version control system is a nice way to have
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
I'm struggling with using ClearCase at my current job and it's a REAL pain,
I have a following problems with eclipse, when I installed ClearCase plugin from this
I have an application which runs using the context menu of windows explorer. I
I have an ASP.NET 3.5 Web Site using the standard SQL Membership Provider. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.