View previous topic :: View next topic
|
Author |
Message |
samimaktar
New User
Joined: 03 Aug 2009 Posts: 25 Location: Singapore
|
|
|
|
Hi All
Is it possible to merge all the generations of 3 GDG base if one of the base do not have any generation
eg
1. abc.xyz1 (it has two generation)
2. abc.xyz2 (it has one generation)
3. abc.xyz3 (it do not have generation)
While I was trying with SORT it was giving error message 'NO DATASETS ARE ASSOCIATED WITH BASE' abc.xyz3
Regards,
Samim |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Did the job fail, or was the message informational.
Which sort product are you using. |
|
Back to top |
|
|
samimaktar
New User
Joined: 03 Aug 2009 Posts: 25 Location: Singapore
|
|
|
|
Hi Expat
Job is failing with JCL error(SORT SORTIN +010 - DATA SET NOT FOUND), Product is SORT only(PGM=SORT). |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
You need to create an empty +1 generation to each gdg to ensure there is at least one generation.
A single IEFBR14 step will work before your 'merge' step.
As far as I know, there is no other option (I am sure you will ask anyway). |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
I second you Dave.. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
I agree with Dave. For SORT products, when GDG does not have any member attached to it - it's similar to the situation wehre you have concatenated DSNs and one of them is not present, which will apprantely throw 'DATA SET NOT FOUND' message.
Just for experiment, I try:
Code: |
//STEP001 EXEC PGM=SORT
//SORTIN DD DSN=HLQ.FIRST.GDG,DISP=SHR
// DD DSN=HLQ.SECOND.GDG,DISP=MOD
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
//SYSOUT DD SYSOUT=* |
but this also does not work. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Product is NOT SORT - it is likely to be either DFSORT or SYNCSORT although other sort products are available. PGM=SORT is an alias for the real sort executable. Look at the sort messages - they will tell you. |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
Vegas Line : 3 to 1 we will not hear from this TS. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Quote: |
Product is SORT only(PGM=SORT). |
Quote: |
Product is NOT SORT - it is likely to be either DFSORT or SYNCSORT although other sort products are available. PGM=SORT is an alias for the real sort executable. Look at the sort messages - they will tell you. |
Ditto.
*POSE*
Sometimes I really wonder -- what is that very first word The SORT representatives have after seeing such comments from an OP, specially when we have kernal writers also around... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Anuj Dhawan wrote: |
For SORT products, when GDG does not have any member attached to it |
Anuj, you must be working too hard using terminology like this |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
LOL, not really expat - my syntax-check tool gave me those words:
Code: |
//STEP001 EXEC PGM=SORT
//SORTIN DD DSN=HLQ.FIRST.GDG,DISP=SHR
//SORTIN DD DSN=HLQ.FIRST.GDG,DISP=SHR
CAY6099W GENERATION DATA GROUP "HLQ.FIRST.GDG" SPECIFIED WITHOUT A
GENERATION NUMBER - ALL MEMBERS SELECTED |
|
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
any member attached to it |
maybe expat was referring to another of the poorly chosen technical terms? |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
Quote: |
Is it possible to merge all the generations of 3 GDG base if one of the base do not have any generation |
- the answer is NO
Quote: |
You need to create an empty +1 generation to each gdg to ensure there is at least one generation.
|
as long as you don't roll off a needed generation
Quote: |
Job is failing with JCL error(SORT SORTIN +010 - DATA SET NOT FOUND), Product is SORT only(PGM=SORT). |
How do you get +010 when you are only concatenating 3 GDG base.
Also I'm sure you mean concatenating and NOT merging.
Gerry |
|
Back to top |
|
|
samimaktar
New User
Joined: 03 Aug 2009 Posts: 25 Location: Singapore
|
|
|
|
Hi All
Thanks for your discussion on the topic.
@gcicchet:
1. Is there any other way to merge all the generations of 3 GDG base if one of the base do not have any generation without using SORT ?
2. Yes,I was trying to do it using DD Concatenation.
Regards,
Samim |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Samin,
Quote: |
1. Is there any other way to merge all the generations of 3 GDG base if one of the base do not have any generation without using SORT ?
|
The answer is still no regardless of which program/utility you use.
In JES2, allocation of datasets required by a step are done prior to step executing.
Gerry |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Why do you have an empty GDG base in the first place?
To by-pass the problem you can list the GDG bases using IDCAMS, process the output and set a return code based on what you find. You can then conditionally execute a) a step with all 3 GDG bases concatenated or b) another step with only those bases with associated datasets. I'll leave you to work out how many steps you would require - it is too early in the morning for me. |
|
Back to top |
|
|
|