Need JCL for Concatenating multiple DS to 1 DS
Moderators: Frank Yaeger, DikDude, Moderator Group
-
- Member
- Posts: 19
- Joined: Mon Jul 11, 2011 8:57 pm
Need JCL for Concatenating multiple DS to 1 DS
Hi All,
Anyone have JCL for Concatenating multiple DS to 1 DS.
Thanks
Anyone have JCL for Concatenating multiple DS to 1 DS.
Thanks
- Frank Yaeger
- Moderator
- Posts: 812
- Joined: Sat Feb 18, 2006 5:45 am
- Location: San Jose, CA
- Contact:
Well, you haven't given any details (RECFM, LRECL, an example of input and output), so I'll just suggest:
Use concatenation for the input. Use MOD for the output.
Use concatenation for the input. Use MOD for the output.
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
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
Hi,
By assuming that you have fixed length dataset, this will help you.
By assuming that you have fixed length dataset, this will help you.
Code: Select all
//STEP01 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=TSOGKUM.TRG.JCLBACK1,DISP=SHR
// DD DSN=TSOGKUM.TRG.JCLBACK2,DISP=SHR
// DD DSN=TSOGKUM.TRG.JCLBACK3,DISP=SHR
//SYSUT2 DD DSN=TSOGKUM.TRG.TESTPS01,DISP=(MOD,CATLG,DELETE),
// SPACE=(TRK,(2,2)),UNIT=SYSDA,
// DCB=(LRECL=80,RECFM=FB,BLKSIZE=800),DSORG=PS
//SYSIN DD *
Last edited by Gurugars on Tue Jul 19, 2011 1:56 pm, edited 1 time in total.
Guru:-)
You're never fully dressed without a smile
You're never fully dressed without a smile
-
- Member
- Posts: 19
- Joined: Mon Jul 11, 2011 8:57 pm
-
- Member
- Posts: 19
- Joined: Mon Jul 11, 2011 8:57 pm
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
you need to use different utilities to 'merge' pds members from on pds to another.
look in this manual for PDS manipulation.
or to create one (or more) ps files from pds members.
look in this manual for PDS manipulation.
or to create one (or more) ps files from pds members.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
-
- Member
- Posts: 19
- Joined: Mon Jul 11, 2011 8:57 pm
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
also,
IEBPTPCH creates 81 char FBA with (at my site) a V in column 1.
the following SORT will reformat to an 80 char FB file, removing the V
and replacing columns 73 80 with spaces.
if you want to leave in the original 73 - 80,
use these control cards:
IEBPTPCH creates 81 char FBA with (at my site) a V in column 1.
the following SORT will reformat to an 80 char FB file, removing the V
and replacing columns 73 80 with spaces.
Code: Select all
//STEP030 EXEC PGM=SORT
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=BRENHOD.PDS.QSAM.PUNCH,
// DISP=SHR
//SORTOUT DD DSN=BRENHOD.PDS.QSAM,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(CYL,(150,150),RLSE),
// DCB=(RECFM=FB,BLKSIZE=0)
//SYSIN DD *
SORT FIELDS=COPY
INREC PARSE=(%01=(ABSPOS=2,FIXLEN=72)),
BUILD=(%01,8C' ')
/*
use these control cards:
Code: Select all
INREC PARSE=(%01=(ABSPOS=2,FIXLEN=80)),
BUILD=(%01)
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
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
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page