next up previous 204
Next: GRP_PUT - Put a given set of literal names into a group
Up: Routine Descriptions
Previous: GRP_PTYPE - Associate a new type string with a group


GRP_PURGE - Purge duplicate entries from a group

Description:
This routine creates a new group based on a given existing group. The contents of the existing group are copied to the new group, but any duplicated names are only included once. The check for duplication is case sensitive unless the group has been declared case insensitive by a call to GRP_SETCS. The new group inherits the type, control characters case sensitivity flag of the old group, but does not inherit any owner/slave relationships (see routine GRP_SOWN).

Note, indices determined from the old group will in general not point to the same name in the new group. The old group should be deleted using GRP_DELET if it is no longer required.


Invocation:
CALL GRP_PURGE( IGRP1, IGRP2, STATUS )

Arguments:

IGRP1 = INTEGER (Given)
The GRP identifier for an existing group.
IGRP2 = INTEGER (Returned)
A GRP identifier for the created group. This group is a purged form of the group identified by IGRP1. A value of GRP__NOID is returned if an error occurs.
STATUS = INTEGER (Given and Returned)
The global status.



next up previous 204
Next: GRP_PUT - Put a given set of literal names into a group
Up: Routine Descriptions
Previous: GRP_PTYPE - Associate a new type string with a group

GRP Routines for Managing Groups of Objects
Starlink User Note 150
D.S. Berry
21st October 2009
E-mail:ussc@star.rl.ac.uk

Copyright © 2009 Science and Technology Facilities Council