help with cobol date
From: ritchie (ritchie_s01_at_yahoo.com)
Date: 11/22/03
- Previous message: Judson McClendon: "Re: match program example"
- Next in thread: Frederico Fonseca: "Re: help with cobol date"
- Reply: Frederico Fonseca: "Re: help with cobol date"
- Reply: JerryMouse: "Re: help with cobol date"
- Reply: Jack Sleight: "Re: help with cobol date"
- Reply: Jack Sleight: "Re: help with cobol date"
- Reply: Howard Brazee: "Re: help with cobol date"
- Reply: Ubiquitous: "Re: help with cobol date"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 Nov 2003 05:43:12 -0800
Hi,
I am trying to accept a date and validate it against today's date.
I am getting the user to enter a date - 8 digits ddmmyyyy(required).
My problem is that, I dont want the user to be able to enter a date
greater than todays date.
I tried something like:
01 date-in PIC 9(8).
01 sys-date PIC 9(6).
*user date
ACCEPT date-in
*system date
ACCEPT sys-date FROM DATE
Then check that the date-in is not greater sys-date, but the system
date is comming out as YYMMDD, and therefore
the users date is always greater than the system date.
Is there a simplier way to check that the users date is less than
today's date?
Thanks in advance,
Ritchie
- Previous message: Judson McClendon: "Re: match program example"
- Next in thread: Frederico Fonseca: "Re: help with cobol date"
- Reply: Frederico Fonseca: "Re: help with cobol date"
- Reply: JerryMouse: "Re: help with cobol date"
- Reply: Jack Sleight: "Re: help with cobol date"
- Reply: Jack Sleight: "Re: help with cobol date"
- Reply: Howard Brazee: "Re: help with cobol date"
- Reply: Ubiquitous: "Re: help with cobol date"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|