title: How to do balance line in Cobol using 3 input files?
body: <p>my challenge on class is code a program which read 3 input txt files and generate 1 txt output file. All input files must be preferentially line sequential mode and no one indexed  (this are rules for breaking our minds).</p>
  
  <p>File 1 has field ID-USER (ordered by it) and others; 
  File 2 has fiels ID-USER (ordered by it), ID-JOB and others; 
  File 3 has field ID-JOB (ordered by it) and others. 
  Output file will join data from 3 files.</p>
  
  <p>Balance line in cobol with 2 files is a hard work but I can do it. But using 3 input files, when ID-USER is corresponding in files 1 and 2, I must advance read on file 3 to record corresponding ID-JOB on files 2 and 3, and my balance line is doesn't more work because I don't know if is possible "restart" read on file 3.</p>
  
  <p>Resuming: how to restart a read using sequential mode on specific input file (file 3)? Or reverse search direction on same cobol program.</p>