Re: Inspect...



"EBille" <billard.eric@xxxxxxx> wrote:
> Suppose you got first-name and want to display error message when you
> encounter two spaces (and some other characters).
> For exemple 'MIKE DANIEL ' is good (because there is only one space
> between Mike and Daniel) but 'MIKE DANIEL ' is not. The problem is
> trailing spaces. I have tried this :
> inspect ws-firstname tallying ws-mytally for characters before ' '
> but it doesn't works : first-name never validates because of trailing
> spaces. Anybody has a solution ?


It's a little more complete than your example, but you can download file
NAME.ZIP from my website below under "COBOL Source Files." It was programmed
to work using COBOL 74, COBOL 85 or COBOL 2002.
--
Judson McClendon judmc@xxxxxxxxxxxxx (remove zero)
Sun Valley Systems http://sunvaley.com
"For God so loved the world that He gave His only begotten Son, that
whoever believes in Him should not perish but have everlasting life."


.



Relevant Pages

  • Inspect...
    ... I'm looking for a solution to validate datas: ... encounter two spaces (and some other characters). ... between Mike and Daniel) but 'MIKE DANIEL ' is not. ... trailing spaces. ...
    (comp.lang.cobol)
  • Re: Inspect...
    ... > I'm looking for a solution to validate datas: ... > encounter two spaces (and some other characters). ... > between Mike and Daniel) but 'MIKE DANIEL ' is not. ... > trailing spaces. ...
    (comp.lang.cobol)
  • Re: Inspect...
    ... >I'm looking for a solution to validate datas: ... >encounter two spaces (and some other characters). ... >between Mike and Daniel) but 'MIKE DANIEL ' is not. ... >trailing spaces. ...
    (comp.lang.cobol)
  • Re: Visual basic 6 ado error 3662 "operation was canceled"
    ... created as nchar with a fixed length of 50 characters so seem to be padded ... characters which SQL server thought was going to take the field over its max ... > tabs and or trailing spaces from somewhere) then i can change it no problem. ... > unless you replace the whole field by selecting and overtyping it. ...
    (microsoft.public.data.ado)
  • Re: Read command and trailing spaces
    ... > I have a script that reads a whole text file as follows: ... > (processing ROW) ... > The ROW is a fixed-length row of 913 characters. ... > contain all the 913 characters, trailing spaces included? ...
    (comp.unix.shell)