I want one file to go to the printer and other to a file and I do not want to recode, is there a way to send to two areas is the assing clause?
select filename
assign to printer
assign to \data\forms\datafile
The two ASSIGN's will not work. Your only hope is to ASSIGN the file to a regular disk file and use a system print utility to copy it to the printer. Betty Scherber
Brainbench MVP for COBOL II
again depending on your platform, if you have access to JCL, you can easily copy your one output file and send it to a printer. How this looks depends on your environment.
One solution there might define a seperate file, and then put in a WRITE command which copies the entire disk output file to a seperate printer output file... Will allow you to do what you desire within the code itself instead of relaying on a printer utility Chris Green
Computer Information Systems Student
Cayuga Community College -- Fulton
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.