IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Taking Date as Input from CICS Screen


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ParagChouguley

Active User


Joined: 03 Feb 2007
Posts: 175
Location: PUNE(INDIA)

PostPosted: Mon Feb 26, 2007 12:09 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Feb 26, 2007 2:06 pm
Reply with quote

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
View user's profile Send private message
ParagChouguley

Active User


Joined: 03 Feb 2007
Posts: 175
Location: PUNE(INDIA)

PostPosted: Mon Feb 26, 2007 2:38 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Feb 26, 2007 3:33 pm
Reply with quote

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
View user's profile Send private message
devidas-patil

New User


Joined: 08 Jan 2007
Posts: 54
Location: pune

PostPosted: Mon Feb 26, 2007 5:23 pm
Reply with quote

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
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Mon Feb 26, 2007 8:43 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Using API Gateway from CICS program CICS 0
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
Search our Forums:

Back to Top