Can I concatenate KSDS Files?



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

Can I concatenate KSDS Files?

Postby tander » Mon Dec 29, 2008 11:42 pm

Is it possible to concatenate KSDS Files?

I don't expect the result to be usable as a Key Sequenced Data Set - I just want to feed several Key Sequenced Data Sets into a program that parses out specific records. I hope to send them in as 1 file instead of six separate files.

Here is my JCL:

//STEP01 EXEC PARMZ
//INFILE DD DSN=FILE.KSDS.F1,DISP=SHR
// DD DSN=FILE.KSDS.F2,DISP=SHR
// DD DSN=FILE.KSDS.F3,DISP=SHR
// DD DSN=FILE.KSDS.F4,DISP=SHR
// DD DSN=FILE.KSDS.F5,DISP=SHR
// DD DSN=FILE.KSDS.F6,DISP=SHR
//OUTFILE DD DSN=OUTF.TEST,
// DISP=(NEW,CATLG,DELETE),
// UNIT=TSTDA,SPACE=(CYL,(5,1),RLSE),
// DCB=(RECFM=FB,LRECL=80)
//SYSIN DD *
COPY DYLPROG

Any Thoughts?

-Tom
tander
 

Re: Can I concatenate KSDS Files?

Postby dick scherrer » Tue Dec 30, 2008 12:07 am

Hello,

No, you can't concatenate vsam files.

You could use your sort product to copy each one into a spearate file and then concatenate that file or you could MOD them all onto one file (assuming space is not a problem).

You could possibly use the sort to parse out the ones you want/don't want. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Can I concatenate KSDS Files?

Postby tander » Tue Dec 30, 2008 2:32 am

Ok Thanks
tander
 

Re: Can I concatenate KSDS Files?

Postby dick scherrer » Tue Dec 30, 2008 2:37 am

You're welcome :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post