sort and merge

In this Mainframe Forum - You can post your queries on DFSORT, ICETOOL , SyncSort & JCL Utilities

Moderators: Frank Yaeger, Moderator Group

Post Reply
Posts: 3
Joined: Fri Mar 09, 2007 2:20 pm

sort and merge

Post by goalchi27 » Tue Mar 13, 2007 3:42 pm

I want to delete the records from a PS file which do not satisfy certain conditions, using cobol program and then merge this file with remaining records with other two files giving a merged file. Can u please give me a sample program for this condition?
Girish Chintawar

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

Post by Frank Yaeger » Tue Mar 13, 2007 10:41 pm

You haven't given enough information about your input files and records, the criteria for removing records, etc. And why did you post this in the DFSORT Forum when you say you want to use a COBOL program?
Frank Yaeger - DFSORT Development Team (IBM) -
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at

Posts: 111
Joined: Wed Feb 22, 2006 2:59 pm

Post by Veera » Thu Mar 15, 2007 10:23 pm


Do u have any restriction that u should not use SORT or any utilities..
it can be done using one or two steps using utility rather than a program,
well if ur intrested in any utilites do mention the file details as FRANK


Post Reply


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.
Mainframe Interview questions

Other References
Mainframe Tools and others