SlideShare a Scribd company logo
1 of 2
 %STATUS
%STATUS provides a five-digit status code that identifies the error.
Program status codes are in the range 00100 to00999 and File status codes are in the range 01000 to 01999.
Status codes in the range00000 to 00050 are considered to be normal (i.e., they are not set by an
exception/errorcondition).
We can see all the program/file related system messages using the command below:
DSPMSGD RANGE(*FIRST *LAST) MSGF(QRNXMSG) DETAIL(*BASIC)

The below table lists some of the commonly used Status Codes:
MSG ID MESSAGE DETAIL
00100
00102
00112
00121
00122
00202
00211
00222
00401
00413
00414
00415
00907
01021

01211
01218
01221

Value out of range for string operation
Divide by zero
Invalid Date, Time or Timestamp value.
Array index not valid
OCCUR outside of range
Called program or procedure failed
Error calling program or procedure
Pointer or parameter error
Data area specified on IN/OUT not found
Error on IN/OUT operation
User not authorized to use data area
User not authorized to change data area
Decimal data error (digit or sign not valid)
Tried to write a record that already exists (file being used has unique keys
and key is duplicate, or attempted to write duplicate relative record number to
a subfile).
File not open.
Record already locked.
Update operation attempted without a prior read.

Example
ERROR HANDLING USING E-OPERATOR EXTENDER AND %ERROR BUILT-IN FUNCTION
Columns . . . :
6 80
AMITCC/QRPGLESRC
SEU==>
E_OP_EXTND
FMT H HKeywords++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*************** Beginning of data ************************************************
0001.00 HOPTION(*SRCSTMT)
0002.00 FCUST
UF A E
DISK
USROPN
0003.00
0004.00 C
1
SETLL(E) CUSTR
0005.00 C
EXSR
@ERROR
0006.00 C
EVAL
CSNAME='CCC'
0007.00 C
UPDATE(E) CUSTR
0008.00 C
EXSR
@ERROR
0009.00 C
SETON
LR
0010.00 *
0011.00 C
@ERROR
BEGSR
0012.00 C
IF
%ERROR()
0013.00 C
IF
%STATUS(CUST)=1211
0014.00 C
OPEN
CUST
0015.00 C
ELSEIF
%STATUS(CUST)=1221
0016.00 C
READ(E)
CUST
0017.00 C
EVAL
CSNAME='CCC'
0018.00 C
UPDATE(E) CUSTR
0019.00 C
ENDIF
0020.00 C
ENDIF
0021.00 C
ENDSR
****************** End of data **************************************************

More Related Content

Viewers also liked

as400 built in function- %YEARS
as400 built in function- %YEARSas400 built in function- %YEARS
as400 built in function- %YEARSaminem_mp
 
Apostolic succession ++karl6
Apostolic succession ++karl6Apostolic succession ++karl6
Apostolic succession ++karl6St Anthony Church
 
Participatory Learning Approach (PLA) in Health Education - Workshop
Participatory Learning Approach (PLA) in Health Education - WorkshopParticipatory Learning Approach (PLA) in Health Education - Workshop
Participatory Learning Approach (PLA) in Health Education - WorkshopNiyati Gupta
 
140 Questions Reviewer in Accounting 1 (Service Concern)
140 Questions Reviewer in Accounting 1 (Service Concern)140 Questions Reviewer in Accounting 1 (Service Concern)
140 Questions Reviewer in Accounting 1 (Service Concern)Arthur Quijano
 
Problemas motores cd.docx
Problemas motores cd.docxProblemas motores cd.docx
Problemas motores cd.docxhebermartelo
 
Generar Productividad Digital en Negocios 3.0
Generar Productividad Digital en Negocios 3.0Generar Productividad Digital en Negocios 3.0
Generar Productividad Digital en Negocios 3.0Carlos Vargas H.
 
Necesidades educativas especiales
Necesidades educativas especialesNecesidades educativas especiales
Necesidades educativas especialesJosselineCC
 
Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...
Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...
Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...VIVRI
 
Formato guias 3
Formato guias 3Formato guias 3
Formato guias 3kpl1502
 
MSB Certificate
MSB CertificateMSB Certificate
MSB CertificateBrian Ho
 

Viewers also liked (12)

Case Studies
Case StudiesCase Studies
Case Studies
 
as400 built in function- %YEARS
as400 built in function- %YEARSas400 built in function- %YEARS
as400 built in function- %YEARS
 
Apostolic succession ++karl6
Apostolic succession ++karl6Apostolic succession ++karl6
Apostolic succession ++karl6
 
