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

sort on particular order


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

New User


Joined: 13 May 2010
Posts: 16
Location: hyderabad

PostPosted: Tue Sep 18, 2012 2:33 pm
Reply with quote

I have a flat file that need to be sorted on below order

1.Medicaid ID - ascending order
2. Trasaction_number - ascending order
3.Transaction_type - ascending order(We need to order by 004,024,021,001,030)

can we achieve it by using any sort jcl?
(becoz the order we need for transaction type is not in ascending order)

its a kind of additional order we require.
please suggest me how we can achieve this using DFSORT in jcl
Code:
Medicaid Trans No Trans Type
1234       1             1
1234       1             1
1234       1             4
1234       1             21
1234       1             21
1234       1             24
1234       1             30
1234       1             30
1234       2             1
1234       2             4
5678       1              1
5678       1            24
5678       1            30
5678      1             30
5678       2            30

After Update

Code:
Medicaid Trans No Trans Type
1234       1               4
1234       1               24
1234       1               21
1234       1               21
1234       1                1
1234       1                1
1234       1                30
1234       1                30
1234       2                4
1234       2                1
5678       1                24
5678       1                 1
5678       1                30
5678       1               30
5678       2               30
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Sep 18, 2012 3:16 pm
Reply with quote

ibmmainframes.com/viewtopic.php?t=59504&highlight=
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Rotate partition-logical & physic... DB2 0
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top