//MYJOB JOB NOTIFY=&SYSUID
//S1 EXEC PGM=SORT
//SORTIN DD DSN=CKK2.PDS.RED(QWER),DISP=SHR
//SORTOUT DD DSN=&&TEMP1,DISP=(NEW,PASS)
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=(3,3,CH,A)
/*
//S2 EXEC PGM=SORT
//SORTIN DD DSN=CKK3.GT2.PDS(KKK),DISP=SHR
//SORTOUT DD DSN=&&TEMP2,DISP=(NEW,PASS)
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=(3,3,CH,A)
/*
//S3 EXEC PGM=ICEMAN
//SORTIN1 DD DSN=&&TEMP1,DISP=SHR
//SORTIN2 DD DSN=&&TEMP2,DISP=SHR
//SORTOUT DD DSN=CKK3.GT2.PDS(TEMPP),DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
MERGE FIELDS=(4,3,CH,A)
/*
//
HI FRIENDS, IAM TRYING TO SORT THE 2 FILES AND KEEPING IN TEMPORARY DATASET AND AFTER THAT IAM TRYING TO ACCEPT THOSE TEMPORARY D.S TO MERGE THE FIELDS.
HERE IAM GETTING THE ERROR....
I HAVE TRIED WITH GIVING ALL THE PARAMETERES LIKE UNIT,VOL=SEER,DCB.....BUT STILL GETTING ERROR.
PLZ........SOLVE THIS
THANKS IN ADVANCE.......
GETTING AN ERROR WHILE WORKING WITH TEMPORARY D.S!!!
Moderators: Frank Yaeger, DikDude, Moderator Group
-
- Member
- Posts: 7
- Joined: Sun Jan 02, 2011 9:44 am
- Frank Yaeger
- Moderator
- Posts: 812
- Joined: Sat Feb 18, 2006 5:45 am
- Location: San Jose, CA
- Contact:
What error exactly? It's difficult to tell you what's wrong without seeing the error messages you're getting. So show us the messages.HERE IAM GETTING THE ERROR....
One thing I see wrong is that your MERGE FIELDS doesn't match your SORT FIELDS. They should be the same.
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
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