Participatory Learning Approach (PLA) in Health Education - Workshop
Participatory Learning Approach (PLA) in Health Education - WorkshopParticipatory Learning Approach (PLA) in Health Education - Workshop
Participatory Learning Approach (PLA) in Health Education - Workshop
 
140 Questions Reviewer in Accounting 1 (Service Concern)
140 Questions Reviewer in Accounting 1 (Service Concern)140 Questions Reviewer in Accounting 1 (Service Concern)
140 Questions Reviewer in Accounting 1 (Service Concern)
 
Problemas motores cd.docx
Problemas motores cd.docxProblemas motores cd.docx
Problemas motores cd.docx
 
Generar Productividad Digital en Negocios 3.0
Generar Productividad Digital en Negocios 3.0Generar Productividad Digital en Negocios 3.0
Generar Productividad Digital en Negocios 3.0
 
Necesidades educativas especiales
Necesidades educativas especialesNecesidades educativas especiales
Necesidades educativas especiales
 
Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...
Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...
Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...
 
Formato guias 3
Formato guias 3Formato guias 3
Formato guias 3
 
MSB Certificate
MSB CertificateMSB Certificate
MSB Certificate
 
Pc 0216 felinos fantásticos
Pc 0216 felinos fantásticosPc 0216 felinos fantásticos
Pc 0216 felinos fantásticos
 

Similar to as400 built in function- %STATUS

S401 The New Standard For Modbus Indicators
S401 The New Standard For Modbus IndicatorsS401 The New Standard For Modbus Indicators
S401 The New Standard For Modbus Indicatorsucontrol
 
Globalcompose.com sample coursework paper on management of information security
Globalcompose.com sample coursework paper on management of information securityGlobalcompose.com sample coursework paper on management of information security
Globalcompose.com sample coursework paper on management of information securityAcademic Research Paper Writing Services
 
Globalcompose.com sample coursework paper on management of information security
Globalcompose.com sample coursework paper on management of information securityGlobalcompose.com sample coursework paper on management of information security
Globalcompose.com sample coursework paper on management of information securityAcademic Research Paper Writing Services
 
2005 MITSUBISHI AIRTREK Service Repair Manual
2005 MITSUBISHI AIRTREK Service Repair Manual2005 MITSUBISHI AIRTREK Service Repair Manual
2005 MITSUBISHI AIRTREK Service Repair Manualtygrtd iolpo
 
Cataloge ge 3.control and_automation-11_vat300_e_c4-3_rev_a
Cataloge ge 3.control and_automation-11_vat300_e_c4-3_rev_aCataloge ge 3.control and_automation-11_vat300_e_c4-3_rev_a
Cataloge ge 3.control and_automation-11_vat300_e_c4-3_rev_aDien Ha The
 
11 vat300 e_c4-3_rev_a
11 vat300 e_c4-3_rev_a11 vat300 e_c4-3_rev_a
11 vat300 e_c4-3_rev_aDien Ha The
 
CT2K-Reports_bdbupdated_031014.pptx
CT2K-Reports_bdbupdated_031014.pptxCT2K-Reports_bdbupdated_031014.pptx
CT2K-Reports_bdbupdated_031014.pptxbrianbrowne13
 
What is J1939 software stack? Learn about the Diagnostic Trouble Codes(DTC)
What is J1939 software stack? Learn about the Diagnostic Trouble Codes(DTC)What is J1939 software stack? Learn about the Diagnostic Trouble Codes(DTC)
What is J1939 software stack? Learn about the Diagnostic Trouble Codes(DTC)Embitel Technologies (I) PVT LTD
 
telecom communication ppt
telecom communication ppttelecom communication ppt
telecom communication pptpavan kumar
 
FasDiag OM123 User's Manual
FasDiag OM123 User's ManualFasDiag OM123 User's Manual
FasDiag OM123 User's ManualTim Miller
 
Hacking Access Control Systems
Hacking Access Control SystemsHacking Access Control Systems
Hacking Access Control SystemsDennis Maldonado
 
My cool new Slideshow!
My cool new Slideshow!My cool new Slideshow!
My cool new Slideshow!Anas Mohammed
 
C2020-702 IBM Cognos TM1 Developer
C2020-702 IBM Cognos TM1 DeveloperC2020-702 IBM Cognos TM1 Developer
C2020-702 IBM Cognos TM1 DeveloperRobert Watcke
 

Similar to as400 built in function- %STATUS (20)

S401 The New Standard For Modbus Indicators
S401 The New Standard For Modbus IndicatorsS401 The New Standard For Modbus Indicators
S401 The New Standard For Modbus Indicators
 
