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

Answers were Sorted based on User's Feedback



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

Answer / abhishek bajpai

Use
%Len(%Trim(Variable)) to get the exact number of characters
in a variable

Is This Answer Correct ?    14 Yes 0 No

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

Answer / mahalakshmi

%CHECKR() with factor1 as blanks

Is This Answer Correct ?    0 Yes 0 No

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

Answer / kcsyam

use Built-in-function %LEN()

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More RPG400 Interview Questions

how can I tell when to replace the array?

1 Answers   IBM,


can anybody help me that what is the procedure of debugging the service program?

3 Answers   CSC,


Anybody know the difference of primary file and full procedural file

4 Answers  


Hi,Please give me complete code with this logic. The question is how to read the records from a file with load an array of size with error condition? (The logic is Z-Add 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN9 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO)please give me complete code with explanation?

1 Answers  


what is use of sflnxtchg and use of MDT(modify data tag).both r same r not and can we use these on dspf and subfile.

2 Answers  


what built in function can be used with SETLL.If you want to check whether the search argument is successful or not? Please give me answer with example?

3 Answers  


Can anybody tell me in which scenario we have to use SQLRPG .(Embeded SQL)....?

2 Answers   HSBC,


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1 Answers  


Can AnyOne tell me how to read join logical file in rpg from starting to end?

2 Answers  


What is the difference between iter and do?

1 Answers  


what is the use of sflnxtchg?

1 Answers   IBM,


What are the types of identifiers?

1 Answers  


Categories