I would like to direct the sysout from a JCL to a dataset. But when cataloged to a dataset only the first couple of displays in the program are coming in the dataset. All the displays are coming correctly when the sysout is directed to the spool. The program is in COBOL and below is the JCL I have used.
//SYSOUT DD DSN=TEST.SOUT1,DISP=(NEW,CATLG,DELETE),