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...


Let?s consider a variable X of length 20. Move value ?ABC?
to it.How to determine how many characters does X have?



Let?s consider a variable X of length 20. Move value ?ABC? to it.How to determine how many characte..

Answer / xman

Hello if You Want to Know the Characters In a Variable then
You can Use %Len With %Trim Built-in Functions
Below is the Example

D num1 S 7P 2
D chr1 S 10A inz('Toronto ')

num1 = %len(%trim(chr1));

Value of the Num1 will be 7

Is This Answer Correct ?    14 Yes 0 No

Post New Answer

More RPG400 Interview Questions

How to update selected fields from pf without using update opcode. How to read all member in Rpg-3,without using any cl command?

8 Answers  


What is the compilation option that has to he specified while compiling an RPC program which uses a file having date data type field?

3 Answers   HSBC, IBM,


in which journalling which attributes are necessary

2 Answers   CTS,


wat is the difference between dataarea and data queue?

5 Answers   Airtel, Four soft, Shahi Exports,


how to change the length of the field in a physicalfile?

12 Answers  


1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the error through the RPG/400

10 Answers   IBM, Tech Mahindra,


Hi guys. Im in AS/400(RPGLE,CLP) from last 1 year.Now i wan to upgrade my Knowledge in AS/400. Suggest me some new fields & courses which falls under AS/400. Waiting for your quick Response.

1 Answers   Voltech,


Setps to create .csv file on IFS folder in AS/400( V4R3)....?

3 Answers   TCS,


what is the necessary keyword needed to scroll subfile records?

0 Answers   IBM,


What is the name of default out queue when user logs inn to syatem with valid profile?

3 Answers   IBM,


please help me answer to this question what is the difference between the binding and srvpgm in ilerpg?

4 Answers   HCL,


how to run only 10 modules of existing N modules in service program in RPGILE ?

3 Answers   Wipro,


Categories