If I understand your problem correctly, you're trying to <br>create the same report from a variety of like formatted files.<br><br>The traditional batch COBOL solution to this problem is to execute the report program multiple times, changing the input file DSN with each execution, e.g.:<br><br>//s1 exec pgm=rptpgm<br>//infile dd dsn=myfile.n1,etc<br>//rptfile dd sysout=*<br><br>//s2 exec pgm=rptpgm<br>//infile dd dsn=myfile.n2,etc<br>//rptfile dd sysout=*<br><br>//s3 etc.<br><br>If your input files can be differentiated from one another (e.g. a header record or some sort of file id), the input files can be concatinated and the program can test for the presence of a header rec to begin a new report. This approach requires only only one execution of the report pgm. The JCL would look something like this: <br><br>//s1 exec pgm=rptpgm<br>//infile dd dsn=myfile.n1,etc<br>// dd dsn=myfile.n2,etc<br>// dd dsn=myfile.n3,etc<br>//rptfile dd sysout=*<br>