Page 1 of 1

Display in multiple spool using cobol

PostPosted: Sat Aug 31, 2013 1:04 pm
by SaikatPaul
Can anybody help me by giving some advice on below requirement

a program will take input some data, process the data and display if matches some condition. this program will also display the unmatches data. but I am now aware how to display two different types of processed data in two spool. DISPLAY in cobol will prints only in sysout.

Re: Display in multiple spool using cobol

PostPosted: Sat Aug 31, 2013 2:10 pm
by Monitor
You have to define a sequential file, open for output and add the DD-name of your choice, e.g. //MYLIST DD SYSOUT=sysoutclass. WRITE the information you want to the file, and the result will show up in Spool after execution of your program.

Re: Display in multiple spool using cobol

PostPosted: Mon Sep 02, 2013 6:25 am
by dick scherrer
Hello and welcome to the forum,

Do not use DISPLAY to create output. Do as Monitor suggests and define 2 FDs and WRITE to them rather than DISPLAY.

Re: Display in multiple spool using cobol

PostPosted: Mon Sep 02, 2013 2:30 pm
by SaikatPaul
Thank You guys :P