Skip last 3 bytes and first 3 bytes of data in cobol
Posted: Wed Dec 21, 2022 7:26 pm
Hi,
i have a variable with char lenght 30.for example
Ws-ID x(30)
I want to skip the first and last 3 char from the value in ws-id.
For example
1.ws-id = abc123456e1b
The result should be 123456
Can any one suggest how this can be done in cobol
i have a variable with char lenght 30.for example
Ws-ID x(30)
I want to skip the first and last 3 char from the value in ws-id.
For example
1.ws-id = abc123456e1b
The result should be 123456
Can any one suggest how this can be done in cobol