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

Clear screen on PF4


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

New User


Joined: 02 Jul 2010
Posts: 5
Location: India

PostPosted: Tue Feb 15, 2011 1:19 pm
Reply with quote

Hi all,

On one of the screens I am working, PF4 has a return functionality. On pressing the PF4 key (displayed with label 'RETURN' on the map) the user should go back to the transaction from which this transaction was invoked. If however this transaction was started directly (by entering the transaction on a blank CICS screen) then pressing PF4 should clear the screen and return the control to CICS. The user can always press the clear key to do the same but this is what they want. Any pointers on how this can be done would be of great help.

Right now this is what i am planning to do:
Do a send text with message 'Function XXXX terminated. Clear screen before entering the a new function'. Then do a EXEC CICS RETURN.

TIA! GB
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Feb 15, 2011 4:20 pm
Reply with quote

How about EXEC CICS SEND CONTROL ERASE followed by EXEC CICS RETURN ??

Garry.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Feb 15, 2011 5:18 pm
Reply with quote

if there is no transaction expecting a return, just invoke the clear logic that is already in your program,
after performing the send erase that Garry suggested.
Back to top
View user's profile Send private message
kratos

New User


Joined: 02 Jul 2010
Posts: 5
Location: India

PostPosted: Tue Feb 22, 2011 9:05 am
Reply with quote

Thank you Garry, what you suggested did the job icon_smile.gif.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Feb 22, 2011 1:19 pm
Reply with quote

Thanks for letting us know it worked.

Glad to have been of help.

Garry.
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 reset/clear ALL application profile v... TSO/ISPF 3
No new posts Data for newly added fields not displ... IMS DB/DC 6
No new posts DATA SET LIST UTILITY screen TSO/ISPF 6
No new posts Am Getting a vertical line in ISPF SC... TSO/ISPF 3
No new posts Naming a newly opened screen using REXX CLIST & REXX 2
Search our Forums:

Back to Top