Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to extract first and last records using sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
srinivasulu.p

New User


Joined: 10 Jul 2012
Posts: 22
Location: india

PostPosted: Tue Jan 21, 2014 3:12 pm    Post subject: how to extract first and last records using sort
Reply with quote

Hi please help me how extract 1st and last records from group of transactions
please find my sample file data.

Code:
 
2013-12-14    03.15.44    Y                       0    2013-12-13    CA
2013-01-25    23.57.12    Y                       0    2013-01-25     
2013-02-25    23.29.19    Y                       0    2013-02-25     
2013-03-25    23.29.18    Y                       0    2013-03-25     
2013-04-25    23.47.45    Y                       0    2013-04-25     
2013-05-24    23.13.08    Y                       0    2013-05-24     
2013-06-25    23.23.53    Y                       0    2013-06-25     
2013-07-30    23.12.41    Y                       0    2013-07-30     
2013-08-23    23.01.14    Y                       0    2013-08-23     
2013-09-25    23.19.20    Y                       0    2013-09-25     
2013-10-26    00.52.03    Y                       0    2013-10-25     
2013-11-26    00.53.15    Y                       0    2013-11-25     
2013-12-11    23.25.07    Y                       0    2013-12-11     
2013-01-18    23.06.48    Y                       0    2013-01-18
Back to top
View user's profile Send private message

sureshpathi10

Active User


Joined: 03 May 2010
Posts: 154
Location: Kuala Lumpur

PostPosted: Tue Jan 21, 2014 3:40 pm    Post subject:
Reply with quote

Hi,

Please refer to here for your requirement.

Please do search before post a new topic.
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Tue Jan 21, 2014 5:45 pm    Post subject:
Reply with quote

srinivasulu.p,

What is the sort product you use?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us