Jag Badal
New User
Joined: 25 Jun 2020 Posts: 6 Location: UK
|
|
|
|
Hello,
I'm new to easytrieve and I'm trying to figure out a way to count the number of characters in a field.
For Example - We have a XYZ field with 10 Characters. If the the data in this field is less than 5 characters i.e. 12345 then the O/P should look like XXXXXXXX45. If it has 10 characters i.e. ABCD567890 then the O/P should look like ABXX5XXX90.
Using Cobol, this would have been an easy ask - I would have used inspect and reference modification to achieve my goal. However, I need to write this piece of logic using easytrieve.
Is there a way to count the number of characters in a field in Easytrieve ? |
|