how to look up and change

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: Wed Mar 26, 2008 11:58 am
Location: chennai

how to look up and change

Post by gjawalekar » Wed Mar 26, 2008 1:17 pm

there is one vsam file having number of records but only for records having specific field as BE we to change that field it to BF and write all records to one flat file. is it possible by sort.?

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

Post by Frank Yaeger » Wed Mar 26, 2008 7:51 pm

Yes, you can use DFSORT's IFTHEN/OVERLAY function to do that.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from: ... tmpub.html

If you need more specific help, tell me the starting position of the 'BE' field in your input records, and whether your VSAM input records are all the same length (fixed length) or can be of different lengths (variable length).
Frank Yaeger - DFSORT Development Team (IBM) -
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at

Posts: 3
Joined: Wed Mar 26, 2008 11:58 am
Location: chennai

Post by gjawalekar » Thu Mar 27, 2008 12:59 pm

thanks a lot Frank Yaeger


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