View previous topic :: View next topic
|
Author |
Message |
amit225394
New User
Joined: 07 Jan 2011 Posts: 3 Location: America
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
amit225394
New User
Joined: 07 Jan 2011 Posts: 3 Location: America
|
|
|
|
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 |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
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 |
|
|
|