How to accept date in particular format
- From: "PradeepR" <pradeep.ravle@xxxxxxxxx>
- Date: 31 Oct 2005 04:14:25 -0800
Hello,
I am looking for accepting a date in format mm/dd/yyyy. The initial
screen should show current date in this format, for eg.
10/31/2005.
I am working on ACU COBOL.
The date should be accepted at a particular line and column, say line
4. I have to default it with current date
and allow the user to edit.
I have tried
working-storage section.
01 in-date pic x(10) value " / / ".
procedure division.
move "10/31/2005" to in-date.
accept in-date line 4 prompt.
The problem with above is that neither the date gets defaulted, nor
does it force the user to enter it in proper format. Excuse me if this
is a newbie question. Any help is appreciated.
Thanks for your attention.
PradeepR
.
- Follow-Ups:
- Re: How to accept date in particular format
- From: Frederico Fonseca
- Re: How to accept date in particular format
- Prev by Date: Re: Cobol work?
- Next by Date: Re: How to accept date in particular format
- Previous by thread: OT: Typo's
- Next by thread: Re: How to accept date in particular format
- Index(es):
Relevant Pages
|
|