Sorting Variable File ???

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
vennela
Member
Posts: 3
Joined: Fri Apr 30, 2010 11:21 pm

Sorting Variable File ???

Post by vennela » Mon May 03, 2010 4:05 pm

Hi All,

Is it possible to SORT a Variable File. I want to sort a field , whose position is 210:4 (SORT FIELDS=(210,4,A), FORMAT=CH ), and the LRECL of that variable file is 2007.

Please let me know if we can.

Thank You well in advance.
Thanks.

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

Post by Frank Yaeger » Mon May 03, 2010 9:13 pm

Yes. You just have to include the RDW (positions 1-4) when specifying the starting position. So if 210 is the data position, use 214.

If you have short records, you can use the VLSHRT option.

For more information, see:

http://publibz.boulder.ibm.com/cgi-bin/ ... 0519162426

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:

http://www.ibm.com/support/docview.wss? ... g3T7000080
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

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