GIMAPI allocates the storage for AN API_VERSION structure. If the storage cannot be allocated, existing message GIM30700E is issued and the module terminates.
If allocation was successful, GIMAPI sets the elements of the structure with the values of the current version, release, modification and PTF level then returns to the calling program.
apiver="03"
apirel="06"
apimod="00"
apiptf="00"
The version can be accessed by the user as the complete string, "03060000" or as the previously listed individual parts.
The calling program needs to issue the FREE command at some point after calling the VERSION command.