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

If there are 1000 member(PGM type) in a SRC file. How can we compile in a CL program? ( It need to be done in a loop)?

1 Answers  


how can i retrieve the field name from display file at run time? Devendra Singh Tomar

3 Answers  


What are the values of NUM1 and NUM2 after executing the following code? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2+÷+ResultLenDHHiLoEq C MOVE *LOVAL NUM1 50 C MOVE *J-fIVAL NtJM2 52

2 Answers   Fiserv, IBM,


I know whole thing ab't Arrays related to declaration..can anyone tell me what exactly use of array or anyone faced a situation where he found use of array must....

1 Answers  


How to declare the dynamic(run time) array in rpgle? can you please give example

2 Answers   Polaris,


What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?

2 Answers  


If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?

0 Answers  


how do u track msg in cl pgm???

1 Answers   CTS,


Suppose we add one field in physical file and this physical file is used by several programs.how do we know which program is using that file? What are the impact analysis.

6 Answers  


what is importance of 'MAPFLD' IN OPNQRYF FILE ?

2 Answers  


How to print output from openquery in as400 ?

1 Answers   Four soft,


How do you code file / field renames in ILE RPG?

4 Answers   Accenture, IBM,


Categories