how to concatenate the datasets

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
bnirmalraj
Member
Posts: 5
Joined: Wed Sep 20, 2006 11:15 am

how to concatenate the datasets

Post by bnirmalraj » Wed Oct 11, 2006 5:55 pm

resove me this!!!
how to concatenate the datasets

User avatar
Frank Yaeger
Moderator
Posts: 812
Joined: Sat Feb 18, 2006 5:45 am
Location: San Jose, CA
Contact:

Post by Frank Yaeger » Wed Oct 11, 2006 8:45 pm

It's not clear what exactly you're asking. If you want to concatenate input data sets for some program, you'd use DD statements like this:

Code: Select all

//ddname DD DSN=...  file1
//       DD DSN=...  file2
//       DD DSN=...  file3
...
If you want to do something else, explain clearly what it is you want to do.
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort

ramana murthy
Member
Posts: 10
Joined: Thu Jul 21, 2011 1:34 pm

concatenate of data sets

Post by ramana murthy » Thu Jul 21, 2011 7:12 pm

to concatenate PS(physical sequential) data sets we can use the ibm utility
IEBGENER program
and specify the files in this way

//JOB1 JOB .....................
//STEP1 EXEC PGM=IEBGENER
//SYSUT1 DD DSN="FILE1",DISP=SHR,
DD DSN="FILE2",DISP=SHR,
DD DSN="FILE3",DISP=SHR
//SYSUT2 DD DSN="NEWFILE",DISP=(NEW,CATLG,DELETE)
DCB=(...............),
SPACE=(...........)
where record length should be file1(rec len)> file2(rec len)> file3(reclen)
the result is stored in output file NEW FILE
we cannot concatenate PDS(partitioned data set) files.as they have members
any query :mail me at ramanamurthyt87@gmail.com

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others