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
what is the procedure and explain about real time scenario.
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...........
how do I declare a table or array in rpg iv?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
how do I preserve and clean the array?
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.
what is program status data structure?
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...
How to write record if no field or the field are different in physical file in rpgle ?
how can you display specific subfile page on the screen in unequal subfile?
what is kids-rpg?
what is the rpg system?
what was the robotech rpg?
are there any useful c runtime apis that I can call from rpg iv?
How to select highest score of each subject or how to select highest income of every month?