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

What are Control level indicators?

1 Answers  


which are the figurative constants used in rpg?

0 Answers   IBM,


How to reverse the string in rpg

0 Answers  


What are the two types of read performed on data queues?

1 Answers  


when would you prefer logical file than opnqryf?

1 Answers   IBM,






How can you identify End of file in CLP program?

1 Answers  


How can we change the uppercase to Lowercase in RPG?

0 Answers  


describe the difference between the dowxx and douxx operations?

1 Answers   IBM,


What the difference between Source Physical File and Physical File?

1 Answers  


What is the symbol used for shifting fields in SDA?

1 Answers  


give three main purposes of file specification ?

1 Answers   IBM,


If login Screen has been modified by adding current date to be displayed. What Step to be followed to Keep that date as Current date Note: If no steps taken then it will display only the compilation date

2 Answers   BridgeStone,


Categories