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 refine sort order on DDName

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
kisstian

New User


Joined: 06 Sep 2006
Posts: 6

PostPosted: Wed Nov 08, 2006 11:58 pm    Post subject: How to refine sort order on DDName
Reply with quote

What I am trying to do is sort by DDName. However, my DD names are in the for of DDOUTX, where X is the number. So, the order I would like to see is something like:

DDOUT1
DDOUT2
DDOUT3
DDOUT4
DDOUT5
DDOUT6
DDOUT7
DDOUT8
DDOUT9
DDOUT10

However, because my seach order is ascending on the whole filed, it is resulting in:

DDOUT1
DDOUT10
DDOUT2
DDOUT3
DDOUT4
DDOUT5
DDOUT6
DDOUT7
DDOUT8
DDOUT9

How can I get around this? Thanks.
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


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

PostPosted: Thu Nov 09, 2006 1:21 am    Post subject:
Reply with quote

Use DFSORT's UFF format for the numbers like this:

Code:

   SORT FIELDS=(6,3,UFF,A)
Back to top
View user's profile Send private message
kisstian

New User


Joined: 06 Sep 2006
Posts: 6

PostPosted: Thu Nov 09, 2006 1:36 am    Post subject: Re: How to refine sort order on DDName
Reply with quote

Frank,

Thank you so much!
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Order BY AND Index Nileshkul DB2 2 Sat Dec 31, 2016 6:33 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
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 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