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
 

 

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
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm


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