IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Sorting by timestamp?


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
naive

New User


Joined: 26 Apr 2005
Posts: 46
Location: LA

PostPosted: Tue Apr 04, 2006 3:16 am
Reply with quote

Hullo

we are sorting a dataset based on 'timestamp'. This dataset is created by unloading a DB2 table (format TIMESTMP). We need to get the latest timestamp in the DS.

The format of the timestamp field is like '2006-03-31-19.59.09.000002'.

Now this I think will be treated as a normal CH field by SORT.

Aim: To sort the DS on descending order based on this field
Question: Will we get accurate results if we use
SORT FIELDS=(xx,26,CH,D) ? xx=starting pos of the field
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Apr 04, 2006 4:44 am
Reply with quote

Yes, you will.
Back to top
View user's profile Send private message
naive

New User


Joined: 26 Apr 2005
Posts: 46
Location: LA

PostPosted: Tue Apr 04, 2006 5:44 am
Reply with quote

Thankx Frank for coming to the rescue!! (as usual) icon_biggrin.gif
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Apr 04, 2006 5:51 am
Reply with quote

When in doubt, try it out. icon_wink.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts To get the count of rows for every 1 ... DB2 3
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
No new posts Timestamp difference and its average ... DB2 11
No new posts Sorting a record spanned over multipl... DFSORT/ICETOOL 13
Search our Forums:

Back to Top