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: 1535
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 What is the Extract Function in JCL dharmaraok JCL & VSAM 3 Wed Jun 14, 2017 9:12 am
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm


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