View previous topic :: View next topic
|
Author |
Message |
Joe_Song Currently Banned New User
Joined: 22 Jan 2008 Posts: 53 Location: china
|
|
|
|
Any sample code to recall some datasets in a batch job? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
If you reference a migrated dataset in the jcl it will be recalled. |
|
Back to top |
|
|
Joe_Song Currently Banned New User
Joined: 22 Jan 2008 Posts: 53 Location: china
|
|
|
|
Yes , i c, but i want to use the recall command to do the specific recall, i forgot how to wright the whole command, any idea? |
|
Back to top |
|
|
Joe_Song Currently Banned New User
Joined: 22 Jan 2008 Posts: 53 Location: china
|
|
|
|
got it, can just use HRECALL 'TEST.DATA1' WAIT command. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
Back to top |
|
|
Peter Poole
New User
Joined: 07 Jan 2009 Posts: 50 Location: Scotland
|
|
|
|
dick scherrer wrote: |
Hello,
If you reference a migrated dataset in the jcl it will be recalled. |
Is the JCL reference enough? I thought you needed an 'OPEN' ACB to trigger the recall?
Cheers. |
|
Back to top |
|
|
cpuhawg
Active User
Joined: 14 Jun 2006 Posts: 331 Location: Jacksonville, FL
|
|
|
|
If you want to use a job step to recall, you can use:
Code: |
//HRECALL EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
HRECALL 'HLQ.QUAL1.TEST' WAIT
HRECALL 'HLQ.QUAL2.TEST' WAIT
//
|
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Is the JCL reference enough? I thought you needed an 'OPEN' ACB to trigger the recall? |
Possibly - my thought was that if the file was referenced, it would be an input file that would be used by the process |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Peter Poole wrote: |
dick scherrer wrote: |
Hello,
If you reference a migrated dataset in the jcl it will be recalled. |
Is the JCL reference enough? I thought you needed an 'OPEN' ACB to trigger the recall?
Cheers. |
IEFBR14 recalls the dataset with no open ACB.
I proved it with a simple test |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
On a similar note, one of the programmers named a dataset in their batch job, forgot to change the dsn to a test dataset name, waited long for the m2 recall, and then got the security violation. . .
Seems like HSM (at least on that system) recalls the dataset before ensuring the proper permissions exist
Double whammy. . .
Maybe its' a feature
d |
|
Back to top |
|
|
Peter Poole
New User
Joined: 07 Jan 2009 Posts: 50 Location: Scotland
|
|
|
|
Thanks expat. (FWIW I would have checked it myself if I had access to a system )
There do seem to be varying degees of knicker twisting built into HSM and RACF around the area of recalls...
I've fallen foul of the 'recall before check permissions' under OS/390 few years back, there's an interesting(?) difference between ISPF 3.4 primary selections "I" and "S" whereby one triggers a recall and one doesn't, recalls of a GDG DSN without relative number or explicit suffix will trigger recall of all generations - that was slightly embarrassing - and a LSTDSI of a PDS to which you don't have access will still trigger the error message because you're doing a read of the index table - that was very embarrassing because we had to do an exercise against all production libraries and managed to generate 120 RACF read violations in about 90 seconds... Whoops!
Cheers. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Quote: |
and managed to generate 120 RACF read violations in about 90 seconds... Whoops! |
And some places I've worked that would mean the guys in black leather coats and trucheons turning up at your desk |
|
Back to top |
|
|
Peter Poole
New User
Joined: 07 Jan 2009 Posts: 50 Location: Scotland
|
|
|
|
Almost.. I just got a call from the Scary Woman in the basement
Cheers |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
Peter Poole wrote: |
Almost.. I just got a call from the Scary Woman in the basement
Cheers |
Like the situation for an old message that was removed by OA22838. Too bad some people have no sense of humor. |
|
Back to top |
|
|
Peter Poole
New User
Joined: 07 Jan 2009 Posts: 50 Location: Scotland
|
|
|
|
If you work in IT and don't have a sense of humour you will go mad eventually...
Cheers |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
if you have a number of datasets to recall in batch, I would not use the WAIT parameter as it can cause the tape to rewind and unload for each HRECALL request unless you need to test the return code of the HRECALL.
I have assumed the backup is on a tape/cart.
Gerry |
|
Back to top |
|
|
|