Globalcompose.com sample coursework paper on management of information security
Globalcompose.com sample coursework paper on management of information securityGlobalcompose.com sample coursework paper on management of information security
Globalcompose.com sample coursework paper on management of information security
 
Globalcompose.com sample coursework paper on management of information security
Globalcompose.com sample coursework paper on management of information securityGlobalcompose.com sample coursework paper on management of information security
Globalcompose.com sample coursework paper on management of information security
 
2005 MITSUBISHI AIRTREK Service Repair Manual
2005 MITSUBISHI AIRTREK Service Repair Manual2005 MITSUBISHI AIRTREK Service Repair Manual
2005 MITSUBISHI AIRTREK Service Repair Manual
 
Cataloge ge 3.control and_automation-11_vat300_e_c4-3_rev_a
Cataloge ge 3.control and_automation-11_vat300_e_c4-3_rev_aCataloge ge 3.control and_automation-11_vat300_e_c4-3_rev_a
Cataloge ge 3.control and_automation-11_vat300_e_c4-3_rev_a
 
11 vat300 e_c4-3_rev_a
11 vat300 e_c4-3_rev_a11 vat300 e_c4-3_rev_a
11 vat300 e_c4-3_rev_a
 
CT2K-Reports_bdbupdated_031014.pptx
CT2K-Reports_bdbupdated_031014.pptxCT2K-Reports_bdbupdated_031014.pptx
CT2K-Reports_bdbupdated_031014.pptx
 
SDM 630MCT
SDM 630MCTSDM 630MCT
SDM 630MCT
 
What is J1939 software stack? Learn about the Diagnostic Trouble Codes(DTC)
What is J1939 software stack? Learn about the Diagnostic Trouble Codes(DTC)What is J1939 software stack? Learn about the Diagnostic Trouble Codes(DTC)
What is J1939 software stack? Learn about the Diagnostic Trouble Codes(DTC)
 
8279 PKDI
8279 PKDI8279 PKDI
8279 PKDI
 
Skillwise JCL
Skillwise JCLSkillwise JCL
Skillwise JCL
 
63610-80-20 CalibrationTC
63610-80-20 CalibrationTC63610-80-20 CalibrationTC
63610-80-20 CalibrationTC
 
Dcs operator training
Dcs operator trainingDcs operator training
Dcs operator training
 
telecom communication ppt
telecom communication ppttelecom communication ppt
telecom communication ppt
 
Field testmodes
Field testmodesField testmodes
Field testmodes
 
FasDiag OM123 User's Manual
FasDiag OM123 User's ManualFasDiag OM123 User's Manual
FasDiag OM123 User's Manual
 
8279 d
8279 d8279 d
8279 d
 
Hacking Access Control Systems
Hacking Access Control SystemsHacking Access Control Systems
Hacking Access Control Systems
 
My cool new Slideshow!
My cool new Slideshow!My cool new Slideshow!
My cool new Slideshow!
 
C2020-702 IBM Cognos TM1 Developer
C2020-702 IBM Cognos TM1 DeveloperC2020-702 IBM Cognos TM1 Developer
C2020-702 IBM Cognos TM1 Developer
 

More from aminem_mp

as400 built in function- %SIZE
as400 built in function- %SIZEas400 built in function- %SIZE
as400 built in function- %SIZEaminem_mp
 
as400 built in function- %SECONDS
as400 built in function- %SECONDSas400 built in function- %SECONDS
as400 built in function- %SECONDSaminem_mp
 
as400 built in function- %SCAN
as400 built in function- %SCANas400 built in function- %SCAN
as400 built in function- %SCANaminem_mp
 
as400 built in function- %REPLACE
as400 built in function- %REPLACEas400 built in function- %REPLACE
as400 built in function- %REPLACEaminem_mp
 
as400 built in function- %PARMS
as400 built in function- %PARMSas400 built in function- %PARMS
as400 built in function- %PARMSaminem_mp
 
as400 built in function- %OPEN
as400 built in function- %OPENas400 built in function- %OPEN
as400 built in function- %OPENaminem_mp
 
as400 built in function- %DAYS
as400 built in function- %DAYSas400 built in function- %DAYS
as400 built in function- %DAYSaminem_mp
 
as400 built in function- %CHAR
as400 built in function- %CHARas400 built in function- %CHAR
as400 built in function- %CHARaminem_mp
 
as400 built in function- %ABS
as400 built in function- %ABSas400 built in function- %ABS
as400 built in function- %ABSaminem_mp
 
as400 built in function- %HOURS
as400 built in function- %HOURSas400 built in function- %HOURS
as400 built in function- %HOURSaminem_mp
 
