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
 

 

sort on particular order

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: sort on particular order
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

Senior Member


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

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

http://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    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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm


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