Report:  Work Files or Metrics Differentials (Modified For Version 6.00)
Option:  -w
Compatible Options:  RSM Option Cross Reference
Usage:
-wc   Create files, workfile.dat and rm112220.00 date format
-w "File myworkfile.dat"    User specified work file
-wW   Work differential between last (workfile.dat) and now
-wx   Extract work differential between two work files
rsm -H -O report.htm -wc s*.h s*.cpp
rsm -H -O report.htm -wW *.h *.cpp
rsm -H -O report.htm -wx rm112819.99 rm012820.00
rsm -H -O report.htm -Tw -wx rm112819.99 rm012820.00
Source:  C, C++ and Java
Using RSM for Metrics Differentials

RSM can perform a source code metrics differential analysis between two dated baselines.  The -w mode creates a file which contains each file and its LOC metrics by the date of the -w processing.  This mode creates a file by a name in the form of  rmMMDDCC.YY where MM is the month, DD the day, CC the century and YY is the year.

When this mode completes, the work file is copied to a file called workfile.dat.   This file is used as the last historic baseline for the -wW mode.  The -wW mode displays the metrics differential from the workfile.dat to the present date.

You may also use the -wx option to process metrics differentials between two rmMMDDCC.YY files.

Work analysis is the capability to track LOC metrics on a specific code tree over time. This facility will create a differential metrics file for use with the -wW or -wx mode. The file workfile.dat is the basis for the -wW option and -wx mode can process any two work files.

Download a Windows Example and Script: rsm_diff_example.zip

-wc 
Creates the work files named workfile.dat and a date formatted file named rm112220.00 for the date 11-22-2001.

-w "File usernamedfile.dat"
This option allows the user to specify the name of the generated work file. The date formated file is replaced by the user specifed file.

i.e. rsm -w "File mywork.dat" -r h,cpp,java .

-wW
Work Analysis from Last Work Analysis File.  This mode uses the last work analysis file (workfile.dat) and the current work analysis metrics based upon the specified files. The specified files must match the files specified which originally created the (workfile.dat) file. A work file differential analysis report will be generated.

i.e. rsm -wW -r c,cc,h,hh /project1

-wx
Work Analysis Extraction from Work Analysis Files.  This mode extracts the work analysis differential between two work analysis files. These work analysis files must be based on the same code tree. The reported metrics will show LOC information based upon the time differential between these two files.

i.e. rsm -wx <ancestor file> <current file>
rsm -H -O diff.htm -wx baseline1.dat baseline2.dat
rsm -A -O diff.csv -wx rm111019.97 rm111419.97

Example Content of workfile.dat
Resource Standard Metrics Work File
DO NOT EDIT - This is a Generated File
5.00
930306296
cell.h 926071044 762 23 21 11 8 36 15 0
ocean.h 926071058 574 22 20 5 8 34 11 0
target.h 926071028 727 27 24 8 9 43 12 0