You are here: Available Utilities > L > LBYPROC > Updating Resources

Updating Resources

The LBYPROC utility lets you update resources based on their status. The LBYPROC utility lets you update the Mode, Status, Class, and Project fields of a resource. For these fields, you specify a VALUE and a NEWVALUE. Here are some examples of how you can update resources.

This table defines the XML tags used in the following Updating Resources Example:

XML tag

Description

LIBRARY

Enter the name of the library which contains the resources you want to update. Here is an example:

<LIBRARY VALUE="DEFLIB\MASTER.LBY"/>

NAME

Enter the name and path of the file without the extension or path. You can include asterisks (*) as wildcards. Here is an example:

<FILENAME VALUE="Q1ADDR"/>

The default is "" which updates all files in the library you specified.

TYPE

 

Enter the file extension to indicate the type of files you want to delete, such as FAP or LOG. You can include asterisks (*) as wildcards.

Here is an example:

<TYPE VALUE="FAP"/>

The default is "" which adds updates all types of files in the library you specified.

VERSION

Enter the version number you want the utility to assign to the resources it updates.

Here is an example:

<VERSION VALUE=""/>

REVISION

Enter the revision number you want the utility to assign to the resources it updates. Here is an example:

<REVISION VALUE=""/>

MODE *

Use the VALUE attribute to specify the mode of the resources you want to update. Use the NEWVALUE attribute to specify the new value you want to assign in the Mode field. You can enter "" to indicate any value.

Here is an example:

<MODE VALUE="" NEWVALUE="DISCARDED"/>

STATUS *

Use the VALUE attribute to specify the status of the resources you want to update. Use the NEWVALUE attribute to specify the new value you want to assign in the Status field. You can enter "" to indicate any value.

Here is an example of how you can tell the utility to find resources with a status of Test and change that status to Failed:

<STATUS VALUE="Test" NEWVALUE="Failed"/>

CLASS *

Use the VALUE attribute to specify the class of the resources you want to update. Use the NEWVALUE attribute to specify the new value you want to assign in the Class field. You can enter "" to indicate any value. Here is an example:

<CLASS VALUE="" NEWVALUE="US"/>

PROJECT *

Use the VALUE attribute to specify the project of the resources you want to update. Use the NEWVALUE attribute to specify the new value you want to assign in the Project field. You can enter "" to indicate any value. Here is an example:

<PROJECT VALUE="P001" NEWVALUE="P002"/>

* You define modes, statuses, classes, and projects when you check in a resource using Documaker Studio. See the Documaker Studio User Guide for more information.