Routing the output to a file

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Routing the output to a file

Postby isai_22 » Tue Oct 05, 2010 3:18 pm


I have a command macro that does some specific tasks of copying files. After the process is over , I am right now displaying " Copy process over " using display_line command. I want this message to be captured in a file for future reference. Can some one suggest me a solution to route it to a file.

Posts: 5
Joined: Mon Jul 26, 2010 8:34 am
Has thanked: 0 time
Been thanked: 0 time

Re: Routing the output to a file


Re: Routing the output to a file

Postby NicC » Tue Oct 05, 2010 7:03 pm

In cobol there is no display_line command that I know of.

Is this a foreground execution i.e. is the message displaying to a terminal or to sysout? If foreground just change the code to write the message to a file. If background just change the JCL to use a dataset rather than a sysout class.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Global moderator
Posts: 2751
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 110 times

Return to IBM Cobol


  • Related topics
    Last post