AS400 CLP Calculation
I will explain how to use calculations on AS400. The operations that I will explain this time are addition (+), subtraction (-), multiplication (*) and division (/).
(more…)
I will explain how to use calculations on AS400. The operations that I will explain this time are addition (+), subtraction (-), multiplication (*) and division (/).
(more…)
Converting value of an integer variable to a character is fairly simple. The simplest way is by displaying the value of a decimal using SNDPGMMSG. The SNDPGMMSG command can only display values from *CHAR variables, it needs to be converted from *DEC to *CHAR. The good thing, CLP can automatically convert only by using the CHGVAR (Change Variable) command.
(more…)
RUNSQL (Run SQL) is a command to run query statements in the command line. This command can only execute execution commands such as create-drop table, insert-delete-update record.
(more…)
Variables for writing CLP AS400 programming begin with the sign ‘&’ and doeclare at the beginning of the program. Variables have 6 types including: Decimal (*DEC), Character (*CHAR), Logical (*LGL), Integer (*INT), Unsigned Integer (*UINT) and Pointer (*PTR).
(more…)