How to suppress error messages in REXX?

IBM's Command List programming language & Restructured Extended Executor
Mirco
Posts: 11
Joined: Thu Feb 11, 2010 7:13 pm
Skillset: Experience since april 2009.
Referer: Google

How to suppress error messages in REXX?

Postby Mirco » Thu Feb 25, 2010 9:44 pm

Hello all,
The problem seems to be simple. I use EXECIO command to write something into a PDS file. When there is no space, I get RC of 20 and three lines of error messages:
IRX0250E System abend code E37, reason code 00000004.
IRX0255E Abend in host command EXECIO or address environment routine TSO.
IRX0671E EXECIO error while trying to close a DD.

This would be OK, but it doesn't look good, so I'd like to suppress these messages and just evaluate the return code and issue my own, prettier message. But how to do it? I tried MSG('OFF') and OUTTRAP('something.'), both with no effect - the messages keep being displayed. I have set ADDRESS TSO, which should be all right (didn't work under ISPEXEC either).

Is there any way to suppress this type of messages?

Thanks.

User avatar
MrSpock
Global moderator
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Skillset: REXX, JCL, DFSORT, Syncsort, Axway MFT, Connect:Direct, FTP, SFTP
Referer: ibmmainframes.com
Location: Raleigh NC USA
Contact:

Re: How to suppress error messages in REXX?

Postby MrSpock » Thu Feb 25, 2010 10:58 pm

No, there isn't.

Mirco
Posts: 11
Joined: Thu Feb 11, 2010 7:13 pm
Skillset: Experience since april 2009.
Referer: Google

Re: How to suppress error messages in REXX?

Postby Mirco » Fri Feb 26, 2010 1:31 pm

Thank you, sir!

User avatar
Pedro
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Skillset: ISPF
Referer: google
Location: Silicon Valley

Re: How to suppress error messages in REXX?

Postby Pedro » Thu Mar 11, 2010 10:42 am

I am not sure about those particular messages... but try setting your OUTTRAP in one rexx program, then calling another rexx program to do EXECIO.

Also, try ON ERROR or ON FAILURE (or other recovery routines)
Pedro Vera

BILLKOS
Posts: 1
Joined: Sun Apr 04, 2010 9:08 am
Skillset: REXX, AFOPER, ESP
Referer: Google

Re: How to suppress error messages in REXX?

Postby BILLKOS » Sun Apr 04, 2010 9:23 am

IF USERID() <> "YOURID" THEN DO;
SIGNAL ON SYNTAX NAME ERRORMSG;
SIGNAL ON HALT NAME ERRORMSG;
SIGNAL ON NOVALUE NAME ERRORMSG;
SIGNAL ON ERROR NAME ERRORMSG;
SIGNAL ON FAILURE NAME ERRORMSG;
END;

The above works for us.

gc1958
Posts: 4
Joined: Sat May 22, 2010 1:27 am
Skillset: TSO, ISPF, Dialog management services, C, Cobol, Bal, Rexx, JCL, VSAM, Utilities, etc. etc.
Referer: Search engine

Re: How to suppress error messages in REXX?

Postby gc1958 » Sat May 22, 2010 9:22 pm


nabilaal
Posts: 1
Joined: Mon Mar 15, 2010 12:26 pm
Skillset: REXX, JCL, Network, Security
Referer: REXX JCL NETWORK SECURITY

Re: How to suppress error messages in REXX?

Postby nabilaal » Thu Apr 21, 2022 2:20 pm

Just make sure the FB record length are the same. try to output the file into the same source of the input file.

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

Re: How to suppress error messages in REXX?

Postby Robert Sample » Thu Apr 21, 2022 6:51 pm

nabilaal, I'm not sure how relevant your comment is after 11 years, 11 months (less 1 day) have passed.

User avatar
Pedro
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Skillset: ISPF
Referer: google
Location: Silicon Valley

Re: How to suppress error messages in REXX?

Postby Pedro » Sat Apr 23, 2022 10:39 pm

re: "how relevant your comment is after 11 years"

It is not relevant at all. The original post was about a data set out-of-space condition rather than a record length problem.

And even more correctly, the original post was about suppressing the messages rather than about the data set out-of-space problem.
Pedro Vera


  • Similar Topics
    Replies
    Views
    Last post