MemCom Reference Manual > MemCom ftn Fortran API > Sparse Table Functions > mcf_st_col_find

Name

mcf_st_col_find — Lookup sparse-table columns by name

Synopsis

subroutine mcf_st_col_find(dsid,name,column_index)
integer*4 dsid
character*(*) name
integer*8 column_index

Description

mcf_st_col_find attempts to find, for the sparse-table dataset identified by dsid, the index of the column whose name matches name. Column indices start at 1.

Parameters

dsid (input)

Dataset identifier.

name (input)

Pointer to a NUL-terminated character string containing the name of the column to be looked up.

status (output)

If a column, whose name matches the argument name, could be found, the index (starting from 1) of that column is returned. If no such column could be found, 0 is returned. If an error occurred, a negative value indicating the MemCom error number is returned.

See Also

mcf_st_dataset_clear

mcf_st_col_append

mcf_st_col_num