Re: Inspect...
- From: "Judson McClendon" <judmc@xxxxxxxxxxxxx>
- Date: Mon, 17 Oct 2005 09:16:18 -0500
"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."
.
- References:
- Inspect...
- From: EBille
- Inspect...
- Prev by Date: Re: Inspect...
- Next by Date: How-to know a cob has been compiled
- Previous by thread: Re: Inspect...
- Next by thread: Re: Inspect...
- Index(es):
Relevant Pages
|