Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
If you're using a COBOL program read it to a working storage variable which is defined with a size equal to the size of the record length and try comparying 1 byte with SPACE from the end. For each iteration, increment one count and when it hits the first non space charater, subtract the counter from the record length and you've the value you're looking for !
The request I had put before u can be solved by program ofcourse but can u please help to solve this using SORT? will it be possible using sort?
actually for a variable record the length of the record will be present at the begining so is that sufficient to get that column ?