How can you determine the number of characters in a variable?
Answers were Sorted based on User's Feedback
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 |
I have file with data as follows data 1 2 3 4 5 I need to read 1 and 5 ,then 2 and 4 then like.. upto end of file, can any one help on this
1.Where we declare Variables in RPG/400,RPGIV,RPGILE.? 2.When do we use D-spec and I-spec in real time ?.what is difference between them?
How can you determine the number of characters in a variable?
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?
Need a sql query: retrive all duplicate records in table
Anybody can explain the difference between SFLCLR & SFLINZ?
HOW TO DELETE THE RECORD FROM MASTER FILE WHICH IS LINK BY ANOTHER TRASATION FILE WITH REFERTIAL INTYGRITY?
We have a Physical file, after reading 5 records,it has to read LF of that same Physical file,Will it start reading from Ist record or will start reading from 5th record?
I have a file .In that file i have 3 fields. Those fields are eno, ename, esal.Keyfield is eno. In that file i have data like this for eno 1,2,3,4,5. Now i need to display 2nd record. That means i need to set the pointer on 2nd record... Then, write the complete rpg program using setll.
1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?
this is rpg3 code W0RTN IFEQ @CN,002 what is the means @CN,002
How to search particular records from the database file in rpg?