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.
How to suppress error messages in REXX?
- 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?
No, there isn't.
-
- 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?
Thank you, sir!
- 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?
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)
Also, try ON ERROR or ON FAILURE (or other recovery routines)
Pedro Vera
Re: How to suppress error messages in REXX?
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.
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.
-
- 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?
Just make sure the FB record length are the same. try to output the file into the same source of the input file.
-
- 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?
nabilaal, I'm not sure how relevant your comment is after 11 years, 11 months (less 1 day) have passed.
- 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?
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.
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
-
-
ASMA90 end with RC=4 but no error messages
by gselvasridharan » Tue May 09, 2023 10:36 am » in Assembler - 1
- 2394
-
by willy jensen
View the latest post
Tue May 09, 2023 12:37 pm
-
-
- 3
- 2774
-
by willy jensen
View the latest post
Tue Jun 29, 2021 1:36 pm
-
- 2
- 1697
-
by cualquis
View the latest post
Fri Sep 10, 2021 9:51 pm
-
- 1
- 1482
-
by sergeyken
View the latest post
Sun Oct 04, 2020 11:33 pm
-
- 9
- 4735
-
by steve-myers
View the latest post
Sat Nov 13, 2021 12:17 am