Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Recall dataset in a job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Joe_Song
Currently Banned

New User


Joined: 22 Jan 2008
Posts: 53
Location: china

PostPosted: Thu Feb 05, 2009 7:39 am    Post subject: Recall dataset in a job
Reply with quote

Any sample code to recall some datasets in a batch job?
Back to top
View user's profile Send private message

dick scherrer

Site Director


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

PostPosted: Thu Feb 05, 2009 7:43 am    Post subject:
Reply with quote

Hello,

If you reference a migrated dataset in the jcl it will be recalled.
Back to top
View user's profile Send private message
Joe_Song
Currently Banned

New User


Joined: 22 Jan 2008
Posts: 53
Location: china

PostPosted: Thu Feb 05, 2009 7:46 am    Post subject:
Reply with quote

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
View user's profile Send private message
Joe_Song
Currently Banned

New User


Joined: 22 Jan 2008
Posts: 53
Location: china

PostPosted: Thu Feb 05, 2009 8:14 am    Post subject:
Reply with quote

got it, can just use HRECALL 'TEST.DATA1' WAIT command.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Feb 05, 2009 8:16 am    Post subject:
Reply with quote

Hello,

If you have security permissions to do so, you can issue an HRECALL in batch.

Look here:
http://ibmmainframes.com/viewtopic.php?t=23202
Back to top
View user's profile Send private message
Peter Poole

New User


Joined: 07 Jan 2009
Posts: 50
Location: Scotland

PostPosted: Fri Feb 06, 2009 11:08 pm    Post subject:
Reply with quote

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
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Fri Feb 06, 2009 11:20 pm    Post subject: Reply to: Recall dataset in a job
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Sat Feb 07, 2009 1:15 am    Post subject:
Reply with quote

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 icon_wink.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Feb 07, 2009 4:44 am    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Sat Feb 07, 2009 5:27 am    Post subject: Reply to: Recall dataset in a job
Reply with quote

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 icon_confused.gif

Double whammy. . .

Maybe its' a feature icon_cool.gif

d
Back to top
View user's profile Send private message
Peter Poole

New User


Joined: 07 Jan 2009
Posts: 50
Location: Scotland

PostPosted: Sat Feb 07, 2009 4:22 pm    Post subject:
Reply with quote

Thanks expat. (FWIW I would have checked it myself if I had access to a system icon_razz.gif)

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Feb 07, 2009 5:59 pm    Post subject:
Reply with quote

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 icon_eek.gif
Back to top
View user's profile Send private message
Peter Poole

New User


Joined: 07 Jan 2009
Posts: 50
Location: Scotland

PostPosted: Sat Feb 07, 2009 11:19 pm    Post subject:
Reply with quote

Almost.. I just got a call from the Scary Woman in the basement icon_smile.gif

Cheers
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Sun Feb 08, 2009 3:05 am    Post subject:
Reply with quote

Peter Poole wrote:
Almost.. I just got a call from the Scary Woman in the basement icon_smile.gif

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
View user's profile Send private message
Peter Poole

New User


Joined: 07 Jan 2009
Posts: 50
Location: Scotland

PostPosted: Sun Feb 08, 2009 5:38 am    Post subject:
Reply with quote

If you work in IT and don't have a sense of humour you will go mad eventually...

Cheers
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Mon Feb 09, 2009 6:17 am    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts FTOPEN TEMP is failing due to dataset... mbenaud TSO/ISPF 7 Thu Jul 28, 2016 4:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us