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

Refreshing the Map for every 30seconds to view updated data


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

New User


Joined: 15 Sep 2005
Posts: 3
Location: Chennai

PostPosted: Thu Sep 15, 2005 6:52 pm
Reply with quote

Hi All,

How to refresh the screen for every 30seconds/one minute to get or show updated data on the screen without pressing ENTER key?
If user enters a refreshing time we have to use this refreshing time and has to refresh the screen for every time interval the user entered. Here also we shoud not press ENTER key except when entering refresh time.

Thanks,
Reddy
icon_razz.gif
Back to top
View user's profile Send private message
mallikiran

New User


Joined: 07 Sep 2005
Posts: 49

PostPosted: Fri Sep 16, 2005 9:05 pm
Reply with quote

You may use

EXEC CICS START
TRANSID (WS-TRANSID)
AFTER
SECONDS(30)
END-EXEC.

EXEC CICS
RETURN
END-EXEC.

This would issue a command to start the transaction after 30 seconds and return control to CICS.
Back to top
View user's profile Send private message
Pulla Reddy Arveti

New User


Joined: 15 Sep 2005
Posts: 3
Location: Chennai

PostPosted: Mon Sep 19, 2005 8:31 pm
Reply with quote

Thanks Mallikiran.
I tried with the option but it's not working.

I've a doubt.
IF EIBCALEN = 0 THEN
PERFORM DATE-PARA
PERFORM SEND-MAP
PERFORM START-TRANSACTION
ELSE
PERFORM RECEIVE MAP.

RECEIVE-MAP.
IF EIBAID = DFHENTER
PERFORM SEND-MAP
PERFORM START-TRANSACTION
START-TRANSACTION.
EXEC CICS START TRANSID()
INTERVAL(000030)
TERMID()
END-EXEC.

Will this code works?
Back to top
View user's profile Send private message
p.m.s.Reddy
Warnings : 1

New User


Joined: 20 Sep 2005
Posts: 11
Location: chennai

PostPosted: Tue Sep 20, 2005 11:30 am
Reply with quote

Hi Pulla Reddy,

I tried with ur code but its not working.One thing i am not getting why r u using that eibcalen.
Back to top
View user's profile Send private message
Pulla Reddy Arveti

New User


Joined: 15 Sep 2005
Posts: 3
Location: Chennai

PostPosted: Tue Sep 20, 2005 3:49 pm
Reply with quote

Hi M.S.Reddy,
I'm using that eibcalen for pseudo conversation.If user enters his refreshing time, we have to use this refresing time and has to refresh the map.So we have to check eibcalen = 0 or not.

Thanks
Back to top
View user's profile Send private message
mallikiran

New User


Joined: 07 Sep 2005
Posts: 49

PostPosted: Tue Sep 20, 2005 6:19 pm
Reply with quote

This is how I would code it:

PROCEDURE DIVISION.
EXEC CICS RECEIVE MAP(MAPNAME)
INTO (WS-MAPNAME)
RESP(WS-RESP)
END-EXEC.

Insert routine to read database
Insert routine to build map
Insert routine to send map

EXEC CICS START
TRANSID (WS-TRANSID)
AFTER
SECONDS(WS-MAP-INTERVALI)
END-EXEC.

EXEC CICS
RETURN
END-EXEC.

Ensure that MDT is on for all fields so that even if user does not change the previous value, that value is always returned when RECEIVE MAP is done.
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 Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts SET PATH in View DDL DB2 2
Search our Forums:

Back to Top