Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling Cobol DB2 from REXX (ISPF panel)

Status
Not open for further replies.

DT24048

Programmer
Jan 15, 2009
3
US
This is how I do it:
ndvparm="DB2=DB00,PLAN=MFLTDDWA"
"CALL 'LMG.TEST.LOAD(NDVREMER)' '"ndvparm"'"

The problem is:

Display on console message from CAF interface

xxxDB01I - xxx DB2/CAF INTERFACE VERSION DB2INT01-01/02/09 @ 11.43
xxxDB19I - DB00 SUCCESSFUL OPEN FOR PLAN - MFLTDDWA
xxxDB21I - DB2 THREAD SUCCESSFULLY CLOSED
xxxDB23I - DB2 DISCONNECT SUCCESSFUL

appears on terminal.

Any way to suppress?
 
Have you tried this?

x=msg('off')
"CALL 'LMG.TEST.LOAD(NDVREMER)' '"ndvparm"'"
x=msg(x)

This will turn messages off for this call.

Or you could use outtrap if you need to process the message.

x=OUTTRAP("mymsg.")
"CALL 'LMG.TEST.LOAD(NDVREMER)' '"ndvparm"'"
x=outtrap(off)


A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort.
 
Thanks for the response. I actually did do both of what you suggested, same result. These messages are coming from a routine that is doing basically a "DISPLAY UPON CONSOLE", to use COBOL speak. I wasn't sure if there was a way to "dummy" out the console, like SYSOUT or SYSPRINT.

Appreciate the prompt feedback.
 
I was able to suppress these messages by issuing the " PROFILE NOWTPMSG", to set my ISPF session to no-write-to-programmer-messages.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top