Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Capturing Cobol Program Displays

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
luis_pr

New User


Joined: 13 Oct 2007
Posts: 19
Location: Fort Worth, Tx USA

PostPosted: Wed Jun 03, 2015 5:01 am    Post subject: Capturing Cobol Program Displays
Reply with quote

A REXX Clist is calling another REXX that is calling the program. The program has a simple 'I AM HERE' Display Statement that I cannot see. The compile/link show the display and good returns from the link step. I expected to see the display when running the Rexx but didn't.

However, if I replace the display with code to abend the program, the program abends. Where are displays "going to" in this scenario? Do I need to issue some REXX commands to be able to get/view the Cobol program's displays?
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Wed Jun 03, 2015 5:16 am    Post subject: Reply to: Capturing Cobol Program Displays
Reply with quote

COBOL DISPLAY output goes to SYSOUT, unless you tell it otherwise.

I'd suggest you tell the program to put it somewhere else (using compiler option OUTDD, allocate that DD in your Rexx, and read it after the program has executed.

Internal SORTs use SYSOUT (unless you tell them otherwise, in a DFSPARM DD or with the special-register SORT-MESSAGE). Language Environment uses SYSOUT, unless you tell it otherwise (even more ways to do that) so if you want to make sure you only get the DISPLAYs, use a different DD for the DISPLAYs.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us