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
define the purpose of the iter operation?
What is data structure in as400? What is the use of data structure?
why is as/400 called object oriented machine?
what does check opcode do ?
where can you specify an indicator in lokup operation?
What is the difference between crtdupobj and copyf?
How Many Specs Are There In Rpg & Which Are They?
what is *iso date format?
what is the maximum number of subfiles that can specified in a display file ?
What is the use of jdftval in as400?
what is the purpose of dynslt keyword?
how does the runqry show the output?
what are various techniques to pass parameters from one program to another?
how many types of display are available on as/400 for user interaction?
Hi,Please give me the the answer for these quesitons? 1.what is IFS and ICF and RAPE amd DISKET fils? explain with example please? 2.What is the difference between POST AND SPACE OPCODES? 3.Can anybody tell me default printerfile command and object type?