3.3.4 - Change Group Information

Action Option -CG (-ChangeGroup) :

renumbers group indices for the specified dataset, mapping each original index (via -OG) to a new value (via -GI).

dsarch [-(DS|dataset)] dNNNNNN [-](CG|ChangeGroup) [Mode Options]
-(OG|OriginGroup) OriginalGroupIndices
-(GI|GroupIndex) NewGroupIndices
[-(LN|LoginName) LoginAccountName]
[-(DB|Debug) DebugModeInfo]

Available mode options:

-(MD|MyDataset)

allows any specialist to set GDEXDB information, regardless of dataset ownership

-(NT|NoTrim)

skips trimming of spaces and comments from input values, speeding up input file processing

-(RT|ResetTGroup)

resets the top group index for file records in the affected group

-(WN|WithFileNumber)

re-evaluates and resets file counts for the affected groups

Both -OG (-OriginGroup) and -GI (-GroupIndex) are required. All Saved and Web file records linked to the original indices are updated to the new values. The original indices must already exist in GDEXDB.

EXAMPLE 9. To reassign group indices 1 and 2 to 2 and 3 for d744004:

dsarch d744004 CG -OG 1 2 -GI 2 3