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

Restart logic for Recalling VSAM Datasets.


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

New User


Joined: 29 Mar 2006
Posts: 34

PostPosted: Tue Jan 22, 2008 1:14 pm
Reply with quote

Hi All,

I am working on one modification of REXX prgm.
Currnt PGM recalls(Mass) all VSAM files which are migrated.

Now i want to Chage the program to add the logic:I wanted to recall completion of one migrated file,the next file should wait till the previous file ended with recall.

Can anybody please help me how to catch whether the file migrated or not.

Thanks in advance
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jan 22, 2008 1:20 pm
Reply with quote

Take a look at the ISPF service LMDLIST. It produces some variables, one of them is ZDLMIGR.

Also, check the SYSREASON of LISTDSI (especially reasons 9 & 25).

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

New User


Joined: 29 Mar 2006
Posts: 34

PostPosted: Tue Jan 22, 2008 1:22 pm
Reply with quote

ofer71 wrote:
Take a look at the ISPF service LMDLIST. It produces some variables, one of them is ZDLMIGR.

Also, check the SYSREASON of LISTDSI (especially reasons 9 & 25).

O.


This is my code i want to add the restart logic.


check_migrate:
/* Check if vsam file has been migrated */
/* If it has, issue HRECALL */
do v = 1 to vsamlist.0
If Pos(dbnm,vsamlist.v) > 0 then do
& Pos(tsnm,vsamlist.v) > 0 then do
dsnm = Strip(vsamlist.v)
"HRECALL '" || dsnm || "WAIT"
total_recall = total_recall + 1
say '* Recall ' dsnm
end
end
Return
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jan 22, 2008 1:37 pm
Reply with quote

and.... do you want us to write it for you? I gave you two possible solutions. Please try and let us know if you have any problems.

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

Global Moderator


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

PostPosted: Tue Jan 22, 2008 5:10 pm
Reply with quote

And I very strongly recommend that you DO NOT use the wait parameter.

When you submit RECALL requests to HSM they are analysed by HSM to group them together by resident ML2, so will recall all datasets from a tape with only one tape mount.

You specify WAIT and the recall is processed before the next request is passed to HSM, which may well want the very same tape that has just been dismounted, filed away, and is now required again. I have seen this extremely dumb practice hog three tape units for hours on end, when it could all have been accomplished in minutes. If I was in the storage group at your shop and spotted what you were doing, S222 would occur.
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 Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts CVDA value for RRDS VSAM dataset. CICS 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
Search our Forums:

Back to Top