View previous topic :: View next topic
|
Author |
Message |
ayansau
New User
Joined: 22 Jun 2007 Posts: 42 Location: Chennai
|
|
|
|
Suppose we have two GDG versions:
XXXXXXX.GB.XXX.FIELDET1.G0001V00
XXXXXXX.GB.XXX.FIELDET1.G0002V00
XXXXXXX.GB.XXX.FIELDET1.G0002V01
If we use
XXXXXXX.GB.XXX.FIELDET1(0)
Then it will return
XXXXXXX.GB.XXX.FIELDET1.G0002V01
If we use
XXXXXXX.GB.XXX.FIELDET1(-1)
Then it will return
XXXXXXX.GB.XXX.FIELDET1.G0001V00
Now my question is we can create the generation as (+1) in JCL,
but how we can create its versions in JCL? |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Ayansau,
Quote: |
XXXXXXX.GB.XXX.FIELDET1.G0002V00
XXXXXXX.GB.XXX.FIELDET1.G0002V01 |
For any generation, only 'one' version exists at any point of time.
Quote: |
but how we can create its versions in JCL? |
Follow the link for old topic -
ibmmainframes.com/about209.html |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
From the fine manual, if you had looked .....
Quote: |
In an MVS system-created GDG name, the version number is always be 0. (MVS does not increase the version number by 1 for subsequent versions.) To obtain a version number other than 0, you must explicitly specify the version number (for example, A.B.C.G0004V03) when the data set is allocated. You must also explicitly specify the version number to retrieve a GDG with a version number other than 0. |
|
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
hi,
As of my knowledge, we can't create a GDG version like
XXXXXXX.GB.XXX.FIELDET1.G0002V01 using JCL
It can be only created by renaming.
Usually, the mainframe creates these versions for itz backup purposes only.
~Vamsi |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Vamsi,
Quote: |
we can't create a GDG version like
XXXXXXX.GB.XXX.FIELDET1.G0002V01 using JCL |
Wrong.
Quote: |
It can be only created by renaming. |
Its one of the method.
Quote: |
the mainframe creates these versions for itz backup purposes only. |
Wrong again. Is MF a human being or does it read your mind to backup some files and not others.
Read the link provided (old post) one more time. |
|
Back to top |
|
|
ousep143
New User
Joined: 06 Oct 2007 Posts: 32 Location: India
|
|
|
|
Hi,
Is it possible to update the generation dataset?
Regards
|
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
ousep143,
Quote: |
Is it possible to update the generation dataset? |
GDG generation is nothing but a flat file. So..... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Is it possible to update the generation dataset? |
Typically, new generations are created rather than updating existing generations.
Is there some business reason to "update" an existing generation rather than creating a +1 with the updates?
If you explain your requirement, we may be able to offer suggestions. |
|
Back to top |
|
|
ousep143
New User
Joined: 06 Oct 2007 Posts: 32 Location: India
|
|
|
|
Quote: |
If you explain your requirement, we may be able to offer suggestions. |
Hi dick,
I want to know,if u update the generation dataset,shall it affect the version number?
Sorry for delay
Regards
|
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
O,
Quote: |
if u update the generation dataset,shall it affect the version number? |
No. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
I want to know,if u update the generation dataset,shall it affect the version number? |
There is often some confusion in the terminology used.
Do you really mean the version number or the generation number ? |
|
Back to top |
|
|
ousep143
New User
Joined: 06 Oct 2007 Posts: 32 Location: India
|
|
|
|
Quote: |
Do you really mean the version number or the generation number ? |
hi
Version Number
Regards
|
|
Back to top |
|
|
the_gautam
Active User
Joined: 05 Jun 2005 Posts: 165 Location: Bangalore
|
|
|
|
in order to create the generation with the version number different from existing one, you need to give the complete DD NAME "XXXXXXX.GB.XXX.FIELDET1.G0002V01" in the dsn. and not (+1). |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I want to know,if u update the generation dataset,shall it affect the version number |
No, but I am still not sure i understand just what you need to accomplish.
If you intend to "update" some existing physical file, you will over-write it (destroying the orignal content). This is almost always undesirable. . .
What business requirement is there that makes updating the existing generation (or version) of the data acceptable?
As has already been mentioned, if you use version, use of the data becomes more tedious (which probably means more error prone).
If you explain what is actually needed, someone may have suggestions. It is rather unlikely that your requirement is "brand new" |
|
Back to top |
|
|
ousep143
New User
Joined: 06 Oct 2007 Posts: 32 Location: India
|
|
|
|
Hi dick,
I want to just know,it will affect the version number or not. Anyway thanks for information.
Regards
|
|
Back to top |
|
|
|