How can you determine the number of characters in a variable?

Answer Posted / kcsyam

use Built-in-function %LEN()

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1318


How can we know running job is batch or interactive?

660


do you use message subfiles? What are the necessary keywords required coding a message subfile?

694


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.

5429


what was the robotech rpg?

689






if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

2201


What is difference between bind by copy and bind by reference?

1736


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

511


what is data area and how it is used in rpg program ?

758


what is the necessary keyword needed to scroll subfile records?

707


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

492


Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

519


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?

624


can I touch the array during treatments?

762


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2056