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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the procedure and explain about real time scenario.

1931


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

3809


how do I declare a table or array in rpg iv?

1164


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1703


how do I preserve and clean the array?

1128


1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

6472


what is program status data structure?

2364


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1862


How to write record if no field or the field are different in physical file in rpgle ?

946


how can you display specific subfile page on the screen in unequal subfile?

1129


what is kids-rpg?

1106


what is the rpg system?

1257


what was the robotech rpg?

1183


are there any useful c runtime apis that I can call from rpg iv?

1141


How to select highest score of each subject or how to select highest income of every month?

1745