next up previous 207
Next: NDG_ASSO1 - Obtain an identifier for a single existing NDF using a specified parameter
Up: Routines for accessing groups of NDFs
Previous: Routines for accessing groups of NDFs


NDG_ASEXP - Store names of existing NDFs supplied as a group expression

Description:
The supplied group expression is parsed (using the facilities of the GRP routine GRP_GROUP, see SUN/150) to produce a list of explicit names for existing NDFs which are appended to the end of the supplied group (a new group is created if none is supplied). NDF identifiers for particular members of the group can be obtained using NDG_NDFAS.

If any of the NDFs specified by the group expression cannot be accessed, an error is reported and STATUS is returned equal to NDG__NOFIL. If this happens strings holding the name of each bad NDF are appended to the group identified by IGRP1 (so long as IGRP1 is not equal to GRP__NOID).


Invocation:
CALL NDG_ASEXP( GRPEXP, VERB, IGRP1, IGRP2, SIZE, FLAG, STATUS )

Arguments:

GRPEXP = CHARACTER $*$ ( $*$ ) (Given)
The group expression specifying the NDF names to be stored in the group.
VERB = LOGICAL (Given)
If TRUE then errors which occur whilst accessing supplied NDFs are flushed so that the user can see the details ("verbose" mode). Otherwise, they are annulled and a general "Cannot access file xyz" message is reported instead.
IGRP1 = INTEGER (Given)
The identifier of a group to which the names of any inaccessible NDFs will be appended. The group should already have been created by a call to GRP_NEW, and should be deleted when no longer needed by a call to GRP_DELET. If IGRP1 is supplied equal to symbolic constant GRP__NOID, then no information is stored describing the bad NDFs.
IGRP2 = INTEGER (Given and Returned)
The identifier of the group in which the NDF names are to be stored. A new group is created if the supplied value is GRP__NOID. It should be deleted when no longer needed using GRP_DELET.
SIZE = INTEGER (Returned)
The total number of NDF names in the returned group IGRP2.
FLAG = LOGICAL (Returned)
If the group expression was terminated by the GRP "flag character", then FLAG is returned .TRUE. Otherwise it is returned .FALSE. Returned .FALSE. if an error occurs.
STATUS = INTEGER (Given and Returned)
The global status.

Notes:



next up previous 207
Next: NDG_ASSO1 - Obtain an identifier for a single existing NDF using a specified parameter
Up: Routines for accessing groups of NDFs
Previous: Routines for accessing groups of NDFs

NDG [1ex
Starlink User Note 2
D.S. Berry
M.B. Taylor
22nd October 2009
E-mail:ussc@star.rl.ac.uk

Copyright © 2000 Council for the Central Laboratory of the Research Councils