Need help on trimming cobol string
Posted: Wed Jul 19, 2017 3:36 pm
Hi,
Need help on trimming cobol string using INSPECT or PERFORM.
I have a string in this format with delimeters: (01)SSN(02)MobileNumber(03)DateApplied(04)DateApproved
The only required field is the SSN, others can be blank. So, if I only have SSN and Date Applied, string would be (01)SSN(02)...........(03)DateApplied(04) ............
Note: The (......) represents the spaces.
What I need is to trim the fields with blank value so that I will have something like this: 01)SSN(03)DateApplied.
TIA!
Need help on trimming cobol string using INSPECT or PERFORM.
I have a string in this format with delimeters: (01)SSN(02)MobileNumber(03)DateApplied(04)DateApproved
The only required field is the SSN, others can be blank. So, if I only have SSN and Date Applied, string would be (01)SSN(02)...........(03)DateApplied(04) ............
Note: The (......) represents the spaces.
What I need is to trim the fields with blank value so that I will have something like this: 01)SSN(03)DateApplied.
TIA!