%INTH built in fucntion in rpgle is very much similar to %INT except that if the expression is a decimal, float or character value, half adjust is applied to the value of the expression while converting it to integer type. %INTH built in function example
%OPEN function is used to check to see if a file has already been opened. It returns *ON if the file is opened, otherwise it returns *OFF. In case we are using USROPN keyword in F-Spec, then during the program initialization the file will be closed and we need to open it explicitl...
SQL built-in functions cheat sheet is very helpful. You can use these for any embedded SQL programming language such as SQLRPGLE on iSeries(AS400), for SQL in java programs using JDBC connections. You can also query files on iSeries using STRSQL command which provides a SQL command line. ...
1. bash builtin commands(fedora38-GNU Bash 5.2) BASH_BUILTINS(1) General Commands Manual BASH_BUILTINS(1)23NAME4:, ., [, alias, bg, bind, break, builtin, caller, cd, command, compgen, complete, compopt, continue, declare, dirs, disown,echo,5enable, eval, exec, exit, export,false...
The errors in this case are identified using the function %ERROR built-in function. %ERROR built in function: IF %ERROR() IF %STATUS(CUST)=1211 OPEN CUST
%STATUS built in function provides a five-digit status code that identifies the error. %STATUS built in function example: IF %ERROR() IF %STATUS(CUST)=1211 OPEN CUST ELSEIF %STATUS(CUST)=1221