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 Select Min Date Value using Syncsort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
View previous topic :: :: View next topic  
Author Message
Tushar Dhadiwal

New User


Joined: 29 Aug 2011
Posts: 7
Location: Pune

PostPosted: Mon Mar 04, 2013 3:17 pm    Post subject: How to Select Min Date Value using Syncsort
Reply with quote

Hi

i have secnario like this:

Input Data:

Merchant ID Date[MM/DD/CCYY]

1234 02/03/2013
1234 01/27/2013
1234 01/10/2013

then i want in the output below record using Syncsort having old date:

1234 01/10/2013

Can you please help on above query.

Thanks and Regards,
Tushar Dhadiwal
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Mon Mar 04, 2013 3:23 pm    Post subject: Reply to: How to Select Min Date Value using Syncsort
Reply with quote

what happened when You searched the forum ?
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7241

PostPosted: Mon Mar 04, 2013 3:36 pm    Post subject: Reply to: How to Select Min Date Value using Syncsort
Reply with quote

Look in your manual/here for OUTFIL reporting functions on TRAILER1. Look in your manual for SUM if you are sorting the data.
Back to top
View user's profile Send private message
Tushar Dhadiwal

New User


Joined: 29 Aug 2011
Posts: 7
Location: Pune

PostPosted: Mon Mar 04, 2013 4:15 pm    Post subject: Reply to: How to Select Min Date Value using Syncsort
Reply with quote

Hi,

i didnt get in the Forum the secnario i want.
Can ypu please help for the same.

Thanks and Regards,
Tushar
Back to top
View user's profile Send private message
bodatrinadh

Active User


Joined: 05 Jan 2007
Posts: 101
Location: chennai (India)

PostPosted: Mon Mar 04, 2013 4:15 pm    Post subject: Reply to: How to Select Min Date Value using Syncsort
Reply with quote

Tushar,

Let us know what syncsort version you are using at your site...

Thanks
-3nadh
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7241

PostPosted: Mon Mar 04, 2013 5:04 pm    Post subject: Reply to: How to Select Min Date Value using Syncsort
Reply with quote

Also show a more complete set of input data, which would reveal whether your data is already sorted, or requires sorting.

The fact that your "date" is not useful for comparisons in itself doesn't help. If it was CCYYMMDD, with or without editing characters, it would be much easier.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Mon Mar 04, 2013 11:07 pm    Post subject: Re: Reply to: How to Select Min Date Value using Syncsort
Reply with quote

Bill Woodger wrote:
The fact that your "date" is not useful for comparisons in itself doesn't help. If it was CCYYMMDD, with or without editing characters, it would be much easier.

Be glad that it has a 4-digit year.
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 -> SYNCSORT All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm


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