Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is clile code get last digit in numarice value

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the different commands used in rlu ?

2397


What is the difference between iter and do? We know both are used to execute set of statements repeatedly, but what is the main difference?

1019


how can a cgi check whether an ifs object is available?

1097


Pose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular name field. How can we do the above using search criteria other than using the if cond?

1046


what is the difference between packed decimal and zoned decimal?

3233


what the purpose of ovrdta, ovrata keywords?

1954


WHAT is STORED PROCEDURE CONCEPT IN AS400 WITH EXAMPLE?

2520


how do you specify the number of records to roll in a subfile ?

2158


which are control break logic indicators?

1092


define a output queue?

1580


What Is The Object Type Of Pf, Lf, Printer File & Display File?

1155


what is maximum number of arrays allowed in rpg?

1904


Difference Between Skip Before & Space Before?

1216


A join logical file has how many record formats?

1115


what are the two record formats a subfile contain ?

1898