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 opcode will be used to test the zone of a character field?
How can we sort an array?
What is the purpose of SFLNXTCHG keyword in a subfile?
How can we arrange duplicate records in a file?
What is the Difference between command attention key and command function key ?
how many maximum spaces could be given in o specs?
what is the difference between clear and reset opcodes and open and close opcodes?please tell me in real time senario with example please? And What is the use of SFLNXTCHG?Where we can use this?
Hey, What is the difference between SCAN,CHECK,XLATE OPCODES? please give me the answeres with example in real time senario?
how to insert the data in pf by using cl program
What is SFLSIZ ?
How can we create subsystem in as400?
What is acronym of RPG?