View previous topic :: View next topic
|
Author |
Message |
Ajith Kumar
New User
Joined: 22 Oct 2007 Posts: 3 Location: Bangalore
|
|
|
|
Hi ,
I need a JCL to Copy/Repro VSAM file to Another VSAM file. I need to copy 5 vsam files to 5 different VSAM files.I do not have File-aid installed.Can i have a single JCL which does this at one go. |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
HI,
I think you can do one by one using REPRO,
Code: |
//SYSIN DD *
INDATASET(INPUT.DATA.SET.NAME)-
OUTDATASET(OUTPUT.DATAS.SET.NAME)
/* |
Every time just change the dataset names.
or else u can organise STEP1, STEP2, STEP3 and so on. |
|
Back to top |
|
|
Ajith Kumar
New User
Joined: 22 Oct 2007 Posts: 3 Location: Bangalore
|
|
|
|
Hi,
Thank You for the reply .Could You please give me detail steps that has to be followed for writing the JCL for all the 5 vsam file.I need to submit the job only once and all the files has to be copied |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Why not ask one of Your peers, or search the net a bit....
a google search on "vsam repro idcams" yielded exactly what You are looking for...
try, and if Your jcl gives errors post the result and somebody will try to help You |
|
Back to top |
|
|
vinodmaanju
New User
Joined: 10 May 2005 Posts: 28 Location: Pune
|
|
|
|
You can execute multiple commands in same step.
for ex-
//SYSIN DD *
REPRO -
INDATASET(INPUT.DATA.SET.NAME1)-
OUTDATASET(OUTPUT.DATAS.SET.NAME1)
REPRO -
INDATASET(INPUT.DATA.SET.NAME2)-
OUTDATASET(OUTPUT.DATAS.SET.NAME2)
REPRO -
INDATASET(INPUT.DATA.SET.NAME3)-
OUTDATASET(OUTPUT.DATAS.SET.NAME3)
REPRO -
INDATASET(INPUT.DATA.SET.NAME4)-
OUTDATASET(OUTPUT.DATAS.SET.NAME4)
REPRO -
INDATASET(INPUT.DATA.SET.NAME5)-
OUTDATASET(OUTPUT.DATAS.SET.NAME5)
/* |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
vinodmaanju wrote: |
You can execute multiple commands in same step.
for ex-
//SYSIN DD *
REPRO -
INDATASET(INPUT.DATA.SET.NAME1)-
OUTDATASET(OUTPUT.DATAS.SET.NAME1)
REPRO -
INDATASET(INPUT.DATA.SET.NAME2)-
OUTDATASET(OUTPUT.DATAS.SET.NAME2)
REPRO -
INDATASET(INPUT.DATA.SET.NAME3)-
OUTDATASET(OUTPUT.DATAS.SET.NAME3)
REPRO -
INDATASET(INPUT.DATA.SET.NAME4)-
OUTDATASET(OUTPUT.DATAS.SET.NAME4)
REPRO -
INDATASET(INPUT.DATA.SET.NAME5)-
OUTDATASET(OUTPUT.DATAS.SET.NAME5)
/* |
I think you have to check
for each of the REPRO command is executed.
Correct me if am incorrect. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
The REPRO commands are not conditionally linked, so why the need to check the previous RC ? |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Hi Expat,
I executed the above code i got RC = 12
we have to check the Last Completion Code is succsessfull or not other wise it wouldn't works. |
|
Back to top |
|
|
Ajith Kumar
New User
Joined: 22 Oct 2007 Posts: 3 Location: Bangalore
|
|
|
|
Thanks ,it works |
|
Back to top |
|
|
|