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

Display a panel when dataset is being recalled


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Denser

New User


Joined: 22 Mar 2005
Posts: 4

PostPosted: Wed Sep 17, 2008 9:52 am
Reply with quote

I have searched the forum and tried all suggested options but nothing works

I want to display a temp ispf panel using CONTROL DISPLAY LOCK when a migrated dataset is being recalled in the background. but no matter what i do i always get the messages saying the dataset is being recalled. Is there a way to supress this msg and show a temp panel while the dataset is being recalled?

Here's the code i am working with :

Code:
 MSG1 = '04'X "RECALLING DATASET"||'03'X OUTDS '04'X ,         
        "STARTED:" '02'X STIME                                 
 MSG2 = '02'X TIME()                                           
 ADDRESS ISPEXEC "CONTROL DISPLAY LOCK NOMSG"                   
 ADDRESS ISPEXEC "ADDPOP COLUMN(4) ROW(10)"                     
 ADDRESS ISPEXEC "DISPLAY PANEL(PROGXXS)"                       
 ADDRESS TSO "PROFILE NOWTPMSG NOINTERCOM"                     
 DROP VAR.                                                     
 X = OUTTRAP('VAR.')                                           
 VAR1 = LISTDSI(OUTDS RECALL)                                   
 Y = OUTTRAP('OFF')                                             
 IF SYSREASON = 0 THEN DO                                       
   X = MSG('OFF')                                               
   SAY 'THIS IS A TEST'                                         
 END                                                           
 ADDRESS ISPEXEC "REMPOP"                                       
 RETURN                                                         
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Sep 17, 2008 11:11 am
Reply with quote

Your logic seems incorrect. You shoud first display the panel on a standard manner. Then, when the user presses the ENTER key, do the recall, CONTROL DISPLAY LOCK, and another DISPLAY.

O.
Back to top
View user's profile Send private message
Denser

New User


Joined: 22 Mar 2005
Posts: 4

PostPosted: Wed Sep 17, 2008 11:43 am
Reply with quote

Ok I changed the logic around a bit as per your suggestion:

Code:

MSG1 = '04'X "NEED TO RECALL"||'03'X OUTDS '04'X ,     
       "STARTED:" '02'X STIME                           
MSG2 = '02'X TIME()                                     
ADDRESS ISPEXEC "CONTROL ERRORS RETURN"                 
ADDRESS ISPEXEC "ADDPOP COLUMN(4) ROW(10)"             
ADDRESS ISPEXEC "DISPLAY PANEL(PROGXXS)"               
ADDRESS TSO "PROFILE NOWTPMSG NOINTERCOM"               
MSG1 = '04'X "RECALLING DATASET"||'03'X OUTDS '04'X ,   
       "STARTED:" '02'X STIME                           
MSG2 = '02'X TIME()                                     
DROP VAR.                                               
X = OUTTRAP('VAR.')                                     
X = MSG('OFF')                                         
VAR1 = LISTDSI(OUTDS RECALL)                           
ADDRESS ISPEXEC "CONTROL DISPLAY LOCK"                 
ADDRESS ISPEXEC "ADDPOP COLUMN(4) ROW(10)"             
ADDRESS ISPEXEC "DISPLAY PANEL(PROGXXS)"               
Y = OUTTRAP('OFF')                                     
ADDRESS ISPEXEC "REMPOP"                               
RETURN                                                 



But am still getting this....


Code:
 ARC0612I VOLUME MOUNT ISSUED FOR RECALL OR RECOVER OF                         
 ARC0612I (CONT.) P672704.BP003BA0.FL05796.CARDS.OLD1                           
 ***                                                                           
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Sep 17, 2008 12:01 pm
Reply with quote

Unfortrunately HSM is a law unto itself and will issue messages (via TPUT) I think which go where HSM wants them to go.
Back to top
View user's profile Send private message
Denser

New User


Joined: 22 Mar 2005
Posts: 4

PostPosted: Wed Sep 17, 2008 1:16 pm
Reply with quote

I guess there is no way that msg can be avoided.

Thanks for the response guys
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Sep 17, 2008 9:20 pm
Reply with quote

Hello,

Quote:
I guess there is no way that msg can be avoided.
While there may not be a way to show a message you prefer, you can get away from the "recall" message by pressing Attn. This will at least free your terminal so you can work in cics or roscoe or somthing other than the tso that is recalling the dataset.
Back to top
View user's profile Send private message
Denser

New User


Joined: 22 Mar 2005
Posts: 4

PostPosted: Thu Sep 18, 2008 5:13 am
Reply with quote

I am aware of that but I am building some new apps using panels and this message is quite ugly and needed it replaced by In Progress panel
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Sep 18, 2008 5:32 am
Reply with quote

You could use LISTDSI with NORECALL and check for an error message that indicates it is migrated. If migrated, issue HRECALL command.

Code:

 ADDRESS TSO "HRECALL " outds


For status message, have loop with:
Code:

ADDRESS ISPEXEC "CONTROL DISPLAY LOCK NOMSG"                   
ADDRESS ISPEXEC "ADDPOP COLUMN(4) ROW(10)"                     
ADDRESS ISPEXEC "DISPLAY PANEL(PROGXXS)"

VAR1 = LISTDSI(OUTDS NORECALL) 
/* check for migrated */
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top