Error Rpgle
Contents |
Points to remember Menu Driven AS40001 Menu Driven AS400 SEU basic concepts01 SEU Introduction Array01 Array & Types of Array Data structure01 Data structure & error in as400 Types of DS User Profile & Security 02 User profile & Securitys monitor rpgle Lock status of an obj. As400 Subsys. & Jobs 05 Subsystem AS400 Jobs Activation group User Defined Opions Compiler
Rpgle Error Bif
Directive 01 Compiler Directive Data queue01 Data queue FTP & Stream file03 FTP SNDNETF Stream File & Copy From/To PF Journalling 01 Journalling Screen Design Aid06 Design screen with STRSDA STRSDA
Rpgle On Error Codes
for SFLMSG record type STRSDA for SUBF record type STRSDA for WDWSFL record type STRSDA for WINDOW record type STRSDA Test display file Display File Keywords62 ALIAS (Alternative Name) ALTHELP, HELP & HLPARA ALTNAME (Alternative Record Name) ALTPAGEDWN / ALTPAGEUP ASSUME, OVERLAY & KEEP CAnn (Command Attention) CFnn (Command Function) CHECK (Check) CHGINPDFT (Change Input Default) CLRL (Clear line) CNTFLD (Continued-Entry Field) COLOR on error rpg (Color) COMP (Comparison) CSRLOC (Cursor Location) DATE (Date) DATFMT (Date Format) DATSEP (Date Separator) DFT (Default) DFTVAL (Default Value) DSPATR (Display Attribute) DSPMOD (Display Mode) DSPSIZ (Display Size) EDTCDE (Edit Code) EDTWRD (Edit Word) ERRMSG (Error Message) ERRMSGID (Error Message Identifier) ERRSFL (Error Subfile) FLDCSRPRG (Cursor Progression Field) INDARA (Indicator Area) MSGCON (Message Constant) MSGID (Message Identifier) OVERLAY (Overlay) PAGEDOWN & PAGEUP REF (Reference) REFFLD (Referenced Field) ROLLUP & ROLLDOWN RTNCSRLOC (Return Cursor Location) SFL (Subfile) SFLCLR (Subfile Clear) SFLCSRRRN (Subfile Cursor RRN) SFLCTL (Subfile Control) SFLDROP, SFLFOLD & SFLMOD SFLDSP (Subfile Display) SFLDSPCTL (Subfile Display Control) SFLEND (Subfile End) SFLINZ & SFLRNA SFLMSG (Subfile Message) SFLMSGID (Subfile Message ID) SFLMSGKEY, SFLMSGRCD & SFLPGMQ SFLNXTCHG (Subfile Next Changed) SFLPAG (Subfile Page) SFLRCDNBR (Subfile Record Number) SFLROLVAL (Subfile Roll Value) SFLSCROLL (Subfile Scroll) SFLSIZ (Subfile Size) SYSNAME (System Name) TIME (Time) TIMFMT (Time Format) TIMSEP (Time Separator) USER (User) VALUES (Values) WDWBORDER, WDWTITLE & WINDOW Subfile & Types of Subf06 Subfile & Its types Load-All Subfile Expandable Subfile Single Page subfile Message Subfile Session or device error Help panel design01 Help panel design RPG specs07 H-SPEC
the list |of exception IDs (|exception-id1:exception-id2...). You can
Error Handling In Rpgle
specify any |combination of the following, separated by colons: | |nnnnn |A status code |*PROGRAM |Handles all program-error status codes, from 00100 to 00999 |*FILE |Handles all file-error status codes, from 01000 to 09999 |*ALL |Handles both program-error and file-error codes, from http://www.go4as400.com/Built-In-function-in-rpgle/functions.aspx?cid=314 00100 to |09999. This is the default. | |Status codes outside the range of 00100 to 09999, for example codes from 0 |to 99, are not monitored for. You cannot specify these values for an |on-error group. You also cannot specify any status https://publib.boulder.ibm.com/iseries/v5r1/ic2924/books/c0925083688.htm codes that are not |valid for the particular version of the compiler being used. |If the same status code is covered by more than one on-error group, only |the first one is used. For this reason, you should specify special |values such as *ALL after the specific status codes. |Any errors that occur within an on-error group are not handled by the |monitor group. To handle errors, you can specify a monitor group within |an on-error group. |When all the statements in an on-error block have been processed, control |passes to the statement following the ENDMON statement. |For an example of the ON-ERROR statement, see MONITOR (Begin a Monitor Group). [ Top of Page | Previous Page | Next Page | Table of Contents | Index ]
| |A MONITOR statement |One or more ON-ERROR groups |An ENDMON statement. | |After the MONITOR statement, control passes to the https://publib.boulder.ibm.com/iseries/v5r1/ic2924/books/c0925083677.htm next statement. |The monitor block consists of all the statements from the MONITOR statement to |the first ON-ERROR statement. If an error occurs when the monitor block |is processed, http://www.mysamplecode.com/2011/07/rpgle-monitor-on-error-example-code.html control is passed to the appropriate ON-ERROR group. |If all the statements in the MONITOR block are processed without errors, |control passes to the statement following the ENDMON statement. on error |The monitor group can be specified anywhere in calculations. It can |be nested within IF, DO, SELECT, or other monitor groups. The IF, DO, |and SELECT groups can be nested within monitor groups. |If a monitor group is nested within another monitor group, the innermost |group is considered first when an error occurs. If that monitor group |does not error in as400 handle the error condition, the next group is considered. |Level indicators can be used on the MONITOR operation, to indicate that the |MONITOR group is part of total calculations. For documentation |purposes, you can also specify a level indicator on an ON-ERROR or ENDMON |operation but this level indicator will be ignored. |Conditioning indicators can be used on the MONITOR statement. If |they are not satisfied, control passes immediately to the statement following |the ENDMON statement of the monitor group. Conditioning indicators |cannot be used on ON-ERROR operations individually. |If a monitor block contains a call to a subprocedure, and the subprocedure |has an error, the subprocedure's error handling will take |precedence. For example, if the subprocedure has a *PSSR subroutine, it |will get called. The MONITOR group containing the call will only be |considered if the subprocedure fails to handle the error and the call fails |with the error-in-call status of 00202. |The monitor group does handle errors that occur in a subroutine. If |the subroutine contains its own monitor groups, they
November (13) ► October (22) ► September (9) ► August (7) ► July (12) ► June (32) ► May (55) ► April (19) ► March (42) ► February (26) ► January (27) ▼ 2011 (221) ► December (18) ► November (15) ► October (32) ► September (15) ► August (22) ▼ July (26) javax.net.ssl.SSLException: untrusted server cert ... Android options menu, submenu and menu group examp... iSeries (AS400) V7R1 Java version and setup RPGLE Service Program Example - iSeries (AS400) Java convert hex string to byte array example Java convert file data to String example Java convert byte array to hex string example Apache HTTP Server sample Configuration file - htt... Android passing data between activities example co... RPGLE monitor on-error example code Convert data from SQL Server to DB2 using Java JDB... Convert Image to String and String to Image using ... Java convert String to Int example Java convert String to Date example using java.uti... Java convert String to double example Java JDBC preparedstatement example for insert, se... SQLRPGLE Delete Statement for db2 in iSeries (AS40... SQLRPGLE Update Statement for db2 in iSeries (AS4... SQLRPGLE Select Statement for db2 in iSeries (AS4... SQLRPGLE Insert Statement for db2 in iSeries (AS4... SQLRPGLE Create Table in db2 - Add column heading,... Call RPGLE from Java using Package com.ibm.as400.a... Call RPGLE from Java using SQL Stored Procedure Create Stored Procedure for RPGLE programs How to call Java main(String[] args) method from R... How to Call a Java Program from RPGLE ► June (39) ► May (53) ► April (1) RPGLE monitor on-error example code How to use CL program MONMSG for RPGLE to check for errors? The monitor group performs conditional error handling based on the status code. It consists of: A MONITOR statement One or more ON-ERROR groups An ENDMON statement. After the MONITOR