Coding is the process of attaching codes to data fragments.
Segmenting is the process of delineating data into segments. Segments can have different definitions, but once defined and applied, each segment binds together data fragments that exhibit some coherence in terms of the corresponding segment definition.
A relatively simple segment definition is a sentence. For sources that are interview transcripts, another example is an interviewee’s response to each question.