View previous topic :: View next topic
|
Author |
Message |
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
|
|
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 |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
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 |
|
|
Bharanidharan
New User
Joined: 20 Jun 2005 Posts: 86 Location: Chennai, India
|
|
|
|
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 |
|
|
baidyanath_biswas
New User
Joined: 04 Sep 2006 Posts: 11
|
|
|
|
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 |
|
|
balajiofcrrcoe
New User
Joined: 07 Jul 2005 Posts: 41 Location: chennai
|
|
|
|
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 |
|
|
baidyanath_biswas
New User
Joined: 04 Sep 2006 Posts: 11
|
|
|
|
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 |
|
|
|