How can we Concatenate different generations of GDG



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

How can we Concatenate different generations of GDG

Postby maxcc » Sun Aug 01, 2010 5:42 pm

How can we Concatenate different generations of a GDG then copy it to a PS?
maxcc
 
Posts: 28
Joined: Fri Apr 30, 2010 12:50 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How can we Concatenate different generations of GDG

Postby MrSpock » Sun Aug 01, 2010 6:20 pm

Not sure I follow. Concatenation is concatenation, it doesn't matter if they're GDG's or not. All that really matters is that they meet the system requirements for concatenation (if they're FB then they need to be of the same LRECL/BLKSIZE, if they're VB the largest LRECL has to be first).
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: How can we Concatenate different generations of GDG

Postby NicC » Sun Aug 01, 2010 9:01 pm

Are your GDG datasets physical sequetial (PS) files or some other format?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: How can we Concatenate different generations of GDG

Postby maxcc » Wed Aug 04, 2010 11:53 pm

Physical Sequential(PS).
maxcc
 
Posts: 28
Joined: Fri Apr 30, 2010 12:50 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How can we Concatenate different generations of GDG

Postby MrSpock » Thu Aug 05, 2010 12:00 am

Of course they're Physical Sequential, they're GDG's (they're either going to be PS or PO).

Once again, what's the real question? What's prompted this topic?
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: How can we Concatenate different generations of GDG

Postby NicC » Thu Aug 05, 2010 12:26 am

I am not sure if, for example, an ADRDSSU dump would be regarded as PS? OK, it is not VSAM but does it have its own DSORG? I've really never tried to browse such a dataset in 35+ years.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: How can we Concatenate different generations of GDG

Postby Robert Sample » Thu Aug 05, 2010 12:35 am

Nic: ADRDSSU is its own animal. There are explicit warnings in the manual against using anything but the COPYDUMP verb of ADRDSSU to copy dump files. They mean it -- I needed to move one to another machine once and wound up having to ship the tape I made using COPYDUMP; nothing else I tried worked.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: How can we Concatenate different generations of GDG

Postby NicC » Thu Aug 05, 2010 12:40 am

So a GDG is not necessarily a PS file is the point. And I certainly would not try and copy a dump file although I believe that IEBGENER may work (but I would not trust it!).
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: How can we Concatenate different generations of GDG

Postby steve-myers » Thu Aug 05, 2010 6:27 am

I've always been aware of the copy issue for DSS dumps, but I always assumed it's because the track images on the tapes can be greater than 32K bytes when the original DASD was a 3380 or a 3390. Mind you I don't know this to be a fact since I never really directly researched this matter, but this would cause problems for "normal" data set copies, but it would not be an issue for a custom written EXCP based COPYDUMP command in DSS itself or a custom written COPYDUMP utility.

Now here we've gone and "hijcked" another thread for something completely unrelated to the thread. Concatenating DSS dump GDGs seems to me to be the height of foolishness.

In theory you can have a PDS be a member of a GDG, but this seems to me to be kind of dumb. How would one specify a member of one in JCL? For that matter, will JCL accept something like this?
//NEWGDG   DD  DISP=(,CATLG),UNIT=SYSDA,SPACE=(TRK,(1,1,1)),
//             DCB=A.MODEL,DSN=GDGBASE(+1)
The explicit A.MODEL DSCB dataset is a PDS. I've never actually tried anything like this. I have to admit I'm too lazy to try it, but I'd be sort of curious to know if anyone actually does something like this!
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: How can we Concatenate different generations of GDG

Postby smita257 » Thu Aug 05, 2010 12:11 pm

Hi Maxcc,
Once, we had a requirement, to concatenate few files for our cobol program.
//STEP0010   EXEC  PGM=COBOL
//MORTGAGE DD DSN=.....FILE1,DISP=SHR
//                  DD DSN=.....FILE2,DISP=SHR
//                  DD DSN=.....FILE3,DISP=SHR

In this case, COBOL program READS mortgage file-file1,file2,file3 as one file.In sequential read, the first record will be from file1 and end-of-file condition will be arrived at the end of File3.
For your, GDG versions I think you can also use the same for concatenation.
//ddname  dd dsn=---.G0001V01,
//             dd dsn=---.G0002V02,
//             dd dsn=---.G0003V03

For Copying purpose, IEBGENER may help.
I just thought to share my idea, with my limited knowledge.You can just try, whether this works for ur requirement.Otherwise there are experts to help you.:-)
Thanks.
smita257
 
Posts: 13
Joined: Mon Jul 19, 2010 2:39 pm
Has thanked: 0 time
Been thanked: 0 time

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post