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

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,


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

0 Answers  


1.How to load Records of a Physical file(PF) in the reverse order, in CL program?

2 Answers   Cap Gemini,


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

0 Answers  


program to find the number of objects used in a given program through a display.

2 Answers   IBM,






What is file identifier where we can use?

0 Answers  


When PGMA calls PGMB for the first time PGMB executes the *INZSR. PGMB uses the RETRN operation to return to PGMA. When PGMA call PGMB the second time is the *INZSR executed?

5 Answers   Mphasis,


How to search particular records from the database file in rpg?

2 Answers  


list down and describe the sub systems vailable

5 Answers   IBM,


What is the purpose of PUTOVR keyword?

2 Answers  


Anybody can explain the difference between SFLCLR & SFLINZ?

7 Answers  


How to update physical file in rpgle without using display file?

4 Answers   GalaxE, IBM, TCS,


Categories