 The input and output structures are then unified or merged into a final program structure, known as a Program Structure Diagram (PSD).This step may involve the addition of a small amount of high level control structure to marry up the inputs and outputs.Some programs process all the input before doing any output, whilst others read in one record, write one record and iterate.