what is clile code get last digit in numarice value

Answers were Sorted based on User's Feedback



what is clile code get last digit in numarice value..

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 clile code get last digit in numarice value..

Answer / maha

Runsqlstmt (Runqry *n file (*summary))

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

where can you specify an indicator in lokup operation?

1 Answers   IBM,


Apart from opening of a file do we have any other use of USROPN?

0 Answers  


can error messages as a result of a comp, range or values keyword be overridden?

1 Answers   IBM,


define the purpose of the leave operation?

1 Answers   IBM,


how to insert the data in pf by using cl program

2 Answers   TCS,






What is file information data structure(infds) in as400?

0 Answers  


what is a physical file?

1 Answers   IBM,


what are the different opcodes available in rpg for database access ?

1 Answers   IBM,


how do you specify page overflow indicator for printer files in rpg?

1 Answers   IBM,


What is the use of E specification in RPG?

1 Answers  


what is scan and xlate?

1 Answers   IBM,


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.

2 Answers  


Categories