what is clile code get last digit in numarice value
Answers were Sorted based on User's Feedback
Answer / 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 |
what is default data type for the fields(sub fields) defined in data structures in rpg?
how can a message from a message file appear as a constant on the screen?
What is the difference between Interactive & Batch Job?
how many key fields does cl required
how you will know whether you are in sfldrop or sflfold mode?
how can we view the entire objects and its types in a pgm?
What is Job description?
when you are defining a flat file in your program in f specs which format will you specify?
How many record formats can you have in a Physical file and in a Logical file ?
what does dfu program you to do on a record?
What is file information data structure(infds) in as400?
an access path may be in which sequence?