Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Taking Date as Input from CICS Screen

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Taking Date as Input from CICS Screen
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: 3158
Location: Tucson AZ

PostPosted: Mon Feb 26, 2007 2:06 pm    Post subject:
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    Post subject: Re: Taking Date as Input from CICS Screen
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: 3158
Location: Tucson AZ

PostPosted: Mon Feb 26, 2007 3:33 pm    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us