Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to recall multiple datasets in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to recall multiple datasets in JCL
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    Post subject: Re: How to recall multiple datasets in JCL
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    Post subject: Re: How to recall multiple datasets in JCL
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    Post subject: Re: How to recall multiple datasets in JCL
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    Post subject: Re: How to recall multiple datasets in JCL
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    Post subject: Re: How to recall multiple datasets in JCL
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    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
This topic is locked: you cannot edit posts or make replies. Unavailable RECON datasets while exec... abdulrafi JCL & VSAM 10 Fri Apr 06, 2018 12:45 pm
No new posts Creation of Datasets dynamically on t... Raghu M N DFSORT/ICETOOL 8 Fri Mar 16, 2018 12:56 am
No new posts write multiple lines in PS file in cobol Balu5491 COBOL Programming 7 Wed Mar 07, 2018 10:27 am
No new posts Using multiple routines at exit 6 in ... Randy Horowitz All Other Mainframe Topics 2 Sat Feb 10, 2018 11:57 pm
No new posts Enterprise PL/I - dynamic allocation ... prino PL/I & Assembler 0 Mon Jan 29, 2018 10:17 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us