sorting a dataset according to dates.

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

Moderators: Frank Yaeger, Moderator Group

Post Reply
sucharita14
Member
Posts: 5
Joined: Thu Sep 03, 2015 11:15 pm

sorting a dataset according to dates.

Post by sucharita14 » Tue Sep 08, 2015 8:42 pm

I am trying to sort a dataset based on date column in ascendeing order.
example: if there are three dates namely 31.1.1998, 2.12.1997,3.6.2014
Then it should come as 2.12.1997,31.1.1998,3.6.2014

I wrote the sort card as
sort field =(72,10,uff,a)
the fields are not getting sorted properly. Can u guys suggest how to solve it.

[/url]

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