View previous topic :: View next topic
|
Author |
Message |
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
Hi,
I am having 15 flat files and 15 control files. I am required to copy the 15 flat files as well as the control files into GDG. I am confused in one part.
Which utility (IEBGENER or MULTIGEN) shall I use to perform my task?
While using IEBGENER, I am required to create 15 steps. Moreover MULTIGEN is not a universally used utility (correct me please if I am wrong in this part).
Further can we use IEFBR14 to copy the same? |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
You have two more options -
1. IDCAMS
2. SORT
What problems do you have about creating 15 steps? |
|
Back to top |
|
|
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
The main problem that i am having is the program is getting unnecessarily long.
Leaving aside this problem, we are not having any other issues. |
|
Back to top |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
swapnadeep.ganguly wrote: |
The main problem that i am having is the program is getting unnecessarily long.
Leaving aside this problem, we are not having any other issues. |
It may become long but definintely not 'Unnecessarily'.
Do let us know which option did you choose. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi swapnadeep,
Let me confirm two things:
1. When you say flat files, you are talking about QSAM files used in Minaframes?
2. 'Control Files' are also in the form of flat files or they differ?
If so, follow Abhijit's suggestion, and yeah, just to ease your effort in JCL creation, create the first step & 'repeat' that step 15 time (use block commnad RR15..RR) & then paste individual DSN, & keep that JCL for future references.
My shop also make use of MULTIGEN, but I used it to copy tape files on DASDs.
Hope this helps.[/i] |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
Question: to these 15+15 files have to be copied to one single version of a GDG? Remember the (+1) counts for the entire job. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Further can we use IEFBR14 to copy the same? |
No, you cannot. IEFBR14 does no input/output processing. It merely starts and stops.
If you need to copy a lot of data, it will take time.
How long do you consider unnecessarily long? How much data is being copied? |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
Rich: When we dont have the requirements we can't help. TS refers to IEBGENER and a lot of steps; this looks like he wants more than one GDG-version and then he should notice the (+1) thing. If one version will do then simply concatenate the inputfiles. So.......we will await the answer from TS (if it comes at all) and then give advise. This IMHO. |
|
Back to top |
|
|
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
Hi,
I am not required to copy the enitre 15 + 15 files into 1 GDG. For each file, I am having a separate GDG base. In all, I am having 30 such bases.
Each file will be coping around 200k+ datas into GDG generations. |
|
Back to top |
|
|
Help-Me-Out
New User
Joined: 09 Dec 2006 Posts: 56 Location: Pune
|
|
|
|
Hi,
Don't you think that, when u required to copy it to the 30 different GDG bases then you need to create all the steps and use the IDCAMS utility to copy into the GDG''s. are you really clear with your requirement |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
If i understand what you want to do, you have a one-time task to define 30 gdg base entries. Once the base entries are created, a copy of all 30 must be done periodically (daily, weekly, each run, etc).
Quote: |
Each file will be coping around 200k+ datas into GDG generations |
If each file has 200k+ data records, it should copy in a few seconds, which is not very much time.
If you don't want to write 30 sets of jcl, you could create one small PROCedure that has a symbolic parameter for the inpujt and output dataset names. You would have 30 EXECute statements, but only one set of actual jcl.
Rather than IDCAMS copies, i'd recommend using your SORT or IEBGENER. |
|
Back to top |
|
|
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
Thank you Dick for your detailed explanation. |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
Remember that in one job each step creating a GDG-version has to have it's own +-number. Step-1 (+1), step-2 (+2) and so on else you will end up with only one GDG-version: +1. |
|
Back to top |
|
|
swapnadeep.ganguly
Active User
Joined: 21 Mar 2007 Posts: 203 Location: India
|
|
|
|
Hi,
If I am having different file names and corressponding GDG names, then I don't think I have to look into this matter.
To make the matter clear, I am writing the 15 QSAM files and 15 Control Files into 30 different GDG bases. |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
ok, that wasn't clear to me yet. |
|
Back to top |
|
|
sahaanup
New User
Joined: 16 Feb 2006 Posts: 9
|
|
|
|
Hi,
Instead of writing 30 steps for each datasets, you can use one Fileaid Step in which you can define those 30 different input file and 30 output files. So everything will be copied in one go.
here just u need to give the DD names appropriately: like for first dataset define the DD name as //DD01 DD .. and it's corresponding output file as //DD01O DD ..
Similarly for 2nd set of datasets define it as //DD02 and //DD02O .. Like-wise..
hope this will help u..
regards,
Anup |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Thank you Dick for your detailed explanation. |
You're welcome
Is your question now resolved? or might we be of other help? |
|
Back to top |
|
|
|