Here is an example showing how to create the NDF structure in §3.7.
The following points should be borne in mind:
Here are some notes on particular aspects of this example:
We use two variants of this routine simply because the character string length has to be specified when creating a character object and it is normally most convenient to provide this via an additional integer argument. However, DAT_NEW may be used to create new objects of any type, including character objects. In this case the character string length would be provided via the type specification, e.g. ‘_CHAR15’ (a character string length of one is assumed if ‘_CHAR’ is specified alone).