Check Function

Check function is used for checking field names and values of input parameters and/or check screen and other attributes of AS400 screens. To use a check function:

  1. Click Check on CODE PROPERTIES popup to use the function
  2. Select Interface Type, Function, and Requirements for function respectively 

Available Check functions :

Interface TypeFunctionDescriptionRequired
InputcontainsKey(fieldName)Check specific field name of input parametersfieldName of needed input parameter 
checkBlank(fieldName)Check if the value of specific field name of input parameters is empty or nullfieldName of needed input parameter 
HostcheckScreen(screen)Compare between current AS400 screen and specific AS400 screenAS400 screen wanted to check
checkScreen(text, row, col)Check specific text at specific position on AS400 screenRow, column of position and text needed to check on AS400 screen
checkBlank(fieldName, screen)Check if the value of specific field name of specific AS400 screen is empty or nullfieldName of needed field AS400 screen – AS400 screen needed to check
checkErrorMsg(row, col)Check error message at specific position on AS400 screenRow and column of position on AS400 screen
checkAndThrowErrorMsg(row, col, errorCode)Check error message at specific position on AS400 screen and return selected error codeRow and column of position on AS400 screen- Select available errorCode as follows:
1. RESPONSE_CODE_AUTHENTICATION_FAILED2. RESPONSE_CODE_CANNOT_CONNECT_HOST3. RESPONSE_CODE_HOST_ERROR4. RESPONSE_CODE_HOST_TIMEOUT5. RESPONSE_CODE_INCORRECT_DATA6. RESPONSE_CODE_REQUIRE_INPUT7. RESPONSE_CODE_PAGE_NOT_FOUND8. RESPONSE_CODE_SESSION_FAIL9. RESPONSE_CODE_SESSION_SUCCESS10. RESPONSE_CODE_USER_NOT_ALLOW11. RESPONSE_CODE_USER_EXPIRED
  1. Click OK to confirm selection
  2. Selected check function will be encoded and shown in whitespace of CODE EDITOR  
  1. Click DONE to save coding