what is clile code get last digit in numarice value
Answer Posted / remya
DCLF FILE(DSP) RCDFMT(RECDSP)
DCL VAR(&X) TYPE(*DEC) LEN(2 0)
DCL VAR(&Y) TYPE(*DEC) LEN(2 0)
L1:SNDRCVF RCDFMT(RECDSP)
CHGVAR VAR(&X) VALUE(95)
CHGVAR VAR(&Y) VALUE((&X/10)*10)
CHGVAR VAR(&Y) VALUE(&X-&Y)
GOTO CMDLBL(L1)
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How to reverse a string using RPG?
what is subfile?
what is a program described file in rpg?
records can be read/update/deleted with which file?
distinguish between terminating a program through seton lr and return?
define the purpose of the %sst function?
how many types of display are available on as/400 for user interaction?
Difference Between Skip Before & Space Before?
WHAT IS AS/400 SYNORIO?
What is the difference between physical file and logical file?
how to write code for singlepage in sqlrpgle with update ?
what is the necessary keyword for non-join logical file?
what is the purpose of ovrdta (override data) keyword?
what are the different methods to access seu?
what are different types of substems?