int tsmCopyTspecField ( TsmConnection connect_in, TsmConnection connect_out ) Takes a copy of a tspec structure
Takes a copy of a tspec structure.If you have a connection with a tspec structure, and you want to associate this same tspec structure with another connection, then you can use this function. For example, if you are creating a copy of a dataset, then you should open a read connection to the dataset and a write connection. Then you can create the new dataset tspec file by calling this function, followed by tsmWriteTspec().
This function effectively does a tsmSetTspecField for the output connection, from the input connection's tspec field. N.B. it does not write out any data to disk. See tsmCopyTspec to do this.