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

The content of Physical file is as below: hfcftp wruquief SENDPASV 0 CDUP ASCII GET 01100901.CSV ramndk/ECP505.EC0110090 (REPLACE QUIT Thw above commands will get executed when we call STRTCPFTP from CL program.... Now if I want to use SFTP what can be the solution? plz reply in detail....Thank you for ny help...

1 Answers  


how to read database records without locking them?

1 Answers   IBM,


in which specification the report layout can be defined?

1 Answers   IBM,


What is the purpose of CHGPF (Change physical file) command?

1 Answers  


when are the referential constraints executed?

0 Answers   IBM,


Hello, I have created a CMD type object. In one of the fields in Display file , I would like to see All the Source files present by pass the name of Library. Tried using CHoice(Keyword) and Choicepgm on PARM , but doesn't seems to be working. Any help please..

0 Answers   BlackRock,


What is program status data structure(psds) in as400?

0 Answers  


Hello friends, i am new to AS/400. Can any one help me in AS/400 i meant say can you send me some FAQS and interview questions.

7 Answers   HanceInc, IBM,


What is source physical file?

1 Answers  


what does opcode post do ?

1 Answers   IBM,


What is the maximum length of a variable name in CL?

1 Answers  


the maximum number of subfiles that can be active for a single file is ____ .

1 Answers   IBM,


Categories