as400 built in function- %MSSECONDS
as400 built in function- %MSSECONDSas400 built in function- %MSSECONDS
as400 built in function- %MSSECONDSaminem_mp
 
As400 load all subfile
As400   load all subfileAs400   load all subfile
As400 load all subfileaminem_mp
 
As400 session or device error
As400   session or device errorAs400   session or device error
As400 session or device erroraminem_mp
 
As400 journaling
As400   journalingAs400   journaling
As400 journalingaminem_mp
 

More from aminem_mp (14)

as400 built in function- %SIZE
as400 built in function- %SIZEas400 built in function- %SIZE
as400 built in function- %SIZE
 
as400 built in function- %SECONDS
as400 built in function- %SECONDSas400 built in function- %SECONDS
as400 built in function- %SECONDS
 
as400 built in function- %SCAN
as400 built in function- %SCANas400 built in function- %SCAN
as400 built in function- %SCAN
 
as400 built in function- %REPLACE
as400 built in function- %REPLACEas400 built in function- %REPLACE
as400 built in function- %REPLACE
 
as400 built in function- %PARMS
as400 built in function- %PARMSas400 built in function- %PARMS
as400 built in function- %PARMS
 
as400 built in function- %OPEN
as400 built in function- %OPENas400 built in function- %OPEN
as400 built in function- %OPEN
 
as400 built in function- %DAYS
as400 built in function- %DAYSas400 built in function- %DAYS
as400 built in function- %DAYS
 
as400 built in function- %CHAR
as400 built in function- %CHARas400 built in function- %CHAR
as400 built in function- %CHAR
 
as400 built in function- %ABS
as400 built in function- %ABSas400 built in function- %ABS
as400 built in function- %ABS
 
as400 built in function- %HOURS
as400 built in function- %HOURSas400 built in function- %HOURS
as400 built in function- %HOURS
 
as400 built in function- %MSSECONDS
as400 built in function- %MSSECONDSas400 built in function- %MSSECONDS
as400 built in function- %MSSECONDS
 
As400 load all subfile
As400   load all subfileAs400   load all subfile
As400 load all subfile
 
As400 session or device error
As400   session or device errorAs400   session or device error
As400 session or device error
 
As400 journaling
As400   journalingAs400   journaling
As400 journaling
 

Recently uploaded

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 

as400 built in function- %STATUS

  • 1.  %STATUS %STATUS provides a five-digit status code that identifies the error. Program status codes are in the range 00100 to00999 and File status codes are in the range 01000 to 01999. Status codes in the range00000 to 00050 are considered to be normal (i.e., they are not set by an exception/errorcondition). We can see all the program/file related system messages using the command below: DSPMSGD RANGE(*FIRST *LAST) MSGF(QRNXMSG) DETAIL(*BASIC) The below table lists some of the commonly used Status Codes: MSG ID MESSAGE DETAIL 00100 00102 00112 00121 00122 00202 00211 00222 00401 00413 00414 00415 00907 01021 01211 01218 01221 Value out of range for string operation Divide by zero Invalid Date, Time or Timestamp value. Array index not valid OCCUR outside of range Called program or procedure failed Error calling program or procedure Pointer or parameter error Data area specified on IN/OUT not found Error on IN/OUT operation User not authorized to use data area User not authorized to change data area Decimal data error (digit or sign not valid) Tried to write a record that already exists (file being used has unique keys and key is duplicate, or attempted to write duplicate relative record number to a subfile). File not open. Record already locked. Update operation attempted without a prior read. Example ERROR HANDLING USING E-OPERATOR EXTENDER AND %ERROR BUILT-IN FUNCTION Columns . . . : 6 80 AMITCC/QRPGLESRC SEU==> E_OP_EXTND FMT H HKeywords++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ *************** Beginning of data ************************************************ 0001.00 HOPTION(*SRCSTMT) 0002.00 FCUST UF A E DISK USROPN 0003.00 0004.00 C 1 SETLL(E) CUSTR 0005.00 C EXSR @ERROR 0006.00 C EVAL CSNAME='CCC'
  • 2. 0007.00 C UPDATE(E) CUSTR 0008.00 C EXSR @ERROR 0009.00 C SETON LR 0010.00 * 0011.00 C @ERROR BEGSR 0012.00 C IF %ERROR() 0013.00 C IF %STATUS(CUST)=1211 0014.00 C OPEN CUST 0015.00 C ELSEIF %STATUS(CUST)=1221 0016.00 C READ(E) CUST 0017.00 C EVAL CSNAME='CCC' 0018.00 C UPDATE(E) CUSTR 0019.00 C ENDIF 0020.00 C ENDIF 0021.00 C ENDSR ****************** End of data **************************************************