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 is default data type for the fields(sub fields) defined in data structures in rpg?

2 Answers   IBM,


how can a message from a message file appear as a constant on the screen?

1 Answers   IBM,


What is the difference between Interactive & Batch Job?

1 Answers  


how many key fields does cl required

1 Answers  


how you will know whether you are in sfldrop or sflfold mode?

0 Answers   IBM,






how can we view the entire objects and its types in a pgm?

7 Answers   Mind Tree,


What is Job description?

1 Answers  


when you are defining a flat file in your program in f specs which format will you specify?

1 Answers   IBM,


How many record formats can you have in a Physical file and in a Logical file ?

1 Answers  


what does dfu program you to do on a record?

0 Answers   IBM,


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

0 Answers  


an access path may be in which sequence?

0 Answers   IBM,


Categories