IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Differences between Sequential File (SE) and GDG file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pnkumar
Warnings : 2

New User


Joined: 27 Oct 2005
Posts: 24

PostPosted: Fri Jul 17, 2009 12:41 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jul 17, 2009 12:54 pm
Reply with quote

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
View user's profile Send private message
pnkumar
Warnings : 2

New User


Joined: 27 Oct 2005
Posts: 24

PostPosted: Fri Jul 17, 2009 2:54 pm
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Fri Jul 17, 2009 11:50 pm
Reply with quote

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 icon_rolleyes.gif )
Back to top
View user's profile Send private message
Thangaprabhu

New User


Joined: 15 Jul 2009
Posts: 16
Location: INDIA

PostPosted: Mon Jul 20, 2009 4:25 pm
Reply with quote

Hi,

Check the Definition of your GDG base and Sequential file both should be the same.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Jul 20, 2009 5:21 pm
Reply with quote

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
View user's profile Send private message
kalhor

New User


Joined: 20 May 2007
Posts: 31
Location: iran

PostPosted: Tue Jul 21, 2009 7:18 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jul 21, 2009 7:40 pm
Reply with quote

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
View user's profile Send private message
Thangaprabhu

New User


Joined: 15 Jul 2009
Posts: 16
Location: INDIA

PostPosted: Tue Jul 21, 2009 7:41 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jul 21, 2009 7:46 pm
Reply with quote

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
View user's profile Send private message
Thangaprabhu

New User


Joined: 15 Jul 2009
Posts: 16
Location: INDIA

PostPosted: Tue Jul 21, 2009 8:44 pm
Reply with quote

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Jul 21, 2009 8:47 pm
Reply with quote

VERSIONS AND GENERATIONS ARE DIFFERENT THINGS!
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jul 21, 2009 10:41 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jul 22, 2009 9:00 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top