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
 
Natural error message detail

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
skodidine

New User


Joined: 05 Apr 2006
Posts: 6

PostPosted: Sat Jun 24, 2006 12:03 am    Post subject: Natural error message detail
Reply with quote

How do I display or capture the Natural system error message?

For example:

If my natural program abends, I can display the program it abended in (*program) and the error code (*error-nr) and also the line number (*error-line). How do I display the error message that corresponds to the *error-nr?

I am using ON-ERROR in my program and would like to display the error message along with the program, line number and error number.

Thanks!

Sanjay
Back to top
View user's profile Send private message

atulrukmangad

New User


Joined: 10 Apr 2006
Posts: 13

PostPosted: Mon Jun 26, 2006 11:56 am    Post subject: Re: Natural error message detail
Reply with quote

Hi,
I think you can use the SYSERR file to display the error message. To execute the SYSERR file you can view the Natural external Routine USR0020N. Just provide the message type (NS/NL) and the error number.

Hope this will help you.

Atul
Back to top
View user's profile Send private message
skodidine

New User


Joined: 05 Apr 2006
Posts: 6

PostPosted: Mon Jun 26, 2006 8:51 pm    Post subject: Re: Natural error message detail
Reply with quote

Hi Atul, thanks for the reply.

Unfortunately our DBA is unwilling to give us access to any USR* program and even SYSERR isnt loaded as when i choose option DI it says no short descriptions loaded.

I guess I will have to settle to just displaying the error number and let the user or other programmers figure out what the actual error message is.

Sanjay
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 -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm

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