Author: Nish84
Posted: Mon Oct 10, 2016 4:25 pm (GMT 5.5)
Thank you for the quick response!
The input record would be something like this, where only a subset of the input fields are to be populated into the output. In addition, some of the input fields would contain trailing spaces and some would contain only blank values:
I do not mind copy pasting, but for the fact that it would affect code readability
Writing a sub-routine is also fine (moving each field into the output record using reference modification and calling the routine to remove unwanted spaces). However, there would be 60 calls to the sub-routine, one after each MOVE statement. This is what I plan on doing if there isn't an alternative.
My query was to check if the coding can be done in a simpler way, using something like the INSPECT statement. Please let me know if you need further details. Thanks!
Posted: Mon Oct 10, 2016 4:25 pm (GMT 5.5)
Thank you for the quick response!
The input record would be something like this, where only a subset of the input fields are to be populated into the output. In addition, some of the input fields would contain trailing spaces and some would contain only blank values:
Code: |
HIJLK 12.99 ABC 18908.6770 DEF GHI JKLMN 234 34569999000 ......... |
I do not mind copy pasting, but for the fact that it would affect code readability

My query was to check if the coding can be done in a simpler way, using something like the INSPECT statement. Please let me know if you need further details. Thanks!