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 |
where can you specify an indicator in lokup operation?
Apart from opening of a file do we have any other use of USROPN?
can error messages as a result of a comp, range or values keyword be overridden?
define the purpose of the leave operation?
how to insert the data in pf by using cl program
What is file information data structure(infds) in as400?
what is a physical file?
what are the different opcodes available in rpg for database access ?
how do you specify page overflow indicator for printer files in rpg?
What is the use of E specification in RPG?
what is scan and xlate?
I have a display file with mandatory fields. Is there anyway that i can highlight those fields to bring attention to the user? The same behavior that AS400 makes when we attempt to execute a command without completing all the required parameters. Note: I have used DSPATR(HI) or DPSATR(RI) and they have different behaviors. Thanks.