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

HRECALL utility


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amit225394

New User


Joined: 07 Jan 2011
Posts: 3
Location: America

PostPosted: Mon Jan 10, 2011 7:47 pm
Reply with quote

Hi

Thanks for the updates. Now I am able to run sas code with mainframe.

In mainframe we have HRECALL utilily which is used to recall the migrated dataset. Can anyone send me that code. My assignment is to recall the migrated dataset by using HRECALL and that I have to do by using SAS with Mainframe. Please ping me the code if anyone have with sas. If not in sas then send me code use only mainframe.

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

Global Moderator


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

PostPosted: Mon Jan 10, 2011 7:53 pm
Reply with quote

The code used to recall a migrated dataset is IBM property and the property of IBM alone and therefor not available for general release.

As you have discovered, hopefully for yourself, that the HRECALL command will in fact recall a migrated dataset, so all you need to do is to execute the HRECALL command for each dataset that you want recalled.

So as a clue, you will need to determine the required datasets, check to see if they are migrated or not and then to recall the datasets required.

However, IMHO SAS is NOT the ideal tool to do this.

Oh, by the way, if you ask for code you will more than likely be asked for money before any code is surrendered. This is a HELP forum, and not a DO IT FOR ME forum icon_evil.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10874
Location: italy

PostPosted: Mon Jan 10, 2011 7:56 pm
Reply with quote

what kind of silly requirement is that ?
HRECALL is not an utility, is a <command> which instructs HSM to recall a migrated dataset!

You/all around You should review Your understanding of things
Back to top
View user's profile Send private message
amit225394

New User


Joined: 07 Jan 2011
Posts: 3
Location: America

PostPosted: Mon Jan 10, 2011 9:22 pm
Reply with quote

Hi

Thanks for the updates. As per expat reply "you will need to determine the required datasets, check to see if they are migrated or not and then to recall the datasets required". Can you please suggest me how I can see what dataset are migrated and then how I can recall through any program not manually. Manually we can do but i want to do this through any program.

Regards
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Jan 10, 2011 9:27 pm
Reply with quote

amit225394 wrote:
Hi

Thanks for the updates. As per expat reply "you will need to determine the required datasets, check to see if they are migrated or not and then to recall the datasets required". Can you please suggest me how I can see what dataset are migrated and then how I can recall through any program not manually. Manually we can do but i want to do this through any program.

Regards


Reference it your JCL and it will be recalled.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Mon Jan 10, 2011 10:13 pm
Reply with quote

amit225394 wrote:
My assignment is to recall the migrated dataset by using HRECALL and that I have to do by using SAS with Mainframe.

Who came up with the requirement that SAS be used? I don't think it an appropriate vehicle; Rexx would be much better, with any compiled language from which ISPEXEC/ISPLINK a distant second.

In any case, be aware that it is most unlikely that anyone will give away their professional work project, i.e., code. If you genuinely want something for which you can file the serial numbers off of and take credit, be prepared pay USD 90/hour and up.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Jan 10, 2011 10:40 pm
Reply with quote

Have you discussed this "requirement" with your site storage management personnel? They usually spend a lot of time and energy designing appropriate migration policies for HSM and having some applicaiton programmer (or programming group) completely negate their policies can lead to negative consequences.
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: Mon Jan 10, 2011 11:36 pm
Reply with quote

Hello,

Well-managed systems do not want developers performing wholesale recalls of migrated datasets. Many do not even allow developers to issue HRECALL.

If there is some business reason to do this automated recall, your management and the storage admins should be involved.

If you are doing this just for your (and possibly some others') convenience - be aware that this may generate an unfavorable response. . .
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jan 12, 2011 8:51 pm
Reply with quote

Quote:
If not in sas then send(??) me code use only mainframe
May be something like this:
Code:
//RECALL EXEC PGM=IKJEFT01,DYNAMNBR=20,TIME=(9)           
//SYSTSPRT DD SYSOUT=*                                     
//SYSPRINT DD SYSOUT=*                                     
//SYSUDUMP DD SYSOUT=*                                     
//SYSTSIN DD *                                             
 HRECALL 'Dataset to recall' NOWAIT
/*       
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Fri Jan 14, 2011 3:12 pm
Reply with quote

The below SAS program calls REXX and executes the TSO HRECALL command.

Code:
OPTIONS REXXMAC;                                                       
DATA _NULL_;                                                           
FILE 'WELLS.SAMPLE.PDS(RECALREX)';   /* SOME RANDOM WORK PDS     */     
DS = "'WELLS.BACKUP.PDS'";           /* DESIRED DS FOR RECALLING */   
PUT '/*REXX*/';                                                         
PUT 'ADDRESS TSO "HRECALL " "' DS'" "WAIT"';                           
PUT 'EXIT';                                                             
RUN;                                                                   
FILENAME SASREXX 'WELLS.SAMPLE.PDS' DISP=SHR;                         
RECALREX;
FILENAME SASREXX;



I cannot imagine on what scenario recalling from SAS is needed, but the above code works.

U can switch
Code:
PUT 'ADDRESS TSO "HRECALL " "' DS'" "WAIT"';

to
Code:
PUT 'ADDRESS TSO "HRECALL " "' DS'" "NOWAIT"';

if you dont want to wait until dataset recalls.

Hope it helps.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts REASON 00D70014 in load utility DB2 6
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts Any JCL or VSAM Utility to get number... JCL & VSAM 1
No new posts DATA SET LIST UTILITY screen TSO/ISPF 6
No new posts Which SORT utility can improve the Pe... DFSORT/ICETOOL 16
Search our Forums:

Back to Top