View previous topic :: View next topic
|
Author |
Message |
pnkumar Warnings : 2 New User
Joined: 27 Oct 2005 Posts: 24
|
|
|
|
Hi,
When I ran the program with the output data set as GDG file, got the null values, but the same case is not happening with the SE file which contains spaces instead of nulls.
please clarify me why it is happening like this?
Thanks
Kumar |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
There should be no difference, a GDS is a sequential file, just happens to be associated with a GDG base.
Any difference in the file attributes ? FB VB ?
What is the difference between null values and spaces. Are you browsing bot files or browse one and edit/view another ? |
|
Back to top |
|
|
pnkumar Warnings : 2 New User
Joined: 27 Oct 2005 Posts: 24
|
|
|
|
Hi Expat,
File attributes are same and the file is FB. Both files are opened in Browse mode only. Nulls represent with X'00' where as space with X'40'. We can see this difference in a file data by using the HEX ON.
Thanks
Kumar |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Should not matter to the program if it is a sequential dataset or a GDG dataset, as long as file attributes are same.
If you are confident that the only change in JCL is the dataset name, then put a display in the program to see what exactly it is writing and then run the program for both the cases to see if there is any difference (which should not be, why it would be ) |
|
Back to top |
|
|
Thangaprabhu
New User
Joined: 15 Jul 2009 Posts: 16 Location: INDIA
|
|
|
|
Hi,
Check the Definition of your GDG base and Sequential file both should be the same. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Thangaprabhu wrote: |
Check the Definition of your GDG base and Sequential file both should be the same. |
To start with, "GDG base" does not come with a definition but even if that's there, it should not be a reason for what is asked.
As Priyesh has said, there should not be any difference.Suggest, you show us the JCL you execute, SYSOUT from both the jobs and contents of the file & GDG in HEX ON mode. |
|
Back to top |
|
|
kalhor
New User
Joined: 20 May 2007 Posts: 31 Location: iran
|
|
|
|
Hi,
When you are using generation data group (GDG), you must defined a base for the first time for it, in your definition you are determine that the maximum size, maximum number of the data sets which can be saved and the other attributes. after that definition completed you can use it in your batch and the data set will be created as you have defined. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
kalhor wrote: |
Hi,
in your definition you are determine that the maximum size, maximum number of the data sets which can be saved and the other attributes. |
Please clarify exactly what other attributes that can be specified, giving an example of the code used. |
|
Back to top |
|
|
Thangaprabhu
New User
Joined: 15 Jul 2009 Posts: 16 Location: INDIA
|
|
|
|
Nope...For the first while creating GDG base we have to specify the no of versions a GDG can hold. After creating GDG base the versions of it can be different of definitions. Check the attributes of the current version of GDG base with the sequential file. I think there will be a mismatch of it. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Thangaprabhu wrote: |
Nope...For the first while creating GDG base we have to specify the no of versions a GDG can hold. After creating GDG base the versions of it can be different of definitions. Check the attributes of the current version of GDG base with the sequential file. I think there will be a mismatch of it. |
/RANT ON
The use of terminology is totally incorrect. Using the correct terminolgy is IMPORTANT.
Versions and generations are two valid terms when discussing a GDS, both with totally different meanings. The number of versions never deviates from 1. There can only ever be ONE version of a GDS. However, there can me multiple generations
/RANT OFF
Quote: |
Check the attributes of the current version of GDG base with the sequential file. I think there will be a mismatch of it. |
Please explain exactly what you think you mean, and also give examples of the attributes to check. |
|
Back to top |
|
|
Thangaprabhu
New User
Joined: 15 Jul 2009 Posts: 16 Location: INDIA
|
|
|
|
Hi Expat,
For eg:- I have created a GDG base SAMPLE.GDG with a limit of 250. Then i can create 250 versions of SAMPLE.GDG it. And all the 250 versions need not be of same definiitions.
//INFILE DD DSN=SAMPLE.GDG(+1),
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(200,50),RLSE),
// DCB=(LRECL=36,RECFM=FB)
After execution of this step a version of SAMPLE.GDG will get created
//INFILE DD DSN=SAMPLE.GDG(+1),
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(100,10),RLSE),
// DCB=(LRECL=1000,RECFM=FB)
After execution of this step in a different job an another version of SAMPLE.GDG will get created
so all the versions of can be of different definitions.
Please correct me if i am wrong. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
VERSIONS AND GENERATIONS ARE DIFFERENT THINGS! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Thangaprabhu wrote: |
Hi Expat,
For eg:- I have created a GDG base SAMPLE.GDG with a limit of 250. Then i can create 250 versions of SAMPLE.GDG it. And all the 250 versions need not be of same definiitions.
Please correct me if i am wrong. |
YOU ARE WRONG
Please re-read my post, especially the part between the RANT ON and RANT OFF
Then take a look at the c**p you have replied with. I have stated - from proven experiment that there is NEVER more than one version of a GDS in existence.
When you use the wrong terminology it only confuses matters for others trying to help, and also makes YOU look unprofessional.
Please learn and then use the correct terminology. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Quote: |
Then i can create 250 versions of SAMPLE.GDG |
You can (also) catalog a generation using either absolute or relative numbers. When a generation is cataloged, a generation and version number is placed as a low-level entry in the GDG. To catalog a version number other than V00, you must use an absolute generation and version number. Full stop. |
|
Back to top |
|
|
|