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: 6248
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 All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Alternative of JoinKeys in SORT DFSORT/ICETOOL 2
No new posts Sort SMF records? SYNCSORT 6
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts Simplify SORT CARD to combine INREC a... DFSORT/ICETOOL 6
No new posts Sort card to generate the DSN DFSORT/ICETOOL 17
Search our Forums:


Back to Top