# Clearcase Find checkouts - and uncheckout the elements

**URL:** <https://www.finalbuilder.com/forums/t/clearcase-find-checkouts-and-uncheckout-the-elements/1179>\
**Category:** Discussion\
**Created:** [April 22, 2009, 1:51am UTC](https://www.finalbuilder.com/forums/t/clearcase-find-checkouts-and-uncheckout-the-elements/1179 "2009-04-22T01:51:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)\
**Post date:** [April 22, 2009, 1:51am UTC](https://www.finalbuilder.com/forums/t/clearcase-find-checkouts-and-uncheckout-the-elements/1179/1 "2009-04-22T01:51:49Z")

</div>

Hi

Before a new build, I&nbsp;am trying to find all checked out elements in a specific view, and then un-checkout them.

Earlier I have done this by&nbsp;the dos command:

for /f %i in ('cleartool lsco -cvi -sh -r \myVOB') do&nbsp;cleartool unco -rm %i

This does not work in FinalBuilder. I have tried to escape the %'s, but still no success.

I have tried to do the same operations with actions.&nbsp;I&nbsp;begin with&nbsp;the "Cleartool Find Checkouts" action, but then I don't know what to do with the output. I have tried to put it into a variable, but I can not iterate the files in a variable. I have tried using text files, find/replace actions and all sort of things. I really think it would be cool using FB actions&nbsp;and not having to use an&nbsp;external script.

How can I use the output from Find Checkouts to do an uncheckout on the files?

&nbsp;

Regards,

Magnus Göransson

&nbsp;

---

<div class="post-metadata">

**Author:** ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)\
**Post date:** [April 23, 2009, 1:16am UTC](https://www.finalbuilder.com/forums/t/clearcase-find-checkouts-and-uncheckout-the-elements/1179/2 "2009-04-23T01:16:58Z")

</div>

Hi Magnus,

There shouldn't be any reason you can't do the same using the ClearCase actions, I've attached a project which should be doing the same as the script you've supplied.

Regards,  
Paul.

[ClearCaseUndoCheckouts.fbz6](https://www.finalbuilder.com/forums/uploads/default/original/2X/f/f2a7f21a853d15947d01ac74b0225ed074b2c2b1.fbz6) (2.148 KB)
