View previous topic :: View next topic
|
Author |
Message |
ParagChouguley
Active User
Joined: 03 Feb 2007 Posts: 175 Location: PUNE(INDIA)
|
|
|
|
Hi All,
Here is my requirement !
I want to take date as an Input from user from CICS screen.
It should look like.
DATE: MM/DD/YY
Now, I want to keep slashes as ASKIP. For that I'm ready to accept the date in 3 diff variables, as DTEMM, DTEDD, DTEYY. Now I can do that, but problem is that I have to keep one byte space at the beginning of each new field and the screen looks like
DATE: MM / DD / YY
Is there any solution so that the spaces in betwwen are eliminated ? |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Yes and no. If you want 3 fields, no. If you give the user an 8 byte field preloaded with "MM/DD/YY" and then edit and validate it on input (did the user use slashes or dashes), yes, sorta..... |
|
Back to top |
|
|
ParagChouguley
Active User
Joined: 03 Feb 2007 Posts: 175 Location: PUNE(INDIA)
|
|
|
|
Thanks William,
Anyways the option of taking input (including slashes) from user and then validatiing it for 3rd and 6th byte as slashes is always open. But as I said I don't want user to touch slashes preprinted on screen. Also it will be easy for user to enter only digits part in the date and he won't have to enter slashes or scroll his cursor to next digit position if there is unprotected slash on the screen, etc. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
A smart program would not care if the slashes were entered or not.
As you pointed out, the field defination byte is required, no way to eliminate it. |
|
Back to top |
|
|
devidas-patil
New User
Joined: 08 Jan 2007 Posts: 54 Location: pune
|
|
|
|
Hi parag
i didnt got your question?
actualy where you want the space before dd, mm, yy or before /.
then do one thing give one byte length extra in date and one byte length in botha slasshes and make it as protected you wil get the space before your date as wel as your field.
i think i will work if i understand your requirment. |
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
As William Thompson stated, forget the slashes and let the user enter
the date, your program then verifies the date and if valid will put the
slashes in the data and redisplay it as mm/dd/yy. |
|
Back to top |
|
|
|