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

How to recall multiple datasets in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Thu Jul 13, 2006 3:19 pm
Reply with quote

Hi Folks,

Is it possible through JCL to recall multiple datasets which are migrated?

For example my datasets can be having a pattern in their names like ABC.*.DEF.*.TEST
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Thu Jul 13, 2006 4:23 pm
Reply with quote

Hi Parikshit,

we can recall a migreted dataset thru any of the program.. isn't it??

Since the program don't need to any other thing except recall, you can use the DUMMY utility for this.

//STEP001 EXEC PGM=IEFBR14
//SYSOUT DD SYSOUT=*
//DSNIN DD DSN=KBY@V1.ANNR0807.BEFORE.HTML,DISP=SHR

This is do what u need.

~Vamsi
Back to top
View user's profile Send private message
Bharanidharan

New User


Joined: 20 Jun 2005
Posts: 86
Location: Chennai, India

PostPosted: Thu Jul 13, 2006 5:07 pm
Reply with quote

I think the original question was for recalling multiple datasets having a common qualifier. In this way, you may have to code all the datasets, since you can't code wild characters for IEFBR14. You can still do it with IDCAMS LEVEL/HLQ, but a more efficient way is to issue HRECALL thru IKJEFT01.
Code:

//STEP010 EXEC PGM=IKJEFT01             
//*                                     
//SYSTSIN  DD  *                       
  HRECALL 'HLQ1.HLQ2.*'
/*
//SYSPRINT DD  SYSOUT=*                 
//SYSTSPRT DD  SYSOUT=*                 
//SYSUDUMP DD  SYSOUT=D                 
//SYSOUT   DD  SYSOUT=*                 
Back to top
View user's profile Send private message
baidyanath_biswas

New User


Joined: 04 Sep 2006
Posts: 11

PostPosted: Wed Sep 06, 2006 5:32 pm
Reply with quote

But when i m using a gdg's latest version,how to recall it?
like
....
HRECALL 'HLQ1.HLQ2.TEST(-1)' NOWAIT gives error when jcl is submitted..
the error is in writing (-1)..
Back to top
View user's profile Send private message
balajiofcrrcoe

New User


Joined: 07 Jul 2005
Posts: 41
Location: chennai

PostPosted: Wed Sep 06, 2006 6:07 pm
Reply with quote

Hi,

I tried by giving the last qualifier of the gdg file with *,could see all the
versions recalled.

//STEP01 EXEC PGM=IKJEFT01,REGION=512K
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
HRECALL 'TS000AT.CADD.EDIST.STOR.*' WAIT
/*

But my job ran with rc 0f 14 when i am refernce the current version with
(0)
Back to top
View user's profile Send private message
baidyanath_biswas

New User


Joined: 04 Sep 2006
Posts: 11

PostPosted: Wed Sep 06, 2006 6:36 pm
Reply with quote

Correct Balaji..
I ve got the same return code 14 ;sayin that "member name not allowed". Actually i dont need to recall all the versions,since they are production files and also we dont require them..plz let me know if u find out a soln for this.
my intention is to recall a series fo gdg's with almost same HLQs ..but the yesterday's version..
whenevr i give the version name in (),there is a problem..